Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 487160 - media-gfx/gthumb-3.2.3 - gthumb: segmentation fault in _dbus_watch_invalidate() from /usr/lib64/libdbus-1.so.3
Summary: media-gfx/gthumb-3.2.3 - gthumb: segmentation fault in _dbus_watch_invalidate...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2013-10-06 22:58 UTC by Martin Mokrejš
Modified: 2014-04-21 15:20 UTC (History)
1 user (show)

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


Attachments
dbus-marshal-header.c:178 (dbus-marshal-header_178.txt,6.96 KB, text/plain)
2013-10-23 09:05 UTC, Martin Mokrejš
Details
dbus-watch.c:171 (dbus-watch_171.txt,5.68 KB, text/plain)
2013-10-23 09:06 UTC, Martin Mokrejš
Details
gslice.c:532 (gslice_532.txt,7.13 KB, text/plain)
2013-10-23 09:08 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2013-10-06 22:58:42 UTC
$ gthumb . &
[1] 6188
$ 
(gthumb:6188): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

[1]+  Segmentation fault      (core dumped) gthumb .
$


# gdb /usr/bin/gthumb core.gthumb.6188 

....

warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `gthumb .'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007fd11abe6e60 in _dbus_watch_invalidate () from /usr/lib64/libdbus-1.so.3
(gdb) where
#0  0x00007fd11abe6e60 in _dbus_watch_invalidate () from /usr/lib64/libdbus-1.so.3
#1  0x00007fd11abe5a50 in free_watches () from /usr/lib64/libdbus-1.so.3
#2  0x00007fd11abe5ab9 in socket_disconnect () from /usr/lib64/libdbus-1.so.3
#3  0x00007fd11abe4eb4 in _dbus_transport_disconnect () from /usr/lib64/libdbus-1.so.3
#4  0x00007fd11abe56a5 in _dbus_transport_queue_messages () from /usr/lib64/libdbus-1.so.3
#5  0x00007fd11abd2501 in _dbus_connection_get_dispatch_status_unlocked () from /usr/lib64/libdbus-1.so.3
#6  0x00007fd11abd2d22 in dbus_connection_get_dispatch_status () from /usr/lib64/libdbus-1.so.3
#7  0x00007fd11326d1f3 in message_queue_prepare () from /usr/lib64/libdbus-glib-1.so.2
#8  0x00007fd11ee3c0c3 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#9  0x00007fd11ee3c8ce in g_main_context_iterate.isra.23 () from /usr/lib64/libglib-2.0.so.0
#10 0x00007fd11ee3cac4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#11 0x00007fd11f62a78c in g_application_run () from /usr/lib64/libgio-2.0.so.0
#12 0x000000000043782d in main ()
(gdb)


# emerge -pv gthumb

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] media-gfx/gthumb-3.2.3  USE="jpeg svg tiff -cdr -debug -exif -gstreamer -http -json -libsecret -raw -slideshow {-test} -webkit -webp" 0 kB

# emerge -pv sys-apps/dbus

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] sys-apps/dbus-1.6.14 [1.6.12] USE="X -debug -doc (-selinux) -static-libs -systemd {-test}" 1,901 kB

#

Maybe this is hitting same underlying issue as bug #485320?


Umm, after the upgrade of dbus I still get:

(gthumb:23332): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files


but no coredump ... oh, well, I did:


# gdb /usr/bin/gthumb core.pool.23332 
GNU gdb (Gentoo 7.6.1 p1) 7.6.1

...

warning: Corrupted shared library list: 0x22cc570 != 0x7f6f7d165ed8

warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `gthumb .'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f6f84d55c19 in g_slist_remove () from /usr/lib64/libglib-2.0.so.0
(gdb) where
#0  0x00007f6f84d55c19 in g_slist_remove () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f6f7d172ffe in timeout_handler_destroy_source () from /usr/lib64/libdbus-glib-1.so.2
#2  0x00007f6f80ae2ebb in _dbus_timeout_list_remove_timeout () from /usr/lib64/libdbus-1.so.3
#3  0x00007f6f80ad1723 in _dbus_connection_queue_received_message_link () from /usr/lib64/libdbus-1.so.3
#4  0x00007f6f80ae444b in _dbus_transport_queue_messages () from /usr/lib64/libdbus-1.so.3
#5  0x00007f6f80ae4e24 in do_reading.part.2 () from /usr/lib64/libdbus-1.so.3
#6  0x00007f6f80ae5466 in socket_do_iteration () from /usr/lib64/libdbus-1.so.3
#7  0x00007f6f80ae41ed in _dbus_transport_do_iteration () from /usr/lib64/libdbus-1.so.3
#8  0x00007f6f80ad3124 in _dbus_connection_do_iteration_unlocked () from /usr/lib64/libdbus-1.so.3
#9  0x00007f6f80ad3ffd in _dbus_connection_block_pending_call () from /usr/lib64/libdbus-1.so.3
#10 0x00007f6f80ad368c in dbus_connection_send_with_reply_and_block () from /usr/lib64/libdbus-1.so.3
#11 0x00007f6f7d3ae61d in send_notify_add () from /usr/lib64/libgconf-2.so.4
#12 0x00007f6f7d3af2e3 in gconf_engine_notify_add () from /usr/lib64/libgconf-2.so.4
#13 0x00007f6f7d3ac3c4 in gconf_client_add_dir () from /usr/lib64/libgconf-2.so.4
#14 0x00007f6f7dae6460 in gconf_settings_backend_subscribe () from /usr/lib64/gio/modules/libgsettingsgconfbackend.so
#15 0x00007f6f85030853 in g_object_newv () from /usr/lib64/libgobject-2.0.so.0
#16 0x00007f6f85030b76 in g_object_new_valist () from /usr/lib64/libgobject-2.0.so.0
#17 0x00007f6f85030e8c in g_object_new () from /usr/lib64/libgobject-2.0.so.0
#18 0x00007f6f759af784 in ?? ()
#19 0x00000000022d2860 in ?? ()
#20 0x0000000000000001 in ?? ()
#21 0x000000000047e3b0 in ?? ()
#22 0x00007f6f84d2d03f in g_hook_list_marshal () from /usr/lib64/libglib-2.0.so.0
#23 0x000000000047e987 in gth_hook_invoke ()
#24 0x00000000004959d0 in _g_query_metadata_async_thread ()
#25 0x00007f6f854fcc4c in run_in_thread () from /usr/lib64/libgio-2.0.so.0
#26 0x00007f6f854e9686 in io_job_thread () from /usr/lib64/libgio-2.0.so.0
#27 0x00007f6f8550a095 in g_task_thread_pool_thread () from /usr/lib64/libgio-2.0.so.0
#28 0x00007f6f84d5e158 in g_thread_pool_thread_proxy () from /usr/lib64/libglib-2.0.so.0
#29 0x00007f6f84d5d915 in g_thread_proxy () from /usr/lib64/libglib-2.0.so.0
#30 0x00007f6f844e2ec6 in start_thread () from /lib64/libpthread.so.0
#31 0x00007f6f8421c98d in clone () from /lib64/libc.so.6
Comment 1 Martin Mokrejš 2013-10-06 22:59:08 UTC
# emerge --info
Portage 2.1.12.2 (default/linux/amd64/13.0/no-multilib, gcc-4.7.3, glibc-2.15-r3, 3.10.10-default-pciehp x86_64)
=================================================================
System uname: Linux-3.10.10-default-pciehp-x86_64-Intel-R-_Core-TM-_i7-2640M_CPU_@_2.80GHz-with-gentoo-2.2
KiB Mem:    16368832 total,    766368 free
KiB Swap:    4998972 total,   4958840 free
Timestamp of tree: Mon, 23 Sep 2013 13:00:02 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r2, 3.2.5-r2
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.4, 4.7.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo gentoo-haskell science x-portage x-layman
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE IBM-J1.6 skype-eula Nero-EULA-US AdobeFlash-10.3 skype-4.0.0.7-copyright AdobeFlash-11.x"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -maes -mpclmul -mpopcnt -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/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="-O2 -pipe -maes -mpclmul -mpopcnt -march=native"
DISTDIR="/mnt/1TB/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://ftp.fi.muni.cz/pub/linux/gentoo/ rsync://gentoo.mirror.dkm.cz/gentoo/ ftp://gentoo.mirror.web4u.cz/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/1TB/var/tmp"
PORTDIR="/mnt/1TB/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/haskell /home/mmokrejs/proj/sci /usr/local/portage /var/lib/layman"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 amr apache apache2 avx berkdb bindist bluetooth bzip2 cairo cgi cli cracklib crypt cryptlib cups cxx dbus device-mapper dhcp dri emboss encode fax ffmpeg flac fontconfig fortran gd gdbm gimp gnutls gpm gtk gudev hal hpijs hwdb iconv id3tag innodb java jce jpeg jpg keymap ladspa lapack laptop lcms libnotify lm_sensors mad mmx modules mpi mpich2 mysql ncurses nfs nls nptl nptlonly nsplugin ntfsprogs ocr ogg opengl openmp pam parport pcre pdf perl php png ppds pppd python readline resolvconf scanner server session sndfile sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 suexec svg syslog tcpd threads tiff tk truetype udev unicode usb vim-syntax wavpack wifi x11 xml xorg zlib" ABI_X86="64" 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" APACHE2_MODULES="authz_host cgi cgid deflate dir env filter include info mime mime_magic remoteip setenvif status userdir vhost_alias rewrite" 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" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en cs cz" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4 php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="vesa vmware fbdev intel i915" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Martin Mokrejš 2013-10-06 23:12:05 UTC
For the latter stacktrace is relevant this glib version, but the minor upgrade did not help either:

# emerge -pv glib

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] dev-libs/glib-2.36.4-r1:2 [2.36.4:2] USE="-debug (-fam) (-selinux) -static-libs -systemtap {-test} -utils -xattr" PYTHON_TARGETS="python2_7 -python2_6 (-python2_5%)" 0 kB

#
Comment 3 Pacho Ramos gentoo-dev 2013-10-07 06:37:49 UTC
This looks like a problem with dbus -> try fully updating your system and getting a backtrace with that latest versions
Comment 4 Martin Mokrejš 2013-10-14 20:35:19 UTC
So I went to recompile. To recap the details:

Configuration:

        Source code location : .
        Compiler             : x86_64-pc-linux-gnu-gcc
        Prefix               : /usr
        CFLAGS               : -ggdb -fPIC -DPIC -Wl,--as-needed  -Wall -Wcast-align -Wtype-limits -Wclobbered -Wempty-body -Wignored-qualifiers
        Debug                : no
        Run in place         : no
        Build tests          : no
        Exiv2 support        : no
        JPEG tools           : yes
        TIFF tools           : yes
        Clutter support      : no
        GStreamer support    : no
        Use libopenraw       : no (uses dcraw)
        Web services support : no
        Use libsecret        : no
        Burn disc support    : no
        Web albums           : yes
        SM client support    : xsmp
        Map support          : no
        SVG support          : yes
        WebP support         : no

>>> Source configured.
>>> Compiling source in /mnt/1TB/var/tmp/portage/media-gfx/gthumb-3.2.3/work/gthumb-3.2.3 ...


I added dbus to my default runlevel but I use xdm login and xfce later on so not sure if that is of any help. I am still getting:

(gthumb:22580): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

and don't know what that really means.


I also recompile dbus and that said:


                    D-Bus 1.6.16
                  ==============

        prefix:                   /usr
        exec_prefix:              ${prefix}
        libdir:                   /usr/lib64
        libexecdir:               /usr/libexec
        bindir:                   /usr/bin
        sysconfdir:               /etc
        localstatedir:            /var
        datadir:                  /usr/share
        source code location:     /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16
        compiler:                 x86_64-pc-linux-gnu-gcc
        cflags:                    -Wall -Wextra -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wno-address -Wfloat-equal -Wdeclaration-after-statement -Wno-unused-label -Wno-missing-field-initializers -Wno-unused-parameter -Wno-sign-compare -Wno-pointer-sign -Wno-type-limits -fno-common -fno-strict-aliasing -ggdb -rdynamic
        cppflags:                 
        cxxflags:                 -O2 -pipe -maes -mpclmul -mpopcnt -march=native -rdynamic
        64-bit int:               long
        32-bit int:               int
        16-bit int:               short
        Doxygen:                  no
        xmlto:                    /usr/bin/xmlto
        man2html:                 /usr/bin/man2html

        Rebuilding generated files: yes
        gcc coverage profiling:   
        Building embedded tests:  no
        Building modular tests:   no
            - with GLib:          yes
        Building verbose mode:    no
        Building assertions:      no
        Building checks:          no
        Building bus stats API:   no
        Building SELinux support: no
        Building inotify support: yes
        Building dnotify support: no
        Building kqueue support:  no
        Building systemd support: no
        Building X11 code:        
        Building Doxygen docs:    no
        Building XML docs:        no
        Building cache support:   yes
        Building launchd support: no
        Using XML parser:         expat
        Init scripts style:       none
        Abstract socket names:    yes
        System bus socket:        /var/run/dbus/system_bus_socket
        System bus address:       unix:path=/var/run/dbus/system_bus_socket
        System bus PID file:      /var/run/dbus.pid
        Session bus address:      unix:tmpdir=/tmp
        Console auth dir:         /var/run/console/
        Console owner file:       no
        Console owner file path:  
        System bus user:          messagebus
        Session bus services dir: /usr/share/dbus-1/services
        'make check' socket dir:  /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/temp


NOTE: building without checks for arguments passed to public API makes it harder to debug apps using D-Bus, but will slightly decrease D-Bus library size and _very_ slightly improve performance.
>>> Source configured.
>>> Compiling source in /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16 ...


The system-wide updates did not help but after I tried CFLAGS="-ggdb" gthumb started to work. I suspect now my agressive CFLAGS. Will report back after some while -- few days.
Comment 5 Martin Mokrejš 2013-10-21 10:13:15 UTC
(In reply to Martin Mokrejš from comment #4)
> The system-wide updates did not help but after I tried CFLAGS="-ggdb" gthumb
> started to work. I suspect now my agressive CFLAGS. Will report back after
> some while -- few days.

So, I conlude the issue is somehow related to my likely aggressive CFLAGS. :(
With no optimization, just "-ggdb" I do not get it in same situations. However, I got a crash in another place:


Core was generated by `gthumb .'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007fbfd13f595f in _dbus_header_get_byte_order (header=0x26ddb58) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-marshal-header.c:178
178     /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-marshal-header.c: No such file or directory.
(gdb) where
#0  0x00007fbfd13f595f in _dbus_header_get_byte_order (header=0x26ddb58) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-marshal-header.c:178
#1  0x00007fbfd13f6d9c in _dbus_header_get_field_basic (header=0x26ddb58, field=5, type=117, value=0x7fbfbaa6d4ec) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-marshal-header.c:1370
#2  0x00007fbfd13fc3e7 in dbus_message_get_reply_serial (message=0x26ddb50) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-message.c:1091
#3  0x00007fbfd13ee7cc in _dbus_connection_queue_received_message_link (connection=0x26db380, link=0x2652b58) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-connection.c:501
#4  0x00007fbfd14084b1 in _dbus_transport_queue_messages (transport=0x26dac90) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-transport.c:1157
#5  0x00007fbfd14098b9 in do_reading (transport=0x26dac90) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-transport-socket.c:851
#6  0x00007fbfd1409df3 in socket_do_iteration (transport=0x26dac90, flags=6, timeout_milliseconds=25000) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-transport-socket.c:1162
#7  0x00007fbfd1408129 in _dbus_transport_do_iteration (transport=0x26dac90, flags=6, timeout_milliseconds=25000) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-transport.c:976
#8  0x00007fbfd13ef0ad in _dbus_connection_do_iteration_unlocked (connection=0x26db380, pending=0x7fbfac0a9300, flags=6, timeout_milliseconds=25000)
    at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-connection.c:1234
#9  0x00007fbfd13f0698 in _dbus_connection_block_pending_call (pending=0x7fbfac0a9300) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-connection.c:2415
#10 0x00007fbfd14017f7 in dbus_pending_call_block (pending=0x7fbfac0a9300) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-pending-call.c:748
#11 0x00007fbfd13f141f in dbus_connection_send_with_reply_and_block (connection=0x26db380, message=0x294d280, timeout_milliseconds=-1, error=0x7fbfbaa6d760)
    at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-connection.c:3530
#12 0x00007fbfcdabf9d9 in send_notify_add () from /usr/lib64/libgconf-2.so.4
#13 0x00007fbfcdac078f in gconf_engine_notify_add () from /usr/lib64/libgconf-2.so.4
#14 0x00007fbfcdabc177 in gconf_client_add_dir () from /usr/lib64/libgconf-2.so.4
#15 0x00007fbfcdcd7490 in gconf_settings_backend_subscribe () from /usr/lib64/gio/modules/libgsettingsgconfbackend.so
#16 0x00007fbfd5d97165 in g_object_newv () from /usr/lib64/libgobject-2.0.so.0
#17 0x00007fbfd5d974b6 in g_object_new_valist () from /usr/lib64/libgobject-2.0.so.0
#18 0x00007fbfd5d9778c in g_object_new () from /usr/lib64/libgobject-2.0.so.0
#19 0x00007fbfc39a96c4 in ?? ()
#20 0x000000000270a850 in ?? ()
#21 0x0000000000000001 in ?? ()
#22 0x00000000026e0ba0 in ?? ()
#23 0x00007fbfd5a8bf84 in g_hook_list_marshal () from /usr/lib64/libglib-2.0.so.0
#24 0x000000000047b847 in gth_hook_invoke ()
#25 0x0000000000491950 in _g_query_metadata_async_thread ()
#26 0x00007fbfd6261e5f in run_in_thread () from /usr/lib64/libgio-2.0.so.0
#27 0x00007fbfd6250116 in io_job_thread () from /usr/lib64/libgio-2.0.so.0
#28 0x00007fbfd626e785 in g_task_thread_pool_thread () from /usr/lib64/libgio-2.0.so.0
#29 0x00007fbfd5abef16 in g_thread_pool_thread_proxy () from /usr/lib64/libglib-2.0.so.0
#30 0x00007fbfd5abe555 in g_thread_proxy () from /usr/lib64/libglib-2.0.so.0
#31 0x00007fbfd5229eb7 in start_thread () from /lib64/libpthread.so.0
#32 0x00007fbfd4f6482d in clone () from /lib64/libc.so.6
(gdb) bt full
#0  0x00007fbfd13f595f in _dbus_header_get_byte_order (header=0x26ddb58) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-marshal-header.c:178
No locals.
#1  0x00007fbfd13f6d9c in _dbus_header_get_field_basic (header=0x26ddb58, field=5, type=117, value=0x7fbfbaa6d4ec) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-marshal-header.c:1370
No locals.
#2  0x00007fbfd13fc3e7 in dbus_message_get_reply_serial (message=0x26ddb50) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-message.c:1091
        v_UINT32 = 0
#3  0x00007fbfd13ee7cc in _dbus_connection_queue_received_message_link (connection=0x26db380, link=0x2652b58) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-connection.c:501
        pending = 0x7fbfd1409e37 <socket_live_messages_changed+24>
        reply_serial = 32703
        message = 0x26ddb50
#4  0x00007fbfd14084b1 in _dbus_transport_queue_messages (transport=0x26dac90) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-transport.c:1157
        message = 0x26ddb50
        link = 0x2652b58
        status = DBUS_DISPATCH_DATA_REMAINS
#5  0x00007fbfd14098b9 in do_reading (transport=0x26dac90) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-transport-socket.c:851
        socket_transport = 0x26dac90
        buffer = 0x26dae68
        bytes_read = 56
        total = 56
        oom = 0
#6  0x00007fbfd1409df3 in socket_do_iteration (transport=0x26dac90, flags=6, timeout_milliseconds=25000) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-transport-socket.c:1162
        need_read = 1
        need_write = 0
        authentication_completed = 0
        socket_transport = 0x26dac90
        poll_fd = {fd = 11, events = 1, revents = 1}
        poll_res = 1
        poll_timeout = 25000
#7  0x00007fbfd1408129 in _dbus_transport_do_iteration (transport=0x26dac90, flags=6, timeout_milliseconds=25000) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-transport.c:976
No locals.
#8  0x00007fbfd13ef0ad in _dbus_connection_do_iteration_unlocked (connection=0x26db380, pending=0x7fbfac0a9300, flags=6, timeout_milliseconds=25000)
    at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-connection.c:1234
No locals.
#9  0x00007fbfd13f0698 in _dbus_connection_block_pending_call (pending=0x7fbfac0a9300) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-connection.c:2415
        start_tv_sec = 481057
        start_tv_usec = 319633
        tv_sec = 0
        tv_usec = 43307648
        status = (DBUS_DISPATCH_COMPLETE | DBUS_DISPATCH_NEED_MEMORY | unknown: 32700)
        connection = 0x26db380
        client_serial = 55
        timeout = 0x7fbfac0ed9c0
        timeout_milliseconds = 25000
        elapsed_milliseconds = -784395553
#10 0x00007fbfd14017f7 in dbus_pending_call_block (pending=0x7fbfac0a9300) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-pending-call.c:748
No locals.
#11 0x00007fbfd13f141f in dbus_connection_send_with_reply_and_block (connection=0x26db380, message=0x294d280, timeout_milliseconds=-1, error=0x7fbfbaa6d760)
    at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-connection.c:3530
        reply = 0x7fbfbaa6d760
        pending = 0x7fbfac0a9300
#12 0x00007fbfcdabf9d9 in send_notify_add () from /usr/lib64/libgconf-2.so.4
No symbol table info available.
#13 0x00007fbfcdac078f in gconf_engine_notify_add () from /usr/lib64/libgconf-2.so.4
No symbol table info available.
#14 0x00007fbfcdabc177 in gconf_client_add_dir () from /usr/lib64/libgconf-2.so.4
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#15 0x00007fbfcdcd7490 in gconf_settings_backend_subscribe () from /usr/lib64/gio/modules/libgsettingsgconfbackend.so
No symbol table info available.
#16 0x00007fbfd5d97165 in g_object_newv () from /usr/lib64/libgobject-2.0.so.0
No symbol table info available.
#17 0x00007fbfd5d974b6 in g_object_new_valist () from /usr/lib64/libgobject-2.0.so.0
No symbol table info available.
#18 0x00007fbfd5d9778c in g_object_new () from /usr/lib64/libgobject-2.0.so.0
No symbol table info available.
#19 0x00007fbfc39a96c4 in ?? ()
No symbol table info available.
#20 0x000000000270a850 in ?? ()
No symbol table info available.
#21 0x0000000000000001 in ?? ()
No symbol table info available.
#22 0x00000000026e0ba0 in ?? ()
No symbol table info available.
#23 0x00007fbfd5a8bf84 in g_hook_list_marshal () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#24 0x000000000047b847 in gth_hook_invoke ()
No symbol table info available.
#25 0x0000000000491950 in _g_query_metadata_async_thread ()
No symbol table info available.
#26 0x00007fbfd6261e5f in run_in_thread () from /usr/lib64/libgio-2.0.so.0
No symbol table info available.
#27 0x00007fbfd6250116 in io_job_thread () from /usr/lib64/libgio-2.0.so.0
No symbol table info available.
#28 0x00007fbfd626e785 in g_task_thread_pool_thread () from /usr/lib64/libgio-2.0.so.0
No symbol table info available.
#29 0x00007fbfd5abef16 in g_thread_pool_thread_proxy () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#30 0x00007fbfd5abe555 in g_thread_proxy () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#31 0x00007fbfd5229eb7 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#32 0x00007fbfd4f6482d in clone () from /lib64/libc.so.6
No symbol table info available.
(gdb) 


Yes, I did meanwhile all upgrades to current ~amd64.
Comment 6 Martin Mokrejš 2013-10-21 10:16:45 UTC
(In reply to Martin Mokrejš from comment #5)

> However, I got a crash in another place:
> 
> 
> Core was generated by `gthumb .'.
> Program terminated with signal 11, Segmentation fault.
> #0  0x00007fbfd13f595f in _dbus_header_get_byte_order (header=0x26ddb58) at
> /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-
> marshal-header.c:178
> 178    
> /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-
> marshal-header.c: No such file or directory.
> (gdb)


I forgot to add STDERR output. Probably not interesting anyway.

(gthumb:5979): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

(gthumb:5979): Gtk-WARNING **: Theme parsing error: gtk.css:102:18: Not using units is deprecated. Assuming 'px'.

(gthumb:5979): Gtk-WARNING **: Theme parsing error: gtk.css:102:20: Not using units is deprecated. Assuming 'px'.

[1]+  Segmentation fault      (core dumped) gthumb .
Comment 7 Pacho Ramos gentoo-dev 2013-10-21 17:25:59 UTC
What CFLAGS are you using now? Did you rebuild all your system with safer flags?
Comment 8 Martin Mokrejš 2013-10-21 17:30:35 UTC
(In reply to Pacho Ramos from comment #7)
> What CFLAGS are you using now? Did you rebuild all your system with safer
> flags?

CFLAGS="-O2 -pipe -maes -mpclmul -mpopcnt -march=native"


This is i7-2640M CPU. No, I did not everything with just "-ggdb". The stacktraces should be enough to find the problematic line. If somebody says there is no problem on that line then I might go further deeply but I really do not see any sense in doing that.
Comment 9 Martin Mokrejš 2013-10-23 08:41:11 UTC
I think the issue(s) cannot be obeyed by disabling optimization flags. I did not poke into directories with too many files (have 20649 png files in current dir). Now I got another crash, again mentioning that gthum/dbus or who else? possibly needs more memory. This machine has 16GB of RAM. :(


Core was generated by `gthumb .'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f0e7737186e in _dbus_connection_pop_message_link_unlocked (connection=0x21b47d0) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-connection.c:3959
3959    /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-connection.c: No such file or directory.
(gdb) where
#0  0x00007f0e7737186e in _dbus_connection_pop_message_link_unlocked (connection=0x21b47d0) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-connection.c:3959
#1  0x00007f0e7737202a in dbus_connection_dispatch (connection=0x21b47d0) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-connection.c:4534
#2  0x00007f0e6f7941c5 in message_queue_dispatch () from /usr/lib64/libdbus-glib-1.so.2
#3  0x00007f0e7ba1a516 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f0e7ba1a868 in g_main_context_iterate.isra.22 () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f0e7ba1a90c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#6  0x00007f0e7c20cab4 in g_application_run () from /usr/lib64/libgio-2.0.so.0
#7  0x00000000004378fd in main ()
(gdb) bt full
#0  0x00007f0e7737186e in _dbus_connection_pop_message_link_unlocked (connection=0x21b47d0) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-connection.c:3959
        link = 0x0
#1  0x00007f0e7737202a in dbus_connection_dispatch (connection=0x21b47d0) at /mnt/1TB/var/tmp/portage/sys-apps/dbus-1.6.16/work/dbus-1.6.16/dbus/dbus-connection.c:4534
        message = 0x21b47d0
        link = 0x21edf20
        filter_list_copy = 0x7fff93060e30
        message_link = 0x7f0e77370927 <dbus_connection_ref+24>
        result = (DBUS_HANDLER_RESULT_NOT_YET_HANDLED | DBUS_HANDLER_RESULT_NEED_MEMORY | unknown: 32764)
        pending = 0x0
        reply_serial = 0
        status = DBUS_DISPATCH_DATA_REMAINS
        found_object = 0
#2  0x00007f0e6f7941c5 in message_queue_dispatch () from /usr/lib64/libdbus-glib-1.so.2
No symbol table info available.
#3  0x00007f0e7ba1a516 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#4  0x00007f0e7ba1a868 in g_main_context_iterate.isra.22 () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#5  0x00007f0e7ba1a90c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#6  0x00007f0e7c20cab4 in g_application_run () from /usr/lib64/libgio-2.0.so.0
No symbol table info available.
#7  0x00000000004378fd in main ()
No symbol table info available.
(gdb)
Comment 10 Martin Mokrejš 2013-10-23 09:05:40 UTC
Created attachment 361688 [details]
dbus-marshal-header.c:178
Comment 11 Martin Mokrejš 2013-10-23 09:06:02 UTC
Created attachment 361690 [details]
dbus-watch.c:171
Comment 12 Martin Mokrejš 2013-10-23 09:08:59 UTC
Created attachment 361692 [details]
gslice.c:532

This crash happened quite late, gthumb GUI rendered at least some thumbnails and possibly while preparing thumbs for the case that I scroll down the page listing it crashed.
Comment 13 Martin Mokrejš 2013-11-21 12:40:24 UTC
I do not have ANY stability issues with gthumb-2.14.4, even using same shared libs. The 3.2.4 is broken like 3.2.3.
Comment 14 Pacho Ramos gentoo-dev 2013-11-21 19:55:39 UTC
I would report to upstream then providing the backtrace because, as we cannot reproduce the issue, we cannot help much more :/
Comment 15 Thomas 2013-12-09 13:16:25 UTC
I can confirm this with a very similar setting:

(0) $ gthumb

(gthumb:3936): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
Speicherzugriffsfehler (Speicherabzug geschrieben)
(139) $ ls -l core*
-rw------- 1 tom users 63717376  9. Dez 14:01 core

(Translation: Speicherzugriffsfehler = segmentation fault, Speicherabzug geschrieben = core dumpes ;-)

The segmentation fault does NOT occur after the dbus error, but when accessing a directory with quite a lot of image files.

More information:

Portage 2.2.7 (default/linux/amd64/13.0/desktop, gcc-4.8.2, glibc-2.16.0, 3.10.17-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.10.17-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_820_@_1.73GHz-with-gentoo-2.2
KiB Mem:     3980372 total,   1751432 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of tree: Tue, 03 Dec 2013 23:30: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-r3, 3.2.5-r3, 3.3.2-r2
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
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, 4.8.2
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.16.0
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE IBM-J1.6 PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -fno-strict-aliasing -march=corei7 -mcx16 -mpopcnt -msahf -msse4 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -fno-strict-aliasing -march=corei7 -mcx16 -mpopcnt -msahf -msse4 -pipe"
DISTDIR="/scratch/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs 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="http://mirror.netcologne.de/gentoo"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
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="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="X a52 aac acpi alsa amd64 berkdb bluray branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt cups curl cxx dbus dri dts dvd dvdr egl emacs emboss encode exif expat faac faad fam ffmpeg firefox flac fontconfig gd gdbm gif gimp gmp gnome gnome-keyring gnutls graphviz gs gstreamer gtk gtk3 iconv icu ithreads jbig jpeg jpeg2k lcms ldap libnotify libproxy log4j mad mmx mmxext modules mp3 mp4 mpeg mudflap multilib mysql ncurses netpbm nls nptl nsplugin ntp ogg opengl openmp openssl pam pango pcre pdf png policykit ppds qt4 raw readline sasl sdl session smp spell sqlite sse sse2 sse3 sse4 ssl ssse3 startup-notification svg system-jpeg system-sqlite tcpd threads tiff truetype udev udisks unicode upower usb vaapi vdpau vim-syntax vorbis wifi wxwidgets x264 xcb xcomposite xml xpm xv xvid zlib" ABI_X86="64" 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" 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" FFTOOLS="aviocat ffeval" 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 ublox ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de de_DE en en_US en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" XFCE_PLUGINS="brightness logout menu trash" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

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

media-gfx/gthumb-3.2.4 was built with the following:
USE="exif jpeg raw svg tiff -cdr -debug -gstreamer -http -json -libsecret -slideshow -test -webkit -webp"



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/>...
Reading symbols from /usr/bin/gthumb...(no debugging symbols found)...done.
[New LWP 3948]
[New LWP 3936]
[New LWP 3937]
[New LWP 3940]

warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `gthumb'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007ffa2f2b7823 in ?? () from /usr/lib64/libdbus-1.so.3
Comment 16 Thomas 2013-12-09 14:40:00 UTC
When i try to change the settings, something seems to crash:
(gthumb:21671): GConf-WARNING **: The connection to DBus was broken. Can't reinitialize it.
(gthumb:21671): GConf-WARNING **: Got Disconnected from DBus.

Afterwards, gthumb crashes on startup.

This is the stack trace after recompiling gthumb with -ggdb:
#0  0x00007f56086a2684 in dbus_connection_send_with_reply_and_block ()
   from /usr/lib64/libdbus-1.so.3
#1  0x00007f560222eebd in gconf_engine_all_entries () from /usr/lib64/libgconf-2.so.4
#2  0x00007f5602227c9e in ?? () from /usr/lib64/libgconf-2.so.4
#3  0x00007f56022290f4 in gconf_client_add_dir () from /usr/lib64/libgconf-2.so.4
#4  0x00007f5602444490 in ?? () from /usr/lib64/gio/modules/libgsettingsgconfbackend.so
#5  0x00007f560d119195 in g_object_newv () from /usr/lib64/libgobject-2.0.so.0
#6  0x00007f560d1194e6 in g_object_new_valist () from /usr/lib64/libgobject-2.0.so.0
#7  0x00007f560d1197b4 in g_object_new () from /usr/lib64/libgobject-2.0.so.0
#8  0x00007f55f941d60b in ?? () from /usr/lib64/gthumb/extensions/libcomments.so
#9  0x00000000004979dc in ?? ()
#10 0x00007f560ce10fa4 in g_hook_list_marshal () from /usr/lib64/libglib-2.0.so.0
#11 0x0000000000497d0d in gth_hook_invoke ()
#12 0x00000000004b7c69 in ?? ()
#13 0x00007f560d5e2e9f in ?? () from /usr/lib64/libgio-2.0.so.0
#14 0x00007f560d5d1136 in ?? () from /usr/lib64/libgio-2.0.so.0
#15 0x00007f560d5ef855 in ?? () from /usr/lib64/libgio-2.0.so.0
#16 0x00007f560ce44046 in ?? () from /usr/lib64/libglib-2.0.so.0
#17 0x00007f560ce43685 in ?? () from /usr/lib64/libglib-2.0.so.0
#18 0x00007f560c5add63 in start_thread () from /lib64/libpthread.so.0
#19 0x00007f560c2e4dfd in clone () from /lib64/libc.so.6


I did not recompile dbus-glib-0.100.2 since Mar 2013 (!) and dbus-1.6.12 since Jul 2013.
Comment 17 Martin Mokrejš 2013-12-09 16:14:48 UTC
(In reply to Pacho Ramos from comment #14)
> I would report to upstream then providing the backtrace because, as we
> cannot reproduce the issue, we cannot help much more :/

No answer from upstream so far, see https://bugzilla.gnome.org/show_bug.cgi?id=711228
Comment 18 Pacho Ramos gentoo-dev 2013-12-10 21:07:42 UTC
You should provide them backtraces for the crashes:
https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces

In the case of upstream bugzilla, you should paste them as comments as their bugzilla is able to find duplicates from there ;)
Comment 19 Pacho Ramos gentoo-dev 2013-12-24 13:26:53 UTC
(In reply to Pacho Ramos from comment #18)
> You should provide them backtraces for the crashes:
> https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
> 
> In the case of upstream bugzilla, you should paste them as comments as their
> bugzilla is able to find duplicates from there ;)
Comment 20 Martin Mokrejš 2013-12-27 17:48:30 UTC
Ok, so I pasted in to upstream's bugzilla all the three stacktraces. I fear they will run after me soon. ;-)
Comment 21 Pacho Ramos gentoo-dev 2013-12-27 21:19:52 UTC
I am crossing the fingers too ;)
Comment 22 Yuriy Skvortsov 2014-01-13 11:49:17 UTC
Hi! I'm not quite sure, but seems I have the same stuff:

(gdb) run
Starting program: /usr/bin/gthumb 
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffe8c28700 (LWP 18853)]

(gthumb:18848): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
[New Thread 0x7fffd2a99700 (LWP 18855)]
[New Thread 0x7fffd2298700 (LWP 18856)]
GLib (gthread-posix.c): Unexpected error from C library during 'pthread_mutex_unlock': Operation not permitted.  Aborting.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffd2a99700 (LWP 18855)]
0x00007ffff4d114c5 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff4d114c5 in raise () from /lib64/libc.so.6
#1  0x00007ffff4d12948 in abort () from /lib64/libc.so.6
#2  0x00007ffff58cb9a7 in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ffff5936013 in g_mutex_unlock () from /usr/lib64/libglib-2.0.so.0
#4  0x00007ffff58f537c in ?? () from /usr/lib64/libglib-2.0.so.0
#5  0x00007ffff0e5914b in ?? () from /usr/lib64/libdbus-1.so.3
#6  0x00007ffff0e476d3 in ?? () from /usr/lib64/libdbus-1.so.3
#7  0x00007ffff0e5a67b in ?? () from /usr/lib64/libdbus-1.so.3
#8  0x00007ffff0e5b074 in ?? () from /usr/lib64/libdbus-1.so.3
#9  0x00007ffff0e5b6b6 in ?? () from /usr/lib64/libdbus-1.so.3
#10 0x00007ffff0e5a40d in ?? () from /usr/lib64/libdbus-1.so.3
#11 0x00007ffff0e49055 in ?? () from /usr/lib64/libdbus-1.so.3
#12 0x00007ffff0e49f29 in ?? () from /usr/lib64/libdbus-1.so.3
#13 0x00007ffff0e496bd in dbus_connection_send_with_reply_and_block ()
   from /usr/lib64/libdbus-1.so.3
#14 0x00007fffe38c263d in ?? () from /usr/lib64/libgconf-2.so.4
#15 0x00007fffe38c3303 in gconf_engine_notify_add () from /usr/lib64/libgconf-2.so.4
#16 0x00007fffe38c03e4 in gconf_client_add_dir () from /usr/lib64/libgconf-2.so.4
#17 0x00007fffe8008470 in ?? ()
   from /usr/lib64/gio/modules/libgsettingsgconfbackend.so
#18 0x00007ffff5bec6b3 in g_object_newv () from /usr/lib64/libgobject-2.0.so.0
#19 0x00007ffff5beca00 in g_object_new_valist () from /usr/lib64/libgobject-2.0.so.0
#20 0x00007ffff5becd3c in g_object_new () from /usr/lib64/libgobject-2.0.so.0
#21 0x00007fffdd6d37c4 in comments__read_metadata_ready_cb (file_list=0xc51960, 
    attributes=<optimized out>) at main.c:128
#22 0x00007ffff58e9bc4 in g_hook_list_marshal () from /usr/lib64/libglib-2.0.so.0
#23 0x000000000047f7e7 in gth_hook_invoke (
    name=name@entry=0x4c3cfc "read-metadata-ready", first_data=<optimized out>)
    at gth-hook.c:269
#24 0x0000000000496a00 in _g_query_metadata_async_thread (result=0xc62890, 
    object=<optimized out>, cancellable=0xbc80c0) at gth-metadata-provider.c:210
#25 0x00007ffff60b7c8e in ?? () from /usr/lib64/libgio-2.0.so.0
#26 0x00007ffff60a4666 in ?? () from /usr/lib64/libgio-2.0.so.0
#27 0x00007ffff60c50d5 in ?? () from /usr/lib64/libgio-2.0.so.0
#28 0x00007ffff591b8d2 in ?? () from /usr/lib64/libglib-2.0.so.0
#29 0x00007ffff591b115 in ?? () from /usr/lib64/libglib-2.0.so.0
#30 0x00007ffff508bf3a in start_thread () from /lib64/libpthread.so.0
#31 0x00007ffff4dc69ad in clone () from /lib64/libc.so.6


Just in case my setup could be useful to reproduce the bug.
Comment 23 Pacho Ramos gentoo-dev 2014-02-09 12:03:39 UTC
The upstream looks to be in dbus, try with dbus-1.6.18-r1 and, if still valid, I would forward the report to them instead of gthumb (also gthumb was bumped to 3.2.6)
Comment 24 Pacho Ramos gentoo-dev 2014-03-29 19:26:24 UTC
(In reply to Pacho Ramos from comment #23)
> The upstream looks to be in dbus, try with dbus-1.6.18-r1 and, if still
> valid, I would forward the report to them instead of gthumb (also gthumb was
> bumped to 3.2.6)
Comment 25 Martin Mokrejš 2014-04-21 15:20:04 UTC
OK, for some while I am happy with gthumb-3.2.6 and dbus-1.8.0:

[ebuild   R    ] sys-apps/dbus-1.8.0  USE="X -debug -doc (-selinux) -static-libs -systemd {-test}" ABI_X86="(64) -32 (-x32)" 0 kB
[ebuild     U  ] media-gfx/gthumb-3.2.7 [3.2.6] USE="cdr exif jpeg slideshow svg tiff -debug -gstreamer -http -json -libsecret -raw {-test} -webkit -webp" 3,209 kB