GNOME Bugzilla – Bug 334226
typefindfunctions plugin crashes on PPC on registration
Last modified: 2006-03-11 19:57:57 UTC
System: linuxPPC running YDL-4.1 [FC4 clone, gcc-3.4.4] The typefind plugin fails to load when running any of the gst-* tools. For example, % gst-inspect-0.10 ERROR: Caught a segmentation fault while loading plugin file: /usr/local/src/GARNOME/2.13/garnome-2.13.x/lib/gstreamer-0.10/libgsttypefindfunctions.so Please either: - remove it and restart. - run with --gst-disable-segtrap and debug. Replacing only libgsttypefindfunction.so, with its predecessor from version 0.10.3 eliminates the problem. For what it's worth, this problem appears to be linuxPPC specific. The version 0.10.4 plugin loads without incident on a lintel box. -Joseph
Could you do this then: % gdb --args gst-inspect-0.10 --gst-disable-segtrap Welcome to the GNU debugger... (gdb) run .... wait for segfault ... (gdb) thread apply all bt and paste all the output?
[jsacco@plantain ~]$ gdb --args gst-inspect-0.10 --gst-disable-segtrap GNU gdb Red Hat Linux (6.3.0.0-1.21rh) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "ppc-yellowdog-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) run Starting program: /usr/local/src/GARNOME/2.13/garnome-2.13.x/bin/gst-inspect-0.10 --gst-disable-segtrap [Thread debugging using libthread_db enabled] [New Thread 807587872 (LWP 11932)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 807587872 (LWP 11932)] 0x301578b4 in strlen () from /lib/tls/libc.so.6 (gdb) thread apply all bt
+ Trace 66854
Thread 1 (Thread 807587872 (LWP 11932))
Created attachment 61101 [details] [review] fix
Thanks for the stack trace. I think this patch should fix it. If not, please re-open. We should probably be doing a 0.10.5 release really soon ... 2006-03-11 Tim-Philipp Müller <tim at centricular dot net> * gst/typefind/gsttypefindfunctions.c: (plugin_init): NULL-terminate array of mpeg4 video file extensions. Fixes crash on PPC (#334226).
Tim, That patch seems to work. Thanks, -Joseph