bugGnash - The GNU Flash player - Bugs: bug #25879, gnash 0.8.5 and trunk segfaults on...

 
 

bug #25879: gnash 0.8.5 and trunk segfaults on youtube videos

Submitted by:  Paride Legovini <torn>
Submitted on:  Mon 16 Mar 2009 03:10:10 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Release: trunkStatus: Wont Fix
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Tue 08 Mar 2011 01:42:46 AM UTC, comment #6:

Closing because:
a) Comments suggest this is an internal FFMPEG bug;
b) Submitter is not reachable by email;
c) I can't reproduce the segfault.

Bastiaan Jacques <bjacques>
Project Member
Tue 24 Mar 2009 09:17:27 PM UTC, comment #5:

In MPlayer's libmpcodecs/ad_ffmpeg.c file, the line

if(y<x) sh_audio->ds->buffer_pos+=y-x; // put back data (HACK!)

appears to to be a hack that handles this condition. I wonder whether gnash might need a similar hack.

Anonymous
Tue 24 Mar 2009 10:37:54 AM UTC, comment #4:

What version of ffmpeg were you using ?
Might be useful for others to know...

Sandro Santilli <strk>
Project Member
Mon 16 Mar 2009 11:27:08 AM UTC, comment #3:

I tried with an older version of ffmpeg and it seems to work fine. Maybe the problem is in ffmpeg only.

Paride Legovini <torn>
Mon 16 Mar 2009 10:56:10 AM UTC, comment #2:

First of all, I'm including a cleaner debug file.
There's not output from ffmpeg when running gnash standalone.

I compiled gnash with CXXFLAGS=-g, but the output from gdb is not enlightening:

Starting program: /usr/local/bin/gtk-gnash -vv -F 2 -P "FlashVars=fs=1&vq=None&video_id=9sJUDx7iEJw&l=121&sk=T7q2bfYDOB_bKDps1Gknon6vck_94xifC&fmt_map=34%2F0%2F9%2F0%2F115&t=vjVQa1PpcFOrFoYLa2-qAU4xIBjoYfjzQ1COC4usVbc%3D&hl=de&plid=AARlOUvEdLTEhNB0&cr=DE&title=Richar Stallman Free software Song';" http://youtube.com/player2.swf
[Thread debugging using libthread_db enabled]
19980:3047978752] 11:40:45 DEBUG: Verbose output turned on
19980:3047978752] 11:40:45 DEBUG: No rendering flags specified, using rcfile
[New Thread 0xb5ac7700 (LWP 19980)]
[New Thread 0xb5847b90 (LWP 19997)]
[New Thread 0xb4831b90 (LWP 20014)]
[Thread 0xb4831b90 (LWP 20014) exited]
[New Thread 0xb3d5db90 (LWP 20022)]
[Thread 0xb3d5db90 (LWP 20022) exited]
GET :javascript:checkCurrentVideo('undefined');
[New Thread 0xb355bb90 (LWP 20030)]
GET :javascript:checkCurrentVideo('9sJUDx7iEJw');

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb5ac7700 (LWP 19980)]
0xb6a43485 in ?? () from /usr/lib/libavcodec.so.52
(gdb) info threads
5 Thread 0xb355bb90 (LWP 20030) 0xffffe424 in __kernel_vsyscall ()
2 Thread 0xb5847b90 (LWP 19997) 0xffffe424 in __kernel_vsyscall ()

  • 1 Thread 0xb5ac7700 (LWP 19980) 0xb6a43485 in ?? () from /usr/lib/libavcodec.so.52

(file #17704)

Paride Legovini <torn>
Mon 16 Mar 2009 07:37:20 AM UTC, comment #1:

Obviously this isn't a commonly reported problem, so we will need a gdb backtrace if it's to be fixed.

Please don't turn on AS errors or SWF errors when submitting logs either, as it makes them difficult to read. http://wiki.gnashdev.org/Bug_reports might be of help, including for another way to start youtube videos offline to get a backtrace.

Is there any ffmpeg output? It is usually written to stderr, so wouldn't appear in the log. Run it standalone to see this.

Benjamin Wolsey <bwy>
Project Member
Mon 16 Mar 2009 03:10:10 AM UTC, original submission:

The last trunk version and the 0.8.5 release both crash on almost every youtube video. The crash is fully reproducible (i.e.: some videos make it always crash, some other never). I configured gnash this way:

./configure --prefix=/usr --sysconfdir=/etc --enable-media=ffmpeg --enable-gui=gtk --with-plugins-install=system --with-npapi-plugindir=/usr/lib/mozilla/plugins --enable-z --enable-jpeg --enable-png --enable-speex --enable-speexdsp --enable-fontconfig --enable-Xft --enable-expat

and followed the instructions on http://wiki.gnashdev.org/YouTube in order to play a video (the example video is one of the non-working ones). The debug output is attached; the next message after the last line in the file is the Segmentation fault notice.

I also tried to compile gnash with --enable-media=gst, and I noticed that I can play youtube videos if I install both gstreamer0.10-bad-plugins and gstreamer0.10-ffmpeg. If gstreamer0.10-ffmpeg is missing (but the bad-plugins are there) gnash basically works, but can't decode the video (the audio works). If gstreamer0.10-bad-plugins is missing then gnash segfaults (!), like it does when compiled with --enable-media=ffmpeg.

This makes me think that the issue is related with using ffmpeg to decode audio, but it's just a guess.

Stuff I'm working with:

distro: fully up-to-date arch linux
gcc version 4.3.3 (GCC)
ffmpeg 2009021
gstreamer0.10-bad 0.10.10
gstreamer0.10-bad-plugins 0.10.10
gstreamer0.10-ffmpeg 0.10.6-1

The attached logfile is HUGE. These are the last (and IMHO most relevant) lines: http://www.pastie.org/417331

Hope this helps,
pl

Paride Legovini <torn>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #17778:  c99.php added by None (147KiB - application/x-httpd-php - test)
file #17704:  gnash-dbg.log added by torn (17KiB - text/x-log - No AS/SWF debugging)
file #17703:  gnash-dbg.log.bz2 added by torn (156KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bjacques (Posted a comment)
  • -unavailable- added by strk (Posted a comment)
  • -unavailable- added by bwy (Posted a comment)
  • -unavailable- added by torn (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 08 Mar 2011 01:42:46 AM UTCbjacquesStatusNone=>Wont Fix
      Open/ClosedOpen=>Closed
    Mon 23 Mar 2009 06:13:24 PM UTCNoneAttached File-=>Added c99.php, #17778
    Mon 16 Mar 2009 10:56:10 AM UTCtornAttached File-=>Added gnash-dbg.log, #17704
    Mon 16 Mar 2009 03:10:11 AM UTCtornAttached File-=>Added gnash-dbg.log.bz2, #17703

    Back to the top


    Powered by Savane 3.1-cleanup1