On amd64 systems with <sys-devel/gcc-4.7, tumblerd segfaults before loading/creating thumbnails. Steps to reproduce: 1. emerge =xfce-extra/tumbler-0.1.27 2. Open a directory which contains files need thumbnails by Thunar (or ristretto). Actual results: /usr/lib64/tumbler/tumblerd segfaults. Backtrace is follow. (gdb) run Starting program: /usr/lib64/tumbler-1/tumblerd 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". Initializing the Tumbler JPEG Thumbnailer plugin Initializing the Tumbler Font Thumbnailer plugin Initializing the Tumbler Pixbuf Thumbnailer plugin Registry: Preferred Thumbnailers: 0 Registry Thumbnailers: 352 Registry: Preferred Thumbnailers: 0 Registry Thumbnailers: 384 Registry: Preferred Thumbnailers: 0 Registry Thumbnailers: 384 Initializing the Tumbler XDG cache plugin [New Thread 0x7ffff2801700 (LWP 26503)] [New Thread 0x7fffebfff700 (LWP 26504)] Thumbnailers: Overrides: Program received signal SIGSEGV, Segmentation fault. tumbler_registry_get_thumbnailer_array (registry=0x62bc00, infos=0x675f10, length=<optimized out>) at tumbler-registry.c:483 483 if (!tumbler_thumbnailer_supports_location (lp->data, gfile)) (gdb) bt #0 tumbler_registry_get_thumbnailer_array (registry=0x62bc00, infos=0x675f10, length=<optimized out>) at tumbler-registry.c:483 #1 0x000000000040de04 in tumbler_service_queue (service=0x64e520, uris=0x6752f0, mime_hints=<optimized out>, flavor_name=0x679470 "normal", scheduler_name=0x675ef0 "foreground", handle_to_dequeue=0, context=0x6794c0) at tumbler-service.c:816 #2 0x000000000040d003 in dbus_glib_marshal_tumbler_service_VOID__BOXED_BOXED_STRING_STRING_UINT_POINTER (closure=0x7fffffffd630, return_value=<optimized out>, n_param_values=<optimized out>, param_values=0x676dc0, invocation_hint=<optimized out>, marshal_data=<optimized out>) at ../tumblerd/tumbler-service-dbus-bindings.h:107 #3 0x00007ffff7bc1072 in ?? () from /usr/lib64/libdbus-glib-1.so.2 #4 0x00007ffff798efc9 in ?? () from /usr/lib64/libdbus-1.so.3 #5 0x00007ffff7983e18 in dbus_connection_dispatch () from /usr/lib64/libdbus-1.so.3 #6 0x00007ffff7bbe3f5 in ?? () from /usr/lib64/libdbus-glib-1.so.2 #7 0x00007ffff6eee3f2 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0 #8 0x00007ffff6eee738 in ?? () from /usr/lib64/libglib-2.0.so.0 #9 0x00007ffff6eeeb2a in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0 #10 0x0000000000406c7a in main (argc=<optimized out>, argv=<optimized out>) at main.c:403 (gdb)
Created attachment 338756 [details] build.log build.log is attached. emerge --info tumbler is follow. $ emerge --info xfce-extra/tumbler Portage 2.2.0_alpha162 (default/linux/amd64/13.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.6.11-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.6.11-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q8400_@_2.66GHz-with-gentoo-2.1 KiB Mem: 4047128 total, 2180968 free KiB Swap: 4096536 total, 4096536 free Timestamp of tree: Wed, 13 Feb 2013 00:15:01 +0000 ld GNU ld (GNU Binutils) 2.22 ccache version 3.1.8 [enabled] app-shells/bash: 4.2_p37 dev-java/java-config: 2.1.12-r1 dev-lang/python: 2.7.3-r2, 3.2.3 dev-util/ccache: 3.1.8 dev-util/cmake: 2.8.9 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.1-r1 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.9.6-r3, 1.11.6 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.4.7, 4.5.4, 4.6.3, 4.7.2 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.6 (virtual/os-headers) sys-libs/glibc: 2.15-r3 Repositories: gentoo betagarden sunrise quarks_gentoo_hardened_overlay MyLocalOverlay ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=core2 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs ccache 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" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ ftp://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/" LANG="ja_JP.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="--jobs=5" 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="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/betagarden /var/lib/layman/sunrise /var/lib/layman/quarks /home/tomo/Overlay" SYNC="rsync://rsync.jp.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb branding bzip2 cairo cdda cddb cdparanoia cdr cjk cli consolekit cracklib crypt cxx dbus dga dri dts dvd dvdr emacs emboss encode exif ffmpeg firefox flac fontconfig fortran gdbm gif gnome gnome-keyring gnutls gstreamer gtk hddtemp iconv icu imlib introspection ipod ipv6 java jbig joystick jpeg jpeg2k lame lcms libnotify lm_sensors lzma m17n-lib mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses networkmanager nls nptl nsplugin ogg openal opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 raw readline sdl session spell sqlite sse sse2 ssl startup-notification svg tcpd theora threads tiff timidity truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xcomposite xft xml xmp xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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="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" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ja en" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="jruby rbx ruby18 ruby19" 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, USE_PYTHON ================================================================= Package Settings ================================================================= xfce-extra/tumbler-0.1.27 was built with the following: USE="debug jpeg -curl -ffmpeg -gstreamer -odf -pdf -raw" CFLAGS="-ggdb -O2 -march=core2 -pipe"
Notes: * Segfault could not be reproducible on x86(32bit), occurs only on amd64(x86_64). (but not sufficiently tested on x86 because my x86 box is very slow...) * Segfault could not be reproducible if I reduced gcc optimization. CFLAGS="-O0" is fine, no segfault and tumblerd seems to work properly. CFLAGS="-O{1,2,3,s}" causes segfault. * Segfault could not be reproducible with >=sys-devel/gcc-4.7.0. I tested with gentoo's gcc (i.e. without USE="vanilla"). gcc-{4.3.6-r1, 4.4.7, 4.5.4, 4.6.3}: segfault occurs. gcc-4.7.0 and gcc-4.7.2: segfault doesn't occur. (and with sys-devel/clang-3.1-r5: segfault doesn't occur) * The issue is since upstream commit 8913e999caed579d62b0021f32db6dfef65ff7f4 "Add config file system to control thumbnailing plugin." http://git.xfce.org/xfce/tumbler/commit/?id=8913e999caed579d62b0021f32db6dfef65ff7f4
*** Bug 456674 has been marked as a duplicate of this bug. ***
Could you file a bug to http://bugzilla.xfce.org/ with the backtrace? And then add it to this bug, to the "See Also: " field?
(In reply to comment #4) > Could you file a bug to http://bugzilla.xfce.org/ with the backtrace? And > then add it to this bug, to the "See Also: " field? done. https://bugzilla.xfce.org/show_bug.cgi?id=9852
Fixed in tumbler-0.1.29