Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 518356 - media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r2 with media-video/ffmpeg-2.3 - segmentation fault in gst_ffmpegdemux_register () from /usr/lib64/gstreamer-0.10/libgstffmpeg.so
Summary: media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r2 with media-video/ffmpeg-2...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: GStreamer package maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-28 02:30 UTC by headcrabextra
Modified: 2014-12-24 09:16 UTC (History)
8 users (show)

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


Attachments
Pidgin output when this crash happens (pidgin.log,228 bytes, text/plain)
2014-07-28 02:31 UTC, headcrabextra
Details
Clementine output when this crash happens (clementine.log,2.14 KB, text/plain)
2014-07-28 02:31 UTC, headcrabextra
Details

Note You need to log in before you can comment on or make changes to this bug.
Description headcrabextra 2014-07-28 02:30:11 UTC
=media-video/ffmpeg-2.3 together with =gst-plugins-ffmpeg-0.10.13_p201211-r2

This segfault happens in multiple applications: I've encountered it in pidgin and clementine

ERROR: Caught a segmentation fault while loading plugin file:
/usr/lib64/gstreamer-0.10/libgstffmpeg.so

Please either:
- remove it and restart.
- run with --gst-disable-segtrap --gst-disable-registry-fork and debug.
Segmentation fault


Reproducible: Always

Steps to Reproduce:
1. run pidgin
2. get a message which should proc sound notification
Actual Results:  
pidgin crashes
Comment 1 headcrabextra 2014-07-28 02:31:23 UTC
Created attachment 381688 [details]
Pidgin output when this crash happens
Comment 2 headcrabextra 2014-07-28 02:31:43 UTC
Created attachment 381690 [details]
Clementine output when this crash happens
Comment 3 headcrabextra 2014-07-28 02:31:59 UTC
This crash does not happen with ffmpeg-2.2.5
Comment 4 Arfrever Frehtes Taifersar Arahesis 2014-07-28 05:10:28 UTC
Does segmentation fault occur if you rebuild media-plugins/gst-plugins-ffmpeg after installing media-video/ffmpeg-2.3?
Comment 5 headcrabextra 2014-07-28 05:19:41 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #4)
> Does segmentation fault occur if you rebuild
> media-plugins/gst-plugins-ffmpeg after installing media-video/ffmpeg-2.3?

No.
Comment 6 Arfrever Frehtes Taifersar Arahesis 2014-07-28 05:25:57 UTC
Probably duplicate of bug #518338.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-28 12:15:02 UTC
Please attach the output of a gdb backtrace.
Comment 8 Rafał Mużyło 2014-07-28 15:22:41 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #6)
> Probably duplicate of bug #518338.

Most likely so.
Comment 9 headcrabextra 2014-07-28 16:34:14 UTC
(In reply to Jeroen Roovers from comment #7)
> Please attach the output of a gdb backtrace.

$ gdb pidgin
GNU gdb (Gentoo 7.7.1 p1) 7.7.1
Copyright (C) 2014 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".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from pidgin...Reading symbols from /usr/lib64/debug//usr/bin/pidgin.debug...done.
done.
(gdb) run
Starting program: /usr/bin/pidgin 
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".

Program received signal SIGSEGV, Segmentation fault.
0x00007fffe21e085b in gst_ffmpegdemux_register () from /usr/lib64/gstreamer-0.10/libgstffmpeg.so
(gdb) bt
#0  0x00007fffe21e085b in gst_ffmpegdemux_register () from /usr/lib64/gstreamer-0.10/libgstffmpeg.so
#1  0x00007fffe21c46e5 in plugin_init () from /usr/lib64/gstreamer-0.10/libgstffmpeg.so
#2  0x00007ffff57d7f81 in gst_plugin_register_func () from /usr/lib64/libgstreamer-0.10.so.0
#3  0x00007ffff57d9e2a in gst_plugin_load_file () from /usr/lib64/libgstreamer-0.10.so.0
#4  0x00007ffff57e4294 in gst_registry_scan_plugin_file () from /usr/lib64/libgstreamer-0.10.so.0
#5  0x00007ffff57e541f in gst_registry_scan_path_level () from /usr/lib64/libgstreamer-0.10.so.0
#6  0x00007ffff57e562b in gst_registry_scan_path_internal () from /usr/lib64/libgstreamer-0.10.so.0
#7  0x00007ffff57e6f6a in gst_update_registry () from /usr/lib64/libgstreamer-0.10.so.0
#8  0x00007ffff579d7d5 in init_post () from /usr/lib64/libgstreamer-0.10.so.0
#9  0x00007ffff50449d8 in g_option_context_parse () from /usr/lib64/libglib-2.0.so.0
#10 0x00007ffff579e0fd in gst_init_check () from /usr/lib64/libgstreamer-0.10.so.0
#11 0x00000000004a0981 in pidgin_sound_init () at gtksound.c:325
#12 0x000000000047f894 in pidgin_ui_init () at gtkmain.c:314
#13 0x00007ffff5cff179 in purple_core_init (ui=ui@entry=0x4b72d7 "gtk-gaim") at core.c:185
#14 0x0000000000431a22 in main (argc=1, argv=0x7fffffffda28) at gtkmain.c:812
(gdb) 




Btw here is a sequence of packages to install in order to reproduce this issue:
emerge --oneshot =media-video/ffmpeg-2.2.5 && emerge --oneshot =gst-plugins-ffmpeg-0.10.13_p201211-r2 && emerge --oneshot =media-video/ffmpeg-2.3
Comment 10 Martin Wegner 2014-08-01 11:00:29 UTC
I've encountered it with www-client/firefox-31.0 and www-client/firefox-bin-31.0 and media-video/ffmpeg-2.3.0 after I tried to open http://paypal.de in each firefox (presumably because there is a video included in the website). Both firefox versions crashed with this error:

[...]
ERROR: Caught a segmentation fault while loading plugin file:
/usr/lib64/gstreamer-0.10/libgstffmpeg.so

Please either:
- remove it and restart.
- run with --gst-disable-segtrap --gst-disable-registry-fork and debug.

(plugin-container:28302): Gdk-WARNING **: GdkWindow 0x280001f unexpectedly destroyed

(plugin-container:28302): Gdk-WARNING **: GdkWindow 0x2800003 unexpectedly destroyed
[28302] ###!!! ABORT: X_ChangeProperty: BadWindow (invalid Window parameter); 25 requests ago: file /builds/slave/rel-m-rel-l64_bld-000000000000/build/toolkit/xre/nsX11ErrorHandler.cpp, line 157
[28302] ###!!! ABORT: X_ChangeProperty: BadWindow (invalid Window parameter); 25 requests ago: file /builds/slave/rel-m-rel-l64_bld-000000000000/build/toolkit/xre/nsX11ErrorHandler.cpp, line 157

For me, the problem was just gone after the update to media-video/ffmpeg-2.3.1 was installed. As a binary package of 2.3.0 was built due to unmerge-backup feature, I could provide more information and testing for this if requested.
Comment 11 Sander Sweers 2014-08-01 12:43:43 UTC
I saw segfaults with exaile in the ffmpeg plugin. A rebuild of gstreamer:0.10 and gst-plugins-ffmpeg:0.10. I'll see if a similar rebuild for the 1.0 slot fixes the problem on firefox.
Comment 12 Sander Sweers 2014-08-01 12:56:44 UTC
Rebuilding rhe 1.0 slots made firefox stop crashing. The last updates on the relevant packages:

     Sat Jul 19 22:21:26 2014 >>> media-video/ffmpeg-2.2.4
       merge time: 3 minutes and 11 seconds.

     Thu Jul 31 18:23:17 2014 >>> media-video/ffmpeg-2.3
       merge time: 6 minutes and 31 seconds.

     Sat Jul 19 22:24:49 2014 >>> media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r2
       merge time: 21 seconds.

     Sat Jul 19 22:26:00 2014 >>> media-plugins/gst-plugins-libav-1.2.4
       merge time: 20 seconds.
Comment 13 headcrabextra 2014-08-03 07:22:07 UTC
This happens with ffmpeg-2.3.1 too. These versions of ffmpeg don't "just werk" so they should be masked.
Comment 14 Alexis Ballier gentoo-dev 2014-12-15 14:55:54 UTC
ive dropped ffmpeg 2.3 some time ago; 2.4+ change subslot, soname & abi so needs a rebuild; lets consider this one fixed.