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

Submitter:  Paride Legovini <torn>
Submitted:  Mon 16 Mar 2009 03:10:10 AM UTC
   
 
Category:  None Severity:  3 - Normal
Release:  trunk Status:  Wont Fix
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>
Group 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>
Group 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 Files:
   
   
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
  • -email is unavailable- added by bjacques (Posted a comment)
  • -email is unavailable- added by strk (Posted a comment)
  • -email is unavailable- added by bwy (Posted a comment)
  • -email is unavailable- added by torn (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-03-08 bjacques StatusNone Wont Fix
        Open/ClosedOpen Closed
    2009-03-23 None Attached File- Added c99.php, #17778
    2009-03-16 torn Attached File- Added gnash-dbg.log, #17704
    2009-03-16 torn Attached File- Added gnash-dbg.log.bz2, #17703

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code