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 527572 - Crash in volume_process_int32
Crash in volume_process_int32
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-ugly
0.10.x
Other All
: High critical
: 0.10.8
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 520009 528136 530873 532461 533941 535329 535364 538423 544179 544180 547195 552510 554043 554211 555072 557012 557013 560020 564382 572934 573676 575890 582568 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-04-11 16:20 UTC by alano.br
Modified: 2009-05-14 07:57 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
Log of failure generated with GST_DEBUG=*:2 (199.02 KB, text/plain)
2008-04-14 18:14 UTC, Mike Crowe
Details

Description alano.br 2008-04-11 16:20:17 UTC
Version: 2.20.3

What were you doing when the application crashed?



Distribution: Debian lenny/sid
Gnome Release: 2.22.0 2008-03-14 (Debian)
BugBuddy Version: 2.22.0

System: Linux 2.6.24-1-amd64 #1 SMP Thu Mar 27 16:52:38 UTC 2008 x86_64
X Vendor: The X.Org Foundation
X Vendor Release: 10300000
Selinux: No
Accessibility: Disabled
GTK+ Theme: Industrial
Icon Theme: Noia

Memory status: size: 632201216 vsize: 632201216 resident: 85602304 share: 44818432 rss: 85602304 rss_rlim: 18446744073709551615
CPU usage: start_time: 1207930768 rtime: 943 utime: 874 stime: 69 cutime:2 cstime: 2 timeout: 0 it_real_value: 0 frequency: 100

Backtrace was generated from '/usr/bin/totem'

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0x2b1e1120bba0 (LWP 18425)]
[New Thread 0x43806950 (LWP 18433)]
[New Thread 0x43005950 (LWP 18432)]
[New Thread 0x42804950 (LWP 18431)]
[New Thread 0x42003950 (LWP 18430)]
[New Thread 0x41802950 (LWP 18429)]
[New Thread 0x41001950 (LWP 18428)]
[New Thread 0x40800950 (LWP 18427)]
0x00002b1e0cab6d04 in __lll_lock_wait () from /lib/libpthread.so.0

Thread 4 (Thread 0x42804950 (LWP 18431))

  • #0 waitpid
    from /lib/libpthread.so.0
  • #1 g_spawn_sync
    from /usr/lib/libglib-2.0.so.0
  • #2 g_spawn_command_line_sync
    from /usr/lib/libglib-2.0.so.0
  • #3 ??
    from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
  • #4 <signal handler called>
  • #5 volume_process_int32
    at gstvolume.c line 503
  • #6 volume_transform_ip
    at gstvolume.c line 709
  • #7 ??
    from /usr/lib/libgstbase-0.10.so.0
  • #8 ??
    from /usr/lib/libgstbase-0.10.so.0
  • #9 ??
    from /usr/lib/libgstreamer-0.10.so.0
  • #10 gst_pad_push
    from /usr/lib/libgstreamer-0.10.so.0
  • #11 ??
    from /usr/lib/libgstbase-0.10.so.0
  • #12 ??
    from /usr/lib/libgstreamer-0.10.so.0
  • #13 gst_pad_push
    from /usr/lib/libgstreamer-0.10.so.0
  • #14 ??
    from /usr/lib/libgstbase-0.10.so.0
  • #15 ??
    from /usr/lib/libgstreamer-0.10.so.0
  • #16 gst_pad_push
    from /usr/lib/libgstreamer-0.10.so.0
  • #17 ??
    from /usr/lib/libgstreamer-0.10.so.0
  • #18 gst_pad_push
    from /usr/lib/libgstreamer-0.10.so.0
  • #19 ??
    from /usr/lib/gstreamer-0.10/libgstcoreelements.so
  • #20 ??
    from /usr/lib/libgstreamer-0.10.so.0
  • #21 ??
    from /usr/lib/libglib-2.0.so.0
  • #22 ??
    from /usr/lib/libglib-2.0.so.0
  • #23 start_thread
    from /lib/libpthread.so.0
  • #24 clone
    from /lib/libc.so.6
  • #25 ??


----------- .xsession-errors (95 sec old) ---------------------
Initialising plugin TorrentCreator
Initialising plugin TorrentPeers
Initialising plugin FlexRSS
Applying preferences
Starting DHT...
Showing window
no old fastresume to delete
Found TorrentFiles plugin...
Found NetworkGraph plugin...
Found TorrentPeers plugin...
save uploaded memory
Pickling state...
save uploaded memory
Pickling state...
Raising error: Aviso do gerenciador de janelas: Janela WM_TRANSIENT_FOR inválida 0x87 especificada para 0x1402ed8 ().
--------------------------------------------------
Comment 1 Philip Withnall 2008-04-13 21:44:52 UTC
Looks like a GStreamer crash, but a more complete stack trace would be better.

Thanks for taking the time to report this bug.
Unfortunately, that stack trace is missing some elements that will help a lot to solve the problem, so it will be hard for the developers to fix that crash. Can you get us a stack trace with debugging symbols? Please see http://www.gnome.org/projects/totem/#bugs for more information on how to do so and reopen this bug or report a new one. Thanks in advance!
Comment 2 Tim-Philipp Müller 2008-04-14 12:53:41 UTC
This looks like we failed to catch a negative value somewhere and then it got multiplied and things go downhill from there (but then these values may not be accurate):

  • #5 volume_process_int32
    at gstvolume.c line 503


alano.br@gmail.com: Can you reproduce this bug?
Comment 3 Mike Crowe 2008-04-14 18:12:39 UTC
I've found the same problem and initially reported it with instructions for reproducing it at https://bugs.launchpad.net/bugs/216462 before being redirected here.

(In reply to comment #1)
> Please see
> http://www.gnome.org/projects/totem/#bugs for more information on how to do so
> and reopen this bug or report a new one. Thanks in advance!

I produced a log using the command line specified on that page. It doesn't look very exciting but I'll attach it anyway.

The stack trace is available in the launchpad bug report (I tried to install as many -dbg packages as I could to get symbols but it looks like most of them are in totem itself).
Comment 4 Mike Crowe 2008-04-14 18:14:07 UTC
Created attachment 109254 [details]
Log of failure generated with GST_DEBUG=*:2
Comment 5 Tim-Philipp Müller 2008-04-14 19:52:22 UTC
If you can reproduce it, that's great. Any chance you could make that mp3 available somewhere for us (possibly it can be attached to the launchpad bug report)? If not, could you provide a gzipped GST_DEBUG=*:5 log by any chance?
Comment 6 Mike Crowe 2008-04-14 20:51:53 UTC
(In reply to comment #5)
> If you can reproduce it, that's great. Any chance you could make that mp3
> available somewhere for us (possibly it can be attached to the launchpad bug
> report)?

The file is over 26MiB long but I've made it (temporarily) available at http://www.fysh.org/~mac/totem-bug-527572.mp3 - unfortunately I only seem to be able to reproduce the problem near the end.
Comment 7 Philip Withnall 2008-04-15 06:18:18 UTC
*** Bug 528136 has been marked as a duplicate of this bug. ***
Comment 8 Mike Crowe 2008-04-29 07:34:23 UTC
I've provided the file as requested yet this bug has remained in the "NEEDSINFO" state. Is there any more information I can provide? Is there a problem with downloading the file?
Comment 9 Tim-Philipp Müller 2008-04-29 07:48:49 UTC
> Is there a problem with downloading the file?

No, it's fine, thanks. I haven't been able to reproduce this  with CVS of things though, but maybe someone else can.


Comment 10 Philip Withnall 2008-05-10 14:15:40 UTC
*** Bug 520009 has been marked as a duplicate of this bug. ***
Comment 11 Philip Withnall 2008-05-10 14:17:36 UTC
*** Bug 532461 has been marked as a duplicate of this bug. ***
Comment 12 Philip Withnall 2008-05-10 14:18:04 UTC
Bug #532461 has another complete stack trace, if that's useful.
Comment 13 Sebastian Dröge (slomo) 2008-05-10 18:30:43 UTC


  • #6 volume_process_int32
    at gstvolume.c line 503
  • #7 volume_transform_ip
    at gstvolume.c line 709
  • #8 gst_base_transform_handle_buffer
    at gstbasetransform.c line 1446
  • #9 gst_base_transform_chain
    at gstbasetransform.c line 1590
  • #10 gst_pad_chain_unchecked
    at gstpad.c line 3523


Hmmm, 1073735200 samples are many... I guess that's the problem ;)
Comment 14 Sebastian Dröge (slomo) 2008-05-11 08:10:37 UTC
*** Bug 530873 has been marked as a duplicate of this bug. ***
Comment 15 Sebastian Dröge (slomo) 2008-05-11 08:11:54 UTC
Ok, so it seems that for all reports there's mad in front of volume... and in bug #530873 there is a debug log, saying that mad has some problems decoding.
Comment 16 Makoto Kato 2008-05-12 02:53:56 UTC
This seems to be race condition of change volume and other (change position by UI).

On totem, after changing volume, when I change slider of position, this occurs.

When pad task for volume is created, pad task is valid.  But another task uses same chunk.  If another tasks works first, it will be free.  So volume_transform_ip will use freed invalid pad.

Since It is difficult to reproduce this,  I investigate more.
Comment 17 Sebastian Dröge (slomo) 2008-05-13 07:01:37 UTC
Not sure what you mean. The buffers will only be freed if nobody is using them anymore.

But it could very well be, that the buffers that volume gets are unreffed one time too often before volume gets them and the memory is overwritten by something else. The buffer must've been valid at the time the transform_ip method of volume is called though, otherwise this would've never happenend.

Another thing I can think of, is that mad outputs invalid buffers in some error cases. The code looks a bit weird IMHO.
Comment 18 Tim-Philipp Müller 2008-05-15 14:00:00 UTC
Possibly related: https://bugzilla.redhat.com/show_bug.cgi?id=446444 (note the high sample count; also dest==src and src_writable=0 according to the trace).
Comment 19 Samuel Martin Moro 2008-05-16 20:58:08 UTC
I installed gstreamer0.10-ffmpeg_0.10, and now haven't this bug (totem's bug, while seeking in an flv file) anymore !
Comment 20 Philip Withnall 2008-05-19 23:42:47 UTC
*** Bug 533941 has been marked as a duplicate of this bug. ***
Comment 21 Sebastian Dröge (slomo) 2008-05-20 07:42:19 UTC
This should be fixed in gst-plugins-ugly CVS now (and latest pre-release 0.10.7.4).

Please reopen this bug if it can be still reproduced with that version.

2008-05-19  Edward Hervey  <edward.hervey@collabora.co.uk>

        * ext/mad/gstmad.c: (gst_mad_convert_src), (gst_mad_chain):
        Fix inconsistent use of rate and channels.
        Fixes #533581
Comment 22 Philip Withnall 2008-05-29 09:41:35 UTC
*** Bug 535364 has been marked as a duplicate of this bug. ***
Comment 23 Philip Withnall 2008-05-29 09:41:38 UTC
*** Bug 535329 has been marked as a duplicate of this bug. ***
Comment 24 Baptiste Mille-Mathias 2008-07-22 16:26:11 UTC
*** Bug 544179 has been marked as a duplicate of this bug. ***
Comment 25 Baptiste Mille-Mathias 2008-07-22 16:26:26 UTC
*** Bug 544180 has been marked as a duplicate of this bug. ***
Comment 26 Jonathan Matthew 2008-07-27 07:09:38 UTC
*** Bug 538423 has been marked as a duplicate of this bug. ***
Comment 27 Philip Withnall 2008-08-16 11:29:50 UTC
*** Bug 547195 has been marked as a duplicate of this bug. ***
Comment 28 Philip Withnall 2008-09-16 17:00:53 UTC
*** Bug 552510 has been marked as a duplicate of this bug. ***
Comment 29 Jonathan Matthew 2008-09-27 08:24:46 UTC
*** Bug 554043 has been marked as a duplicate of this bug. ***
Comment 30 Philip Withnall 2008-09-28 19:38:10 UTC
*** Bug 554211 has been marked as a duplicate of this bug. ***
Comment 31 Philip Withnall 2008-10-06 00:40:41 UTC
*** Bug 555072 has been marked as a duplicate of this bug. ***
Comment 32 Philip Withnall 2008-10-20 06:02:03 UTC
*** Bug 557013 has been marked as a duplicate of this bug. ***
Comment 33 Philip Withnall 2008-10-20 06:02:18 UTC
*** Bug 557012 has been marked as a duplicate of this bug. ***
Comment 34 Philip Withnall 2008-11-09 17:06:00 UTC
*** Bug 560020 has been marked as a duplicate of this bug. ***
Comment 35 Philip Withnall 2008-12-13 16:18:21 UTC
*** Bug 564382 has been marked as a duplicate of this bug. ***
Comment 36 Philip Withnall 2009-02-24 07:07:12 UTC
*** Bug 572934 has been marked as a duplicate of this bug. ***
Comment 37 Philip Withnall 2009-03-01 21:50:44 UTC
*** Bug 573676 has been marked as a duplicate of this bug. ***
Comment 38 Philip Withnall 2009-03-18 23:09:30 UTC
*** Bug 575890 has been marked as a duplicate of this bug. ***
Comment 39 Jonathan Matthew 2009-05-14 07:57:52 UTC
*** Bug 582568 has been marked as a duplicate of this bug. ***