! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
tumbler-0.1.27: Segmentation fault at tumbler-registry.c:483 with <gcc-4.7 on...
Status:
RESOLVED: DUPLICATE
Product:
Tumbler
Component:
General

Comments

Description Tomoh K. 2013-02-13 15:41:06 CET
On Gentoo Linux amd64 systems with <sys-devel/gcc-4.7, tumblerd gets segfault everytime before loading/creating thumbnails.
This bug is originally reported to Gentoo's bugzilla.
https://bugs.gentoo.org/show_bug.cgi?id=457054

tumblerd segfaults when Thunar(or ristretto) opens a directory which contains files need thumbnails.
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)
Comment 1 Tomoh K. 2013-02-13 15:45:30 CET
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 >=gcc-4.7.0.
I tested with gentoo's patched gcc.
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 clang-3.1-r5: segfault doesn't occur)

* The issue is since commit 8913e999caed579d62b0021f32db6dfef65ff7f4
"Add config file system to control thumbnailing plugin."
http://git.xfce.org/xfce/tumbler/commit/?id=8913e999caed579d62b0021f32db6dfef65ff7f4

If you need further informations or tests, please let me know.
Regards.
Comment 2 Jeff 2013-04-23 20:04:38 CEST
Tomoh, a quick-n-dirty workaround is to downgrade to: xfce-extra/tumbler-0.1.25

# echo ">xfce-extra/tumbler-0.1.25" >> /etc/portage/package.mask
# emerge xfce-extra/tumbler

-Jeff
Comment 3 Nick Schermer editbugs 2013-05-04 16:39:31 CEST

*** This bug has been marked as a duplicate of bug 9766 ***

Bug #9852

Reported by:
Tomoh K.
Reported on: 2013-02-13
Last modified on: 2013-05-04

People

Assignee:
Jannis Pohlmann
CC List:
5 users

Version

Version:
unspecified

Attachments

Additional information