Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] xfce4-session: segfault - error 5 in libglib
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
nc-pv
n00b
n00b


Joined: 01 Oct 2012
Posts: 39

PostPosted: Mon Dec 02, 2013 5:48 pm    Post subject: [SOLVED] xfce4-session: segfault - error 5 in libglib Reply with quote

I run Gentoo - kernel 3.10.17 (gentoo-sources), XFCE 4.10, x86_64.

Sometimes when I launch Firefox (Mozilla distribution, not from portage) my desktop environment crashes. All I see in the /var/log/messages is (these are different crashes, not one)

Code:

kernel: [238629.072102] xfce4-session[26258]: segfault at ffffffff00000000 ip 00007fb268a7550f sp 00007fff15ac6ab0 error 5 in libglib-2.0.so.0.3600.4[7fb268a0f000+127000]
kernel: [238874.117913] xfce4-session[26546]: segfault at ffffffff00000000 ip 00007f4dc907a50f sp 00007fff0c47f270 error 5 in libglib-2.0.so.0.3600.4[7f4dc9014000+127000]
kernel: [239245.907053] xfce4-session[26843]: segfault at ffffffff00000000 ip 00007fc24d24250f sp 00007fff369f16b0 error 5 in libglib-2.0.so.0.3600.4[7fc24d1dc000+127000]
kernel: [239369.551626] xfce4-session[31827]: segfault at ffffffff00000000 ip 00007fb44436d50f sp 00007fffd028c710 error 5 in libglib-2.0.so.0.3600.4[7fb444307000+127000]
kernel: [239935.641210] xfce4-session[32140]: segfault at ffffffff00000000 ip 00007fea93e0e50f sp 00007fffc4aa3130 error 5 in libglib-2.0.so.0.3600.4[7fea93da8000+127000]
kernel: [240181.636184] xfce4-session[7074]: segfault at ffffffff00000000 ip 00007fa9a6b9050f sp 00007ffff66f43d0 error 5 in libglib-2.0.so.0.3600.4[7fa9a6b2a000+127000]
kernel: [240181.716469] firefox[7410]: segfault at 0 ip           (null) sp 00007fff919b3178 error 14 in firefox[400000+1d000]
kernel: [240351.653686] lxpolkit[7677]: segfault at 8 ip 000000000040226c sp 00007fffffffde50 error 4 in lxpolkit[400000+4000]
kernel: [240390.309370] xfce4-session[7482]: segfault at ffffffff00000000 ip 00007fa23eb6a50f sp 00007fff9b5e0870 error 5 in libglib-2.0.so.0.3600.4[7fa23eb04000+127000]
kernel: [240755.460992] xfce4-sensors-p[7869]: segfault at 441f0fc3c0ad ip 00007faf86acf443 sp 00007fffc523c2b0 error 4 in libc-2.16.so[7faf86a53000+19e000]
kernel: [241012.587419] xfce4-session[14762]: segfault at ffffffff00000000 ip 00007f40caf2950f sp 00007fff8bb57e60 error 5 in libglib-2.0.so.0.3600.4[7f40caec3000+127000]
kernel: [241826.293970] xfce4-session[15099]: segfault at ffffffff00000000 ip 00007f1093b0d50f sp 00007fff77b54ec0 error 5 in libglib-2.0.so.0.3600.4[7f1093aa7000+127000]



And these crashes happen often (look at timestamps). Almost every other time I launch Firefox - Desktop environment crashes and X restarts. Actually Firefox is not only program which causes crash. I just inserted USB stick and got same crash of xfce4-session with segfault in libglib.

So I wanted to debug it. I emerged gdb and recompiled xfce4-session with CFLAGS="-O2 -pipe -march=native -ggdb".

I read http://ewgeny.wordpress.com/2013/05/27/getting-stack-traces-and-debugging-information-on-gentoo/ article and started to debug hoping to get some stack backtrace.

And at this point I got a problem which I do not know how to resolve.

I launch gdb and attach xfce4-session to it:

Code:

nikolay-comp ~ # gdb
GNU gdb (Gentoo 7.5.1 p2) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>.
(gdb) attach 15818
Attaching to process 15818
Reading symbols from /usr/bin/xfce4-session...(no debugging symbols found)...done.
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
Reading symbols from /usr/lib64/libxfsm-4.6.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libxfsm-4.6.so.0
Reading symbols from /usr/lib64/libSM.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libSM.so.6
Reading symbols from /usr/lib64/libICE.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libICE.so.6
Reading symbols from /usr/lib64/libX11.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libX11.so.6
Reading symbols from /usr/lib64/libxfce4ui-1.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libxfce4ui-1.so.0
Reading symbols from /usr/lib64/libxfce4util.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libxfce4util.so.6
Reading symbols from /usr/lib64/libgmodule-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libgmodule-2.0.so.0
Reading symbols from /usr/lib64/libwnck-1.so.22...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libwnck-1.so.22
Reading symbols from /usr/lib64/libgtk-x11-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libgtk-x11-2.0.so.0
Reading symbols from /usr/lib64/libgdk-x11-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libgdk-x11-2.0.so.0
Reading symbols from /usr/lib64/libatk-1.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libatk-1.0.so.0
Reading symbols from /usr/lib64/libcairo.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libcairo.so.2
Reading symbols from /usr/lib64/libgdk_pixbuf-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libgdk_pixbuf-2.0.so.0
Reading symbols from /usr/lib64/libpango-1.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libpango-1.0.so.0
Reading symbols from /usr/lib64/libxfconf-0.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libxfconf-0.so.2
Reading symbols from /usr/lib64/libdbus-glib-1.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libdbus-glib-1.so.2
Reading symbols from /usr/lib64/libdbus-1.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libdbus-1.so.3
Reading symbols from /usr/lib64/libgobject-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libgobject-2.0.so.0
Reading symbols from /usr/lib64/libglib-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libglib-2.0.so.0
Reading symbols from /lib64/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libm.so.6
Reading symbols from /lib64/libpthread.so.0...(no debugging symbols found)...done.
[New LWP 15827]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/libuuid.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libuuid.so.1
Reading symbols from /usr/lib64/libxcb.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libxcb.so.1
Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /usr/lib64/libXRes.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libXRes.so.1
Reading symbols from /usr/lib64/libpangocairo-1.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libpangocairo-1.0.so.0
Reading symbols from /usr/lib64/libXfixes.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libXfixes.so.3
Reading symbols from /usr/lib64/libgio-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libgio-2.0.so.0
Reading symbols from /usr/lib64/libpangoft2-1.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libpangoft2-1.0.so.0
Reading symbols from /usr/lib64/libfontconfig.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libfontconfig.so.1
Reading symbols from /usr/lib64/libXext.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libXext.so.6
Reading symbols from /usr/lib64/libXrender.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libXrender.so.1
Reading symbols from /usr/lib64/libXi.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libXi.so.6
Reading symbols from /usr/lib64/libXrandr.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libXrandr.so.2
Reading symbols from /usr/lib64/libXcursor.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libXcursor.so.1
Reading symbols from /usr/lib64/libXcomposite.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libXcomposite.so.1
Reading symbols from /usr/lib64/libXdamage.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libXdamage.so.1
Reading symbols from /usr/lib64/libpixman-1.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libpixman-1.so.0
Reading symbols from /usr/lib64/libfreetype.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libfreetype.so.6
Reading symbols from /usr/lib64/libEGL.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libEGL.so.1
Reading symbols from /usr/lib64/libpng15.so.15...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libpng15.so.15
Reading symbols from /lib64/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libz.so.1
Reading symbols from /usr/lib64/libGL.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libGL.so.1
Reading symbols from /lib64/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/librt.so.1
Reading symbols from /usr/lib64/libffi.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libffi.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /usr/lib64/libXau.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libXau.so.6
Reading symbols from /usr/lib64/libXdmcp.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libXdmcp.so.6
Reading symbols from /lib64/libresolv.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libresolv.so.2
Reading symbols from /usr/lib64/libexpat.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libexpat.so.1
Reading symbols from /lib64/libbz2.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libbz2.so.1
Reading symbols from /usr/lib64/libX11-xcb.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libX11-xcb.so.1
Reading symbols from /usr/lib64/libxcb-dri2.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libxcb-dri2.so.0
Reading symbols from /usr/lib64/libxcb-xfixes.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libxcb-xfixes.so.0
Reading symbols from /lib64/libudev.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libudev.so.1
Reading symbols from /usr/lib64/libdrm.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libdrm.so.2
Reading symbols from /usr/lib64/libnvidia-tls.so.331.20...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libnvidia-tls.so.331.20
Reading symbols from /usr/lib64/libnvidia-glcore.so.331.20...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libnvidia-glcore.so.331.20
Reading symbols from /lib64/libnss_compat.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libnss_compat.so.2
Reading symbols from /lib64/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libnsl.so.1
Reading symbols from /lib64/libnss_nis.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libnss_nis.so.2
Reading symbols from /lib64/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libnss_files.so.2
Reading symbols from /usr/lib64/pango/1.6.0/modules/pango-basic-fc.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/pango/1.6.0/modules/pango-basic-fc.so
Reading symbols from /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so
Reading symbols from /usr/lib64/gtk-2.0/2.10.0/engines/libmurrine.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/gtk-2.0/2.10.0/engines/libmurrine.so
Reading symbols from /usr/lib64/gtk-2.0/2.10.0/engines/libpixmap.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/gtk-2.0/2.10.0/engines/libpixmap.so
0x00007f6162c548dd in poll () from /lib64/libc.so.6



Now I launch Firefox and it will not launch at all... until I quit from dgb or detach process

Code:


(gdb) detach
Detaching from program: /usr/bin/xfce4-session, process 15818
(gdb)



At this point Firefox starts and environment crashes, but GDB can not get anything out of out, since process was detached.

So I got to the dead end - Firefox will not launch at all with GDB running, so I can not reproduce the bug with GDB running.

How can I get useful backtrace and find root of the crash? Is there a tweak which will make system to log this backtrace automatically?
_________________
Use GNU/Linux


Last edited by nc-pv on Mon Dec 16, 2013 3:43 pm; edited 2 times in total
Back to top
View user's profile Send private message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 463
Location: Inner Space

PostPosted: Sat Dec 14, 2013 6:22 pm    Post subject: Reply with quote

i have the same kernel and xfce version and getting the same error but not after starting FF but after login to the CTRL+ALT+F1 terminal.
it seems that there will be some bug in xfce.
_________________
CLOSED|||||||||||LISTEN
SYN-SENT --> SYN-RECEIVED
ESTABLISHED <-- SYN-RECEIVED
ESTABLISHED --> ESTABLISHED
ESTABLISHED --> <DATA> --> ESTABLISHED
Back to top
View user's profile Send private message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 463
Location: Inner Space

PostPosted: Sat Dec 14, 2013 8:38 pm    Post subject: Reply with quote

it seems they have trouble in archlinux too: https://bugs.archlinux.org/task/34980
maybe dev-libs/glib-2.36.4-r1 is not that stable.
----
i opened a bug at gentoo https://bugs.gentoo.org/show_bug.cgi?id=494274
----
@nc-pv did you by any chance install the Self Destructing Cookies plugin to your browser?
_________________
CLOSED|||||||||||LISTEN
SYN-SENT --> SYN-RECEIVED
ESTABLISHED <-- SYN-RECEIVED
ESTABLISHED --> ESTABLISHED
ESTABLISHED --> <DATA> --> ESTABLISHED
Back to top
View user's profile Send private message
sligo
Tux's lil' helper
Tux's lil' helper


Joined: 17 Oct 2011
Posts: 93

PostPosted: Sun Dec 15, 2013 11:14 pm    Post subject: Reply with quote

just updated and killed my system with this. programms i need for work are just crashing. so far its firefox, sometimes terminal, thunderbird, vmware. its exact the same bug. i can see it in /var/log/messages.

is there a way to downgrade glibc without recompiling half the system? it has lots of dependencies.
Back to top
View user's profile Send private message
Navar
Guru
Guru


Joined: 20 Aug 2012
Posts: 353

PostPosted: Mon Dec 16, 2013 12:06 am    Post subject: Reply with quote

sligo wrote:
is there a way to downgrade glibc without recompiling half the system? it has lots of dependencies.

Careful confusing these.

dev-libs/glib is freedesktop.org/gtk/gnome.
sys-libs/glibc is the GNU toolchain, which we all need with Gentoo systems.
_________________
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn.
Back to top
View user's profile Send private message
sligo
Tux's lil' helper
Tux's lil' helper


Joined: 17 Oct 2011
Posts: 93

PostPosted: Mon Dec 16, 2013 3:23 pm    Post subject: Reply with quote

Navar wrote:
dev-libs/glib is freedesktop.org/gtk/gnome.
sys-libs/glibc is the GNU toolchain, which we all need with Gentoo systems.


hm, messed up with typo. i know its a big difference but thanks for pointing it out again.
i just fixed this problem by switching to unstable xfce4-session. it has the needed patches, which stable version lacks of.
Back to top
View user's profile Send private message
nc-pv
n00b
n00b


Joined: 01 Oct 2012
Posts: 39

PostPosted: Mon Dec 16, 2013 3:35 pm    Post subject: Reply with quote

sligo wrote:
i just fixed this problem by switching to unstable xfce4-session. it has the needed patches, which stable version lacks of.


I can confirm it as well. I installed unstable version of xfce4-session

Code:
[ebuild   R   ~]  xfce-base/xfce4-session-4.10.1   USE="udev xscreensaver -debug -systemd" 0 kB


I experience no crashes.

As additional point: At the time when I had crashes - crash will occur on second launch of the Firefox or Thunar. After I login first launch fires as expected. If I close application and launch it again -> it will crash.

But now as I stated above - unstable xfce4-session-4.10.1 handles the issue.
_________________
Use GNU/Linux
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum