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 650786 - Crash in libavcodec
Crash in libavcodec
Status: RESOLVED NOTGNOME
Product: GStreamer
Classification: Platform
Component: gst-plugins
0.10.28
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-05-22 10:08 UTC by Andy Robinson
Modified: 2011-05-23 10:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andy Robinson 2011-05-22 10:08:44 UTC
Ubuntu 10.04
Gnome 2.30.2
GStreamer version 0.10.28

This is a simple console program using GStreamer to decode 2 files to an appsink.

Pipeline: filesrc -> decode2bin -> audioconvertor -> appsink

It crashes every time - Segmentation fault.

Either file can be decoded on its own, and they can both be decoded if we do the mov first then the mp3.

If we switch the appsink for a filesink or a fakesink then everything is fine.

Am I doing something silly?

Answers on a postcard please, to andy@seventhstring.com


*****

Files at www.seventhstring.com/other/gsttest/

Readme.txt - this file

03 Son Of Sky Dive.mp3 & bola2.mov - media files.

gsttest.cpp - program which crashes

build.sh - script for building it.

*****

To reproduce: download these files and:
./build.sh
./gsttest
Comment 1 Tim-Philipp Müller 2011-05-22 17:26:57 UTC
Could you get a stack trace from gdb?
Comment 2 Andy Robinson 2011-05-23 09:07:53 UTC
Certainly, though it's not hugely informative (or at least not to me). Here are the last few lines off my console.

[t!file-source]: PAUSED -> PLAYING
[t!pipeline]: PAUSED -> PLAYING
[Thread 0xad2feb70 (LWP 2800) exited]

Program received signal SIGSEGV, Segmentation fault.

Thread 3075472240 (LWP 2798)

  • #0 ??
    from /usr/lib/i686/cmov/libavcodec.so.52

Comment 3 Andy Robinson 2011-05-23 09:18:06 UTC
For some reason my last comment doesn't show the last few lines correctly - here they are again with an X at the fromt of each line.

X Program received signal SIGSEGV, Segmentation fault.
X [Switching to Thread 0xb74ffb70 (LWP 2798)]
X 0x00e36ac5 in ?? () from /usr/lib/i686/cmov/libavcodec.so.52
X (gdb) bt
X #0  0x00e36ac5 in ?? () from /usr/lib/i686/cmov/libavcodec.so.52
X (gdb)
Comment 4 Sebastian Dröge (slomo) 2011-05-23 09:25:11 UTC
You're using ffmpeg that was provided by your distribution instead of the ffmpeg version that is included in gst-ffmpeg. We don't provide support if you're using a different ffmpeg version than the one included. If you can reproduce the crash with the ffmpeg version included in gst-ffmpeg please reopen the bug.
Comment 5 Andy Robinson 2011-05-23 09:31:33 UTC
Thanks, but how do I do that? And how can I tell which ffmpeg I am using? Is it just a question of ffmpeg version numbers?

BTW as a matter of curiosity have you tried this test program? Does it work for you, using gst-ffmpeg?
Comment 6 Sebastian Dröge (slomo) 2011-05-23 10:25:34 UTC
You have to build gst-ffmpeg from source. And you see that you're using a different ffmpeg from your backtrace, it lists /usr/lib/i686/cmov/libavcodec.so.52

Your test program doesn't crash for me