Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 487680 - =xfce-base/xfce4-session-4.10.0-r1 - segmentation fault (error 5 in libglib-2.0.so.0.3600.4)
Summary: =xfce-base/xfce4-session-4.10.0-r1 - segmentation fault (error 5 in libglib-2...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: XFCE Team
URL:
Whiteboard:
Keywords:
: 494274 496000 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-11 18:29 UTC by Sergey S. Starikoff
Modified: 2013-12-25 17:45 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
compressed core dump for xfce4-session (core.9739.bz2,596.84 KB, application/octet-stream)
2013-10-20 16:05 UTC, Sergey S. Starikoff
Details
compressed core dump of xfce4-session built with debug USE enabled (debug_core.15618.bz2,594.52 KB, application/octet-stream)
2013-10-21 16:44 UTC, Sergey S. Starikoff
Details
compressed core dump on logout (poweroff), debug use enabled (logout_core_xfce4-session-11.3364.bz2,457.25 KB, application/octet-stream)
2013-11-07 16:58 UTC, Sergey S. Starikoff
Details
patch for xfce-base/xfce4-session-4.10.0-r1 for applying via user-patch (xfce-session-segfault.patch,993 bytes, patch)
2013-12-19 05:14 UTC, Sergey S. Starikoff
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey S. Starikoff 2013-10-11 18:29:24 UTC
I use XFce-4.10 together with x11-misc/slim-1.3.5-r3 login manager.

After switching mesa sw (Software renderer) to classic mode I've got _often_ crashes of xfce4-session (with emergency restart of xorg-server).

Sep 29 14:14:31 tux kernel: [ 2020.571852] xfce4-session[3345]: segfault at ffffffff00000000 ip 00007f1e82f6cb1a sp 00007fff5f950a20 error 5 in libglib-2.0.so.0.3600.4[7f1e82f07000+128000]
Sep 29 14:15:12 tux kernel: [ 2061.441587] xfce4-session[4898]: segfault at ffffffff00000000 ip 00007fd0ee31db1a sp 00007fff04e79c50 error 5 in libglib-2.0.so.0.3600.4[7fd0ee2b8000+128000]
Sep 29 20:21:38 tux kernel: [24033.728579] xfce4-session[5383]: segfault at ffffffff00000000 ip 00007faf7d57eb1a sp 00007fff71e57ca0 error 5 in libglib-2.0.so.0.3600.4[7faf7d519000+128000]

Switching back to gallium made system's behaviour much better, but doesn't solved issue completely.

$ eselect mesa list
…
sw (Software renderer)
  [1]   classic
  [2]   gallium *

[I] media-libs/mesa
     Installed versions:  9.1.6(21:05:01 04.10.2013)(classic egl gallium llvm nptl shared-glapi -bindist -debug -gbm -gles1 -gles2 -openvg -osmesa -pax_kernel -pic -r600-llvm-compiler -selinux -vdpau -wayland -xa -xorg -xvmc KERNEL="-FreeBSD" PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6" VIDEO_CARDS="intel -i915 -i965 -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi -vmware")

[I] dev-libs/glib
     Installed versions:  2.36.4-r1(2)(11:59:19 07.09.2013)(-debug -fam -selinux -static-libs -systemtap -test -utils -xattr ABI_MIPS="-n32 -n64 -o32" ABI_X86="64 -32 -x32" KERNEL="linux" PYTHON_TARGETS="python2_7 -python2_6")

My video card driver:
[I] x11-drivers/xf86-video-intel
     Installed versions:  2.21.15(21:18:10 04.10.2013)(dri sna udev -glamor -uxa -xvmc)

Today's crash was on open GQviewer for an image from Thunar (next time it opened this image successfully):
Oct 11 20:47:20 tux kernel: [ 5827.428703] xfce4-session[3344]: segfault at ffffffff00000000 ip 00007fee1eb78b1a sp 00007fff5996e930 error 5 in libglib-2.0.so.0.3600.4[7fee1eb13000+128000]

Issue seems to be known by upstream: https://bugzilla.xfce.org/show_bug.cgi?id=9709

My system:
$ einfo 
Portage 2.2.1 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.15-r3, 3.10.7-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.10.7-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5_CPU_661_@_3.33GHz-with-gentoo-2.2
KiB Mem:     7978020 total,    130320 free
KiB Swap:    4024240 total,   4024240 free
Timestamp of tree: Fri, 11 Oct 2013 14:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r2, 3.2.5-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo rion zugaina local_home
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA GPL*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/conf.d/clock /etc/rc.conf /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles/"
EMERGE_DEFAULT_OPTS="--ask=y --verbose --autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildsyspkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://xeon.gentoo.ru/mirrors/gentoo/distfiles/ 		ftp://mirror2.corbina.ru/gentoo-distfiles/ 		http://mirror2.corbina.ru/gentoo-distfiles/ 		http://mirror.yandex.ru/gentoo-distfiles/ 		ftp://mirror.yandex.ru/gentoo-distfiles/ 		http://gentoo.bloodhost.ru/ 		ftp://gentoo.bloodhost.ru/ 		distfiles.gentoo.org"
LANG="ru_RU.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/gentoo"
PORTDIR_OVERLAY="/usr/portage/layman/rion /usr/portage/layman/zugaina /usr/portage/local"
SYNC="rsync://mirror.yandex.ru/gentoo-portage/"
USE="X a52 acl alsa amd64 berkdb bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus djvu dri dv dvd ffmpeg flac fortran gdbm gif gtk iconv icu jpeg jpeg2k kpathsea mac mmx modules mp3 mpeg mudflap multilib ncurses nls nptl ogg openmp pam pcre pdf png policykit qt3support readline session sse sse2 ssl tcpd tiff truetype unicode utf8 v4l v4l2 vorbis zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" FOO2ZJS_DEVICES="hp1018" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386" QEMU_USER_TARGETS="i386" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-10-11 21:35:10 UTC
Can you try to obtain a backtrace?

See http://www.gentoo.org/proj/en/qa/backtraces.xml for details on how to.

Thank you in advance!
Comment 2 Sergey S. Starikoff 2013-10-20 16:05:08 UTC
Created attachment 361448 [details]
compressed core dump for xfce4-session

(In reply to Tom Wijsman (TomWij) from comment #1)
> Can you try to obtain a backtrace?

I think it (obtaining bachtrace) is really impossible, because this issue isn't reliably reproduceable.

Continue analyse showed, that xfce4-session crashes only on _this_ PC (Intel video card, on my another similiar Gentoo installation I don't see this issue), on start of evince viewer (app-text/evince-2.32.0-r4), not always, but _usually_.

I've got the file of core dump. It's original is about 11 MiB, so I'll attache the compressed one (xfce4-session yet built without enabled debug use, am I to obtain core for xfce4-session built with debug use?).

Used configuration of application known to provide this issue (the second one I expect media-gfx/gqview-2.1.5):
# equery u app-text/evince
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for app-text/evince-2.32.0-r4:
 U I
 + + dbus          : Enable dbus support for anything that needs it (gpsd, gnomemeeting, etc)
 - - debug         : Enable extra debug codepaths, like asserts and extra output. If you want to
                     get meaningful backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml
 + + djvu          : Support DjVu, a PDF-like document format esp. suited for scanned documents
 + + dvi           : Enable the built-in DVI viewer
 - - gnome         : Enable the use of gnome-base/gconf to honour lockdown settings
 - - gnome-keyring : Enable support for storing passwords via gnome-keyring
 + + introspection : Add support for GObject based introspection
 - - nautilus      : Enable property page extension in gnome-base/nautilus
 + + postscript    : Enable support for the PostScript language (often with ghostscript-gpl or
                     libspectre)
 - - t1lib         : Enable the Type-1 fonts for the built-in DVI viewer (media-libs/t1lib)
 + + tiff          : Add support for the TIFF image format
Comment 3 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-10-21 00:45:19 UTC
Yes, debug information will be necessary to proceed; please do so such that next core dump and thus backtrace will contain useful information.

Assigning to maintainers regardless such that they are aware that random segfaults are occurring on classic mode.
Comment 4 Sergey S. Starikoff 2013-10-21 16:44:30 UTC
Created attachment 361542 [details]
compressed core dump of xfce4-session built with debug USE enabled

Again crash was caught on start of evince viewer.
Today the second attemp was followed with crash.

Also I remember at least one time, when xfce4-session crashed on turning PC off.
Comment 5 Sergey S. Starikoff 2013-11-07 16:58:50 UTC
Created attachment 362750 [details]
compressed core dump on logout (poweroff), debug use enabled

Since I've enabled writing core dump files, I've caught rather rare crash (one on ten or even more boot cycles): xfce-session crashed on executing poweroff command, so shutdown process interrupts and instead of turning my PC off I again see login screen.
Comment 6 R. Whitney 2013-12-10 19:36:38 UTC
diff --git a/xfce4-session/xfsm-startup.c b/xfce4-session/xfsm-startup.c
index e43c53c..c621397 100644
--- a/xfce4-session/xfsm-startup.c
+++ b/xfce4-session/xfsm-startup.c
@@ -903,9 +903,10 @@ xfsm_startup_start_properties (XfsmProperties *properties,
   child_watch_data = g_new0 (XfsmStartupData, 1);
   child_watch_data->manager = g_object_ref (manager);
   child_watch_data->properties = properties;
-  g_child_watch_add_full (G_PRIORITY_LOW, properties->pid,
-                          xfsm_startup_child_watch, child_watch_data,
-                          (GDestroyNotify) xfsm_startup_data_free);
+  child_watch_data->properties->child_watch_id =
+      g_child_watch_add_full (G_PRIORITY_LOW, properties->pid,
+                              xfsm_startup_child_watch, child_watch_data,
+                              (GDestroyNotify) xfsm_startup_data_free);
 
   /* set a timeout -- client must register in a a certain amount of time
    * or it's assumed to be broken/have issues. */


^^^ apply that patch, please submit this to ebuil. I applied the patch manually and it worked for me.
Comment 7 Sergey S. Starikoff 2013-12-11 05:25:45 UTC
(In reply to R. Whitney from comment #6)
> apply that patch, please submit this to ebuil. I applied the patch
> manually and it worked for me.

First of all thank you for patch!

Manual apply is not Gentoo-way, I'll apply it using user-patch feature.
Having some ideas about reproduceability of this issue (additionally to described I've seen occsional crashes on opening file in firefox and even on opening file in vim in terminal) I expect to perform enough check in up to two weeks, after that it will be possible to point a question about adding patch to portage tree.
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2013-12-11 06:21:41 UTC
(In reply to R. Whitney from comment #6)
> diff --git a/xfce4-session/xfsm-startup.c b/xfce4-session/xfsm-startup.c
[ ... ]
> -  g_child_watch_add_full (G_PRIORITY_LOW, properties->pid,
> -                          xfsm_startup_child_watch, child_watch_data,
> -                          (GDestroyNotify) xfsm_startup_data_free);
> +  child_watch_data->properties->child_watch_id =
> +      g_child_watch_add_full (G_PRIORITY_LOW, properties->pid,
> +                              xfsm_startup_child_watch, child_watch_data,
> +                              (GDestroyNotify) xfsm_startup_data_free);
> 
> ^^^ apply that patch, please submit this to ebuil. I applied the patch
> manually and it worked for me.

Where is this code coming from? Upstream repository? Upstream bugzilla? You? Someone else? Has it been submitted to upstream yet?
Comment 9 Brian Evans (RETIRED) gentoo-dev 2013-12-11 13:51:17 UTC
(In reply to Samuli Suominen from comment #8)
> (In reply to R. Whitney from comment #6)
> > diff --git a/xfce4-session/xfsm-startup.c b/xfce4-session/xfsm-startup.c
> [ ... ]
> > -  g_child_watch_add_full (G_PRIORITY_LOW, properties->pid,
> > -                          xfsm_startup_child_watch, child_watch_data,
> > -                          (GDestroyNotify) xfsm_startup_data_free);
> > +  child_watch_data->properties->child_watch_id =
> > +      g_child_watch_add_full (G_PRIORITY_LOW, properties->pid,
> > +                              xfsm_startup_child_watch, child_watch_data,
> > +                              (GDestroyNotify) xfsm_startup_data_free);
> > 
> > ^^^ apply that patch, please submit this to ebuil. I applied the patch
> > manually and it worked for me.
> 
> Where is this code coming from? Upstream repository? Upstream bugzilla? You?
> Someone else? Has it been submitted to upstream yet?

It is coming from http://git.xfce.org/xfce/xfce4-session/commit/?id=ab391138cacc62ab184a338e237c4430356b41f9 which is linked in the xfce bug listed in the original description of this bug.
Comment 10 Harold Anderson 2013-12-11 16:39:26 UTC
Is this bug the same as this:

https://bugs.launchpad.net/ubuntu/+source/xfce4-session/+bug/1104435

If so, it is fixed in xfce4-session-4.10.1, which should be stabilized.
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2013-12-12 06:45:44 UTC
(In reply to Harold Naparst from comment #10)
> If so, it is fixed in xfce4-session-4.10.1, which should be stabilized.

indeed, the fix is in 4.10.1 (which will be part of the next round of stabilizations for xfce packages)
Comment 12 Samuli Suominen (RETIRED) gentoo-dev 2013-12-17 15:06:20 UTC
*** Bug 494274 has been marked as a duplicate of this bug. ***
Comment 13 Sergey S. Starikoff 2013-12-19 05:14:40 UTC
Created attachment 365646 [details, diff]
patch for xfce-base/xfce4-session-4.10.0-r1 for applying via user-patch
Comment 14 Samuli Suominen (RETIRED) gentoo-dev 2013-12-25 17:22:15 UTC
*** Bug 496000 has been marked as a duplicate of this bug. ***
Comment 15 Samuli Suominen (RETIRED) gentoo-dev 2013-12-25 17:45:19 UTC
stabilization happening at bug 496018