gnome-screensaver-2.16.2 crash with dbus 1.0.2 process 22014: arguments to dbus_connection_add_filter() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 4954. This is normally a bug in some application using the D-Bus library. D-Bus not built with -rdynamic so unable to print a backtrace Aborted (core dumped) Reproducible: Always
Created attachment 106215 [details] Core dump
Portage 2.1.2_rc4-r7 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r1 i686) ================================================================= System uname: 2.6.19-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.12.8 Last Sync: Tue, 09 Jan 2007 06:30:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] dev-java/java-config: 1.3.7, 2.0.31 dev-lang/python: 2.4.4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.19 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distcc distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.lug.md/pub/mirrors/gentoo/ http://gentoo.inode.at/ http://ftp.rhnet.is/pub/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo" LANG="ro_RO.UTF-8" LINGUAS="ro" MAKEOPTS="-j11" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY=" " SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="7zip X aiglx alsa asf asm bash-completion beagle berkdb bitmap-fonts cairo canvas cdr cli cracklib crypt cups dga directfb djvu dlloader dri eds encode evolution fbcon firefox flash foomaticdb fortran gaim gdbm glitz gmail gnome gpm gstreamer gtalk gtk gtk2 gtkhtml hal i810 iconv imap imlib ipv6 isdnlog jabber java jpeg kde kerberos ldap libg++ live lm_sensors mad mesa mmx mono mp3 mplayer musicbrainz mysql ncurses nls no-seamonkey nptl nptlonly ntpl ocaml ofx ogg opengl pam pcre pdf perl png posix ppds pppd python qt qt3 qt4 readline real realmedia reflection session sftp smp spell spl sse sse2 ssl svg svga tcpd threads truetype-fonts type1-fonts udev unicode userlocales utf8 v4l v4l2 vorbis win32codecs x86 xine xorg yahoo 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LINGUAS="ro" USERLAND="GNU" VIDEO_CARDS="i810 i915" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Could you attach the backtrace rather than the core file? The core file does us no good without the binary that generated it.
(In reply to comment #3) > Could you attach the backtrace rather than the core file? The core file does > us no good without the binary that generated it. This only happens to me on g/fbsd - on ~ARCH amd64/x86/linux it works fine. Still want that backtrace?
[Thread debugging using libthread_db enabled] [New Thread -1219823936 (LWP 21154)] process 21154: arguments to dbus_connection_add_filter() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 4954. This is normally a bug in some application using the D-Bus library. D-Bus not built with -rdynamic so unable to print a backtrace Program received signal SIGABRT, Aborted. [Switching to Thread -1219823936 (LWP 21154)] 0xb7f63410 in ?? () (gdb) where #0 0xb7f63410 in ?? () #1 0xbfee7b5c in ?? () #2 0x00000006 in ?? () #3 0x000052a2 in ?? () #4 0xb74f4179 in raise () from /lib/libc.so.6 #5 0xb74f5671 in abort () from /lib/libc.so.6 #6 0xb77c7a25 in ?? () from /usr/lib/libdbus-1.so.3 #7 0xb77cf7d8 in ?? () from /usr/lib/libdbus-1.so.3 #8 0xb751f8d6 in fflush () from /lib/libc.so.6 Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Created attachment 107958 [details] gnome-screensaver backtrace with -ggdb I can reproduce the problem on x86 and amd64; attached is a backtrace from the amd64 machine: Portage 2.1.1-r2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.19.2 x86_64) ================================================================= System uname: 2.6.19.2 x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz Gentoo Base System version 1.12.6 Last Sync: Tue, 23 Jan 2007 12:50:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=nocona -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer nostrip notitles sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_US.UTF-8" LINGUAS="en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://dwc.homedns.org/gentoo-portage" USE="amd64 X a52 aac aalib acl acpi alsa alsa_cards_emu10k1 alsa_cards_hda-intel alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol berkdb bitmap-fonts bzip2 cdr cli cracklib crypt cups dbus debug dlloader dri dvd dvdr elibc_glibc emacs encode fbcon firefox flac fortran gdbm gif gnome gnutls gpm gtk gtk2 gtkhtml iconv imlib input_devices_keyboard input_devices_mouse isdnlog jpeg kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text libg++ libnotify linguas_en lirc_devices_livedrive_midi live maildir mozilla mp3 mpeg ncurses network nls nptl nptlonly nsplugin ogg opengl pam pcre pda pdf perl png ppds pppd python readline reflection samba session speex spell spl ssl tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l v4l2 video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_v4l video_cards_vesa vorbis xml xorg xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Ah, my error on g/fbsd was that dbus wasn't actually running. How embarrassing for me :/ However, a better error message would be nice :)
Question for those of you seeing this: Are you sure there's a system bus? Is your user in the messagebus group? The only problem I can see in that code is a missing return in the error handling right before that function call. I can generate a patch that actually returns in the previous error case, if people are willing to try it.
gnome-screensaver works fine after I have added my user in messagebus group and started dbus service. It's unusually because it has worked fine before without these actions, and nobody know now what is necessary to do for using gnome-screensaver.
When you say it worked fine before, do you mean, it was working fine with gnome-screensaver 2.14 and stopped working with 2.16 ?
For me gnome-screensaver stopped working after upgrading DBUS to 1.0.
If you did revdep-rebuild and it stopped working with dbus-1 and gnome-2.14, I have no idea. when you moved to dbus-1.0, did you do revdep-rebuild, and did this bring along gnome 2.16 ? If this is the case, I'd say it is normal as gnome-2.16 requires dbus (for session bus) to work. Anyway has everybody here fixed his problem ?
The problem was that my user wasn't in messagebus group before and I didn't have dbus started. Now latest gnome-screensaver works fine with dbus. So bug can be closed.
Before we go closing this bug, can I please get a listing of the groups people are a member of? Messagebus should not be a group anyone belongs to, and with 2.16.3 gnome-screensaver works fine here - If dbus isn't started, there is no way that a program is going to connect to the message bus, it doesn't matter what group you are in.
groups: wheel audio cdrom video users portage messagebus I have removed my user from messagebus and it also works fine. So the problem was only in not started dbus service.
Closing as per comment #13 and #15. Thanks