After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 334226 - typefindfunctions plugin crashes on PPC on registration
typefindfunctions plugin crashes on PPC on registration
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
0.10.4
Other Linux
: Normal blocker
: 0.10.5
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-03-11 16:22 UTC by Joseph Sacco
Modified: 2006-03-11 19:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix (767 bytes, patch)
2006-03-11 19:45 UTC, Tim-Philipp Müller
committed Details | Review

Description Joseph Sacco 2006-03-11 16:22:18 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
Comment 1 Tim-Philipp Müller 2006-03-11 16:38:55 UTC
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?
Comment 2 Joseph Sacco 2006-03-11 17:45:09 UTC
[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

Thread 1 (Thread 807587872 (LWP 11932))

  • #0 strlen
    from /lib/tls/libc.so.6
  • #1 IA__g_strdup
    at gstrfuncs.c line 90
  • #2 IA__g_strdupv
    at gstrfuncs.c line 2369
  • #3 gst_type_find_register
    at gsttypefind.c line 82
  • #4 plugin_init
    at gsttypefindfunctions.c line 2297
  • #5 gst_plugin_register_func
    at gstplugin.c line 263
  • #6 gst_plugin_load_file
    at gstplugin.c line 449
  • #7 gst_registry_scan_path_level
    at gstregistry.c line 815
  • #8 init_post
    at gst.c line 649
  • #9 IA__g_option_context_parse
    at goption.c line 1504
  • #10 ??
  • #11 main
    at gst-inspect.c line 1115

Comment 3 Tim-Philipp Müller 2006-03-11 19:45:44 UTC
Created attachment 61101 [details] [review]
fix
Comment 4 Tim-Philipp Müller 2006-03-11 19:54:46 UTC
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).

Comment 5 Joseph Sacco 2006-03-11 19:57:57 UTC
Tim,

That patch seems to work.


Thanks,


-Joseph