Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 328403 - xfce-base/xfce4-session-4.6.2: segfault on "Cancel" in session quit dialog
Summary: xfce-base/xfce4-session-4.6.2: segfault on "Cancel" in session quit dialog
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: XFCE Team
URL: http://bugzilla.xfce.org/show_bug.cgi...
Whiteboard:
Keywords:
: 331381 (view as bug list)
Depends on: 289867
Blocks:
  Show dependency tree
 
Reported: 2010-07-15 14:23 UTC by Horst Prote
Modified: 2010-12-05 19:27 UTC (History)
3 users (show)

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


Attachments
Backtrace of xfce4-session (xfce4-session.bt,2.77 KB, text/plain)
2010-08-06 11:58 UTC, Horst Prote
Details
Backtrace (gdb.txt,3.59 KB, text/plain)
2010-09-06 14:43 UTC, Alec Meyers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Horst Prote 2010-07-15 14:23:43 UTC
The xfce4 quit dialog always quits and can not be canceled.

Clicking the "Cancel" button does not cancel the dialog but quits the session. Presumably because of the segfault I found in /var/log/messages:
Jul 15 ... kernel: xfce4-session[7382]: segfault at 10 ip 0000000000414ca8 sp 00007fffd1679780 error 4 in xfce4-session[400000+1e000]

Clicking on "Logout" does a clean logout with saving of session and setup changes and there's no segfault in ./var/log/messages

Reproducible: Always

Steps to Reproduce:
I can reproduce this with a xfce-clean account and with policykit:
  [ebuild   R   ] sys-auth/consolekit-0.4.1  USE="pam policykit -debug -doc" 0 kB
  [ebuild   R   ] sys-apps/hal-0.5.14-r2  USE="X acpi consolekit crypt policykit -apm -debug -dell -disk-partition -doc -laptop (-selinux)" 0 kB

or without policykit:
  [ebuild   R   ] sys-auth/consolekit-0.4.1  USE="pam -debug -doc -policykit" 0 kB
  [ebuild   R   ] sys-apps/hal-0.5.14-r2  USE="X acpi consolekit crypt -apm -debug -dell -disk-partition -doc -laptop -policykit (-selinux)" 0 kB                                                 



I have the following xfce packages installed:
# equery l xfce
[ Searching for package 'xfce' in all categories among: ]
 * installed packages
[I--] [  ] dev-util/xfce4-dev-tools-4.7.2 (0)
[I--] [  ] x11-themes/gtk-engines-xfce-2.6.0 (0)
[I--] [  ] x11-themes/xfce4-icon-theme-4.4.3 (0)
[I--] [  ] xfce-base/libxfce4menu-4.6.2 (0)
[I--] [  ] xfce-base/libxfce4util-4.6.2 (0)
[I--] [  ] xfce-base/libxfcegui4-4.6.4 (0)
[I--] [  ] xfce-base/xfce-utils-4.6.2 (0)
[I--] [  ] xfce-base/xfce4-meta-4.6.2 (0)
[I--] [  ] xfce-base/xfce4-panel-4.6.4 (0)
[I--] [  ] xfce-base/xfce4-session-4.6.2 (0)
[I--] [  ] xfce-base/xfce4-settings-4.6.5 (0)
[I--] [  ] xfce-extra/xfce4-appfinder-4.6.2 (0)
[I--] [  ] xfce-extra/xfce4-datetime-plugin-0.6.1 (0)
[I--] [  ] xfce-extra/xfce4-dict-0.6.0 (0)
[I--] [  ] xfce-extra/xfce4-eyes-plugin-4.4.0 (0)
[I--] [  ] xfce-extra/xfce4-genmon-plugin-3.2 (0)
[I--] [  ] xfce-extra/xfce4-mailwatch-plugin-1.1.0 (0)
[I--] [  ] xfce-extra/xfce4-mixer-4.6.1 (0)
[I--] [  ] xfce-extra/xfce4-notes-plugin-1.7.6 (0)
[I--] [  ] xfce-extra/xfce4-places-plugin-1.2.0 (0)
[I--] [  ] xfce-extra/xfce4-quicklauncher-plugin-1.9.4-r1 (0)
[I--] [  ] xfce-extra/xfce4-screenshooter-1.7.9-r1 (0)
[I--] [  ] xfce-extra/xfce4-systemload-plugin-0.4.2-r1 (0)
[I--] [  ] xfce-extra/xfce4-taskmanager-0.4.1 (0)
[I--] [  ] xfce-extra/xfce4-timer-plugin-0.6.1 (0)
[I--] [  ] xfce-extra/xfce4-verve-plugin-0.3.6 (0)
[I--] [  ] xfce-extra/xfce4-weather-plugin-0.7.3 (0)
[I--] [  ] xfce-extra/xfce4-xfapplet-plugin-0.1.0 (0)
[I--] [  ] xfce-extra/xfce4-xkb-plugin-0.5.3.3-r1 (0)
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-07-19 17:59:42 UTC
Please provide emerge --info for a start.
Comment 2 Horst Prote 2010-07-21 16:18:56 UTC
Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.11.2-r0, 2.6.33-gentoo-r2 i686)
=================================================================
System uname: Linux-2.6.33-gentoo-r2-i686-Intel-R-_Xeon-TM-_CPU_3.06GHz-with-gentoo-1.12.13
Timestamp of tree: Wed, 14 Jul 2010 08:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.1.2, 4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1 googleearth AdobeFlash-10.1 PUEL"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/ltsp-4.2/i386/etc /tftpboot/pxe/pxelinux.cfg /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/xsessions /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /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="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-unmerge-warn"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://theogent.informatik.uni-stuttgart.de/gentoo http://theogent.informatik.uni-stuttgart.de/theorie-overlay http://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/ http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/"
LANG="en_US"
LDFLAGS="-Wl,-O1"
LINGUAS="en de fr ru"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=30"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/theorie /var/lib/layman/kde-sunset /var/lib/layman/ltsp /usr/portage/local/host"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa avahi bash-completion berkdb branding bzip2 cairo caps cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode esd evo exif fam firefox flac fontgcj gdbm gif gimpprint gnome gpm gstreamer gtk hal iconv imap jpeg kde lcms ldap libnotify mad mbox mdnsresponder-compat mikmod mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt3support qt4 readline reflection sdl session spell spl ssl startup-notification svg sysfs tcpd tiff truetype unicode urandom usb userlocales vorbis wmf x264 x86 xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de fr ru" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson" USERLAND="GNU" VIDEO_CARDS="vga vesa fbdev mach64 r128 radeon" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-08-05 22:25:32 UTC
Can't reproduce. Need full backtrace[1] 

[1] http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 4 Horst Prote 2010-08-06 11:58:19 UTC
Created attachment 241619 [details]
Backtrace of xfce4-session

Backtrace of /usr/bin/xfce4-session when user clicks the "cancel" butten in the logout dialog.

For the first step I only rebuild xfce-base/xfce4-session-4.6.2 with FEATURES="splitdebug" and CFLAGS="... -ggdb".
Comment 5 Alec Meyers 2010-09-06 14:40:39 UTC
I am experincing the same problem.


Portage 2.2_rc75 (default/linux/amd64/10.0/desktop, gcc-4.5.1, glibc-2.12.1-r1, 2.6.35.4 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.35.4-x86_64-Intel-R-_Core-TM-_i7_CPU_M_620_@_2.67GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 06 Sep 2010 13:45:02 +0000
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.5-r3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.5.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL skype-eula dlj-1.1 AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fno-ident -floop-interchange -floop-strip-mine -floop-block -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/portage /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fno-ident -floop-interchange -floop-strip-mine -floop-block -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixlafiles fixpackages news preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.chem.wisc.edu/gentoo http://gentoo.osuosl.org/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="gzip"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/tree/official"
PORTDIR_OVERLAY="/usr/portage/tree/layman/qting-edge /usr/portage/tree/layman/kde /usr/portage/tree/local"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aio alsa amd64 audiofile avi bash-completion berkdb bluetooth branding bzip2 cairo cdparanoia cdr chm cli cracklib crypt css cups curl custom-optimization cxx dbus dell dirac dri dts dvd dvdr emboss encode exif expat ffmpeg fftw firefox flac foomaticdb fortran gif git gmp gpm gtk iconv imagemagick imlib inotify java5 java6 jpeg kde kdehiddenvisibility kvm laptop latex lcms logrotate lqr lzma lzo mad mikmod mmx mmxext mng modules mp3 mp4 mpeg mplayer mudflap multilib musepack ncurses nptl nptlonly nsplugin nvidia ogg opengl openmp openssl pam pango pch pcre pdf perl plasma png ppds pppd python qt qt3support qt4 quicktime rar readline reflection resolvconf rtmp samba schroedinger sdl session sndfile speex spell spl sqlite sqlite3 srt sse sse2 ssl ssse3 startup-notification subversion svg sysfs tcpd theora threads tiff tokyocabinet truetype unicode usb v4l v4l2 vaapi vcd videos vorbis vpx webkit wifi wmf x264 xcb xcomposite xml xorg xscreensaver xulrunner xv xvid xvmc xz zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18" 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS

=================================================================
                        Package Settings
=================================================================

xfce-base/xfce4-session-4.6.2 was built with the following:
USE="fortune (multilib) -debug -gnome -gnome-keyring -profile" 
Comment 6 Alec Meyers 2010-09-06 14:43:10 UTC
Created attachment 246258 [details]
Backtrace

Here's the full backtrace; please reopen.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2010-09-06 17:30:41 UTC
Reopening.

Someone please try with p.masked xfce4-session-4.7.0 (the most recent version will be available after a sync in approx. one hour)
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2010-09-06 17:30:57 UTC
*** Bug 331381 has been marked as a duplicate of this bug. ***
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2010-09-07 00:58:55 UTC
Looks a lot like:

http://bugzilla.xfce.org/show_bug.cgi?id=1071
http://bugzilla.xfce.org/show_bug.cgi?id=6546
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2010-09-07 01:02:00 UTC
arg, upstream #6546 seems to suggest it might be because hald is not running
someone please try the new xfce4-session, and then with hald running too.
Comment 11 Alec Meyers 2010-09-07 23:15:35 UTC
OK, I upgraded to XFCE 4.7 (no hal), and the xfce4-session crash went away ("Cancel" now closes the logout dialog)

Unfortunately, 4.7 not being stable yet, has its own issues...
Comment 12 Daniel Gulotta 2010-09-13 13:42:41 UTC
I had this problem for a while but it seems to have gone away.  My guess is that upgrading to x11-libs/libgksu-2.0.12-r1 is what fixed it.
Comment 13 Samuli Suominen (RETIRED) gentoo-dev 2010-09-14 01:30:56 UTC
The new Xfce4 4.7/4.8 is about to get unmasked *very* soon, only need to polish couple of packages. I'm hoping this weekend.

So if you want to help, please report any issues after unmasking all the xfce pkgs _except_ xfdesktop-4.7.0 (skip that for now) from package.mask.
Comment 14 Horst Prote 2010-09-14 14:15:57 UTC
(In reply to comment #13)
> So if you want to help, please report any issues after unmasking all the xfce
> pkgs _except_ xfdesktop-4.7.0 (skip that for now) from package.mask.
> 

Done. And with
# qlist -I -v xfce-base/\.\*xf
xfce-base/libxfce4menu-4.6.2
xfce-base/libxfce4ui-4.7.3
xfce-base/libxfce4util-4.7.2
xfce-base/libxfcegui4-4.6.4
xfce-base/xfce-utils-4.7.0
xfce-base/xfce4-meta-4.6.2
xfce-base/xfce4-panel-4.7.3
xfce-base/xfce4-session-4.7.0
xfce-base/xfce4-settings-4.7.2
xfce-base/xfconf-4.7.3
xfce-base/xfdesktop-4.6.2
xfce-base/xfwm4-4.7.0
I can cancel the logout dialog without segfault.

So, as soon as Xfce4 4.7 goes stable, we can close this bug.

Just for the record: I also found out what initially triggered the bug for me.
With Xfce4 4.6 I only can reproduce the bug when there is a
/etc/xdg/xfce4/kiosk/kioskrc with the line "Shutdown=NONE".
Comment 15 Samuli Suominen (RETIRED) gentoo-dev 2010-12-05 19:27:45 UTC
(In reply to comment #14)
> So, as soon as Xfce4 4.7 goes stable, we can close this bug.

~arch has now 4.8.0_pre2 and we plan to stabilize final 4.8.0 in about 1-2 months assuming it gets out like planned
either way, 4.6 bugs wont be fixed anymore