totem-gstreamer crashes while opening mkv video

Bug #336811 reported by Christophe
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
totem (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs

Bug Description

Hi,

while generating preview images or watching a mkv/ h264/ vorbis video totem crashes. These crashes are probably related to the same problem:

Mar 2 17:44:12 notebook kernel: [ 6325.497395] gnome-video-thu[8291] general protection ip:7f5840a040c2 sp:7fff48c09338 error:0 in ld-2.9.so[7f58409ec000+20000]
Mar 2 17:44:23 notebook kernel: [ 6337.408034] gnome-video-thu[8391]: segfault at bf3f3f3e8 ip 00007fe0cb5a71c1 sp 00007fe0c6b37a20 error 6 in libavcodec.so.52.11.0[7fe0cb386000+49a000]
Mar 2 17:44:25 notebook kernel: [ 6339.114742] gnome-video-thu[8408] general protection ip:7fe8b322d1c1 sp:7fe8abb1fa20 error:0 in libavcodec.so.52.11.0[7fe8b300c000+49a000]
Mar 2 17:44:26 notebook kernel: [ 6339.803657] gnome-video-thu[8417] general protection ip:7f199658c1c1 sp:7f1992e1da20 error:0 in libavcodec.so.52.11.0[7f199636b000+49a000]
Mar 2 17:44:26 notebook kernel: [ 6340.469472] gnome-video-thu[8426] general protection ip:7f17c2795847 sp:7f17b42faa00 error:0 in libglib-2.0.so.0.1908.0[7f17c273d000+c3000]
Mar 2 17:44:29 notebook kernel: [ 6342.564813] gnome-video-thu[8457]: segfault at 1bfa1817f8 ip 00007ffd06a56cfa sp 00007ffcf9c859c0 error 4 in libc-2.9.so[7ffd069da000+168000]
Mar 2 17:44:30 notebook kernel: [ 6344.287819] gnome-video-thu[8474] general protection ip:7f51e1f031c1 sp:7f51dba7ea20 error:0 in libavcodec.so.52.11.0[7f51e1ce2000+49a000]
Mar 2 17:44:35 notebook kernel: [ 6349.250191] gnome-video-thu[8572] general protection ip:7f7f3ac681c1 sp:7f7f3898ca20 error:0 in libavcodec.so.52.11.0[7f7f3aa47000+49a000]
Mar 2 17:44:38 notebook kernel: [ 6351.559915] gnome-video-thu[8596]: segfault at ab8f13a80 ip 00007f1aa25cc1c1 sp 00007f1aa02f0a20 error 6 in libavcodec.so.52.11.0[7f1aa23ab000+49a000]
Mar 2 17:52:44 notebook kernel: [ 6838.379955] gnome-video-thu[8835] general protection ip:7f2d33b96e52 sp:7f2d24ceddd0 error:0 in libglib-2.0.so.0.1908.0[7f2d33b3f000+c3000]
Mar 2 17:53:15 notebook kernel: [ 6869.193794] gnome-video-thu[8869]: segfault at ffffffffac000010 ip 00007f6fbc04586a sp 00007f6fab1e6990 error 6 in libc-2.9.so[7f6fbbfcb000+168000]
Mar 2 17:53:50 notebook kernel: [ 6904.043409] gnome-video-thu[8932]: segfault at 531 ip 00007fd4cee48cfa sp 00007fd4bdf459c0 error 4 in libc-2.9.so[7fd4cedcc000+168000]
Mar 2 17:59:31 notebook kernel: [ 7244.732523] totem[9030]: segfault at ffffffff ip 00007fc1107cb847 sp 00007fc0f74f39b0 error 4 in libglib-2.0.so.0.1908.0[7fc110773000+c3000]

I am getting lots of different error messages:

*** glibc detected *** totem: realloc(): invalid pointer: 0x0000000003f12160 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f2a078c5cb8]
/lib/libc.so.6(realloc+0x2bc)[0x7f2a078caf3c]
/usr/lib/libavcodec.so.52(av_fast_realloc+0x29)[0x7f29f534f489]
/usr/lib/libavcodec.so.52(ff_vdpau_add_data_chunk+0x4f)[0x7f29f54e01af]
/usr/lib/libavcodec.so.52[0x7f29f54d3d67]
/usr/lib/libavcodec.so.52[0x7f29f54d5098]
/usr/lib/libavcodec.so.52(avcodec_decode_video+0xbb)[0x7f29f534db8b]
/usr/lib/gstreamer-0.10/libgstffmpeg.so[0x7f29f5ea5bcb]
/usr/lib/gstreamer-0.10/libgstffmpeg.so[0x7f29f5ea7c80]
/usr/lib/libgstreamer-0.10.so.0[0x7f2a0cf52f76]
/usr/lib/libgstreamer-0.10.so.0(gst_pad_push+0x353)[0x7f2a0cf54253]
/usr/lib/gstreamer-0.10/libgstcoreelements.so[0x7f29fd959832]
/usr/lib/libgstreamer-0.10.so.0[0x7f2a0cf73d86]
/usr/lib/libglib-2.0.so.0[0x7f2a085411d7]
/usr/lib/libglib-2.0.so.0[0x7f2a0853fc74]
/lib/libpthread.so.0[0x7f2a0b85e3ba]
/lib/libc.so.6(clone+0x6d)[0x7f2a07933fcd]

Same file next try:
** Message: Error: Internal GStreamer error: negotiation problem. Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer.
gstffmpegdec.c(1140): gst_ffmpegdec_negotiate (): /GstPlayBin:play/GstDecodeBin:decodebin0/ffdec_h264_vdpau:ffdec_h264_vdpau0:
could not find caps for codec (h264_vdpau), unknown type

Segmentation fault (core dumped)

Ubuntu jaunty 9.04
totem-gstreamer 2.25.91-0ubuntu2
gstreamer0.10-ffmpeg 0.10.6-1
libavcodec-unstripped-52 3:0.svn20090204-2ubuntu1+unstripped2

If you need me to tell you anything else, just ask for it.

ProblemType: Crash
Architecture: amd64
DistroRelease: /usr/bin/lsb_release:81: DeprecationWarning: the sets module is deprecated import sets Ubuntu 9.04
ExecutablePath: /usr/bin/totem-gstreamer
Package: totem-gstreamer 2.25.91-0ubuntu2
ProcCmdline: totem /home/username/Videos/LOST\ IN\ TRANSLATION.mkv
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
Signal: 11
SourcePackage: totem
StacktraceTop:
 g_slice_alloc () from /usr/lib/libglib-2.0.so.0
 ?? () from /usr/lib/libgstreamer-0.10.so.0
 gst_message_new_error ()
 gst_element_message_full ()
 ?? () from /usr/lib/gstreamer-0.10/libgstffmpeg.so
Title: totem-gstreamer crashed with SIGSEGV in g_slice_alloc()
Uname: Linux 2.6.28-8-generic x86_64
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Christophe (christophe-wk3) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:g_slice_alloc () from /usr/lib/libglib-2.0.so.0
gst_structure_id_empty_new_with_size (quark=3738,
gst_message_new_error (src=0x3bfc030,
gst_element_message_full (element=0x3bfc030,
gst_ffmpegdec_negotiate (ffmpegdec=0x3bfc030)

Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please try to obtain a valgrind log following the instructions at https://wiki.ubuntu.com/Valgrind and attach the file to the bug report. This will greatly help us in tracking down your problem.

BTW It looks like a gstreamer issue.

Changed in totem:
assignee: nobody → desktop-bugs
status: New → Incomplete
Revision history for this message
Christophe (christophe-wk3) wrote :

Hi,

here comes the valgrind log. I hope I installed enough packages with debug symbols.

Revision history for this message
Christophe (christophe-wk3) wrote :

Hi,

here's some gdb output.

Revision history for this message
Sebastien Bacher (seb128) wrote :

could you install libgtk2.0-0-dbg and get new logs?

Revision history for this message
Sebastien Bacher (seb128) wrote :

do you also have a video example to add to the bug or an url to download one?

Revision history for this message
Christophe (christophe-wk3) wrote :

Hi,

here are some more Informations: The crashes and broken thumbnails occur with most of my video files:

Doesn't play:

MP4 (avc1, mp4a)
MKV (avc1, mpga)
MOV (avc1, mp4a)
AVI (H264, wma2)

Plays:

AVI (XVID, mpga)

This is the file I will use for the following tests: ftp://ftp.ccc.de/congress/22C3/lectures/video/mp4-avc/320x240/22C3-1112-en-modern_disk_encryption.m4v

I've attached the latest valgrind log.

Revision history for this message
Christophe (christophe-wk3) wrote :

Here's a gdb log

Revision history for this message
Eero (eero+launchpad) wrote :
Download full text (6.3 KiB)

I have the same problem after upgrading from Intrepid to Jaunty today. Xvids work but h264 videos will crash.

/var/lib/python-support/python2.6/gdata/tlslite/utils/cryptomath.py:9: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
*** glibc detected *** totem: realloc(): invalid pointer: 0x0000000002626440 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f15086e1cb8]
/lib/libc.so.6(realloc+0x2bc)[0x7f15086e6f3c]
/usr/lib/libavcodec.so.52(av_fast_realloc+0x29)[0x7f14f19ae489]
/usr/lib/libavcodec.so.52(ff_vdpau_add_data_chunk+0x4f)[0x7f14f1b3f12f]
/usr/lib/libavcodec.so.52[0x7f14f1b32ce7]
/usr/lib/libavcodec.so.52[0x7f14f1b34018]
/usr/lib/libavcodec.so.52(avcodec_decode_video+0xbb)[0x7f14f19acb8b]
/usr/lib/gstreamer-0.10/libgstffmpeg.so[0x7f14f25067aa]
/usr/lib/gstreamer-0.10/libgstffmpeg.so[0x7f14f2508840]
/usr/lib/libgstreamer-0.10.so.0[0x7f150dd71f76]
/usr/lib/libgstreamer-0.10.so.0(gst_pad_push+0x353)[0x7f150dd73253]
/usr/lib/gstreamer-0.10/libgstcoreelements.so[0x7f14fddfd832]
/usr/lib/libgstreamer-0.10.so.0[0x7f150dd92d86]
/usr/lib/libglib-2.0.so.0[0x7f150935d1d7]
/usr/lib/libglib-2.0.so.0[0x7f150935bc74]
/lib/libpthread.so.0[0x7f150c67c3ba]
/lib/libc.so.6(clone+0x6d)[0x7f150874ffcd]
======= Memory map: ========
00400000-0046d000 r-xp 00000000 fc:01 17067185 /usr/bin/totem-gstreamer
0066c000-0066e000 r--p 0006c000 fc:01 17067185 /usr/bin/totem-gstreamer
0066e000-00672000 rw-p 0006e000 fc:01 17067185 /usr/bin/totem-gstreamer
0115c000-02c20000 rw-p 0115c000 00:00 0 [heap]
7f14e7e33000-7f14e7e49000 r-xp 00000000 fc:01 9101367 /lib/libgcc_s.so.1
7f14e7e49000-7f14e8049000 ---p 00016000 fc:01 9101367 /lib/libgcc_s.so.1
7f14e8049000-7f14e804a000 r--p 00016000 fc:01 9101367 /lib/libgcc_s.so.1
7f14e804a000-7f14e804b000 rw-p 00017000 fc:01 9101367 /lib/libgcc_s.so.1
7f14e804b000-7f14e804c000 ---p 7f14e804b000 00:00 0
7f14e804c000-7f14e884c000 rwxp 7f14e804c000 00:00 0
7f14e884c000-7f14e8857000 r-xp 00000000 fc:01 17146217 /usr/lib/gstreamer-0.10/libgstvideoscale.so
7f14e8857000-7f14e8a56000 ---p 0000b000 fc:01 17146217 /usr/lib/gstreamer-0.10/libgstvideoscale.so
7f14e8a56000-7f14e8a57000 r--p 0000a000 fc:01 17146217 /usr/lib/gstreamer-0.10/libgstvideoscale.so
7f14e8a57000-7f14e8a58000 rw-p 0000b000 fc:01 17146217 /usr/lib/gstreamer-0.10/libgstvideoscale.so
7f14e8a58000-7f14e8a59000 rw-p 7f14e8a58000 00:00 0
7f14e8a59000-7f14e8a89000 r-xp 00000000 fc:01 17146162 /usr/lib/gstreamer-0.10/libgstffmpegcolorspace.so
7f14e8a89000-7f14e8c89000 ---p 00030000 fc:01 17146162 /usr/lib/gstreamer-0.10/libgstffmpegcolorspace.so
7f14e8c89000-7f14e8c8a000 r--p 00030000 fc:01 17146162 /usr/lib/gstreamer-0.10/libgstffmpegcolorspace.so
7f14e8c8a000-7f14e8c8c000 rw-p 00031000 fc:01 17146162 /usr/lib/gstreamer-0.10/libgstffmpegcolorspace.so
7f14e8c8c000-7f14e8c8d000 ---p 7f14e8c8c000 00:00 0
7f1...

Read more...

Revision history for this message
Sebastien Bacher (seb128) wrote :

the recent comment is bug #330165 and a different issue

the mp4 example plays fine on jaunty here, could you open the bug on bugzilla.gnome.org where the people writting the code will read it?

Revision history for this message
Christophe (christophe-wk3) wrote :

This bug has vanished since some recent update.

Revision history for this message
Sebastien Bacher (seb128) wrote :

closing the bug since that works correctly now

Changed in totem (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.