[MPlayer-users] Mplayer crashes when playing http streams from linvdr.

Josef Wolf jw at raven.inka.de
Sat Oct 16 02:33:27 CEST 2004


Hello!

Mplayer-20041015 frequently crashes when playing http streams from linvdr.

The crash is in decode.c:mpeg2_set_buf(). Looks like the NULL pointer
mpeg2dec->fbuf[1] is dereferenced. Any ideas what causes this problem
and what can be done about it?

Here is a gdb backtrace:

jw at raven:/m/spool/tmp/build-local> gdb --args mplayer -hardframedrop -ao oss:/dev/dsp1 http://vdr1:3000/PS/17
GNU gdb 5.3.92
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-suse-linux"...
(gdb) run
Starting program: /m/local/bin/mplayer -hardframedrop -ao oss:/dev/dsp1 http://vdr1:3000/PS/17
[New Thread 16384 (LWP 6367)]
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale

MPlayer dev-CVS-041015-06:00-3.3.1 (C) 2000-2004 MPlayer Team

CPU: Advanced Micro Devices Athlon 4 /Athlon MP/XP Palomino (Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
Reading config file /usr/local/etc/mplayer/mplayer.conf: Datei oder Verzeichnis nicht gefunden
Reading config file /home/jw/.mplayer/config: Ist kein Verzeichnis
Reading /home/jw/.mplayer/codecs.conf: Can't open '/home/jw/.mplayer/codecs.conf': Ist kein Verzeichnis
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': Datei oder Verzeichnis nicht gefunden
Using built-in default codecs.conf.
font: can't open file: /home/jw/.mplayer/font/font.desc
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 chars)
Failed to open /dev/rtc: Keine Berechtigung (it should be readable by the user.)
Using nanosleep() timing
Can't open input config file /home/jw/.mplayer/input.conf: Ist kein Verzeichnis
Can't open input config file /usr/local/etc/mplayer/input.conf: Datei oder Verzeichnis nicht gefunden
Falling back on default (hardcoded) input config
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: Keine Berechtigung
Failed to open LIRC support.
You will not be able to use your remote control.

Playing http://vdr1:3000/PS/17.
Resolving vdr1 for AF_INET6...
Couldn't resolve name for AF_INET6: vdr1
Resolving vdr1 for AF_INET...
Connecting to server vdr1[192.168.1.110]:3000 ...
Cache size set to 320 KBytes
Connected to server: vdr1
Cache fill:  0,00% (0 bytes)    MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 2)  25,000 fps  15000,0 kbps (1875,0 kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 24000->192000 (192,0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0" => local display)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1,33:1 - prescaling to correct movie aspect.
VO: [xv] 720x576 => 768x576 Planar YV12
A:14024,2 V:14025,1 A-V: -0,924 ct: -0,004    2/  2   0%  0%  0,0% 2 0 3%%
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 6367)]
0x08413a19 in mpeg2_set_buf (mpeg2dec=0x86a1740, buf=0x86854d8, id=0x86854b8) at decode.c:355
355         if (mpeg2dec->custom_fbuf && !mpeg2dec->fbuf[1]->buf[0]){
(gdb) bt
#0  0x08413a19 in mpeg2_set_buf (mpeg2dec=0x86a1740, buf=0x86854d8, id=0x86854b8) at decode.c:355
#1  0x080ffde3 in decode (sh=0x8683e40, data=0x40e78008, len=4950, flags=0) at vd_libmpeg2.c:167
#2  0x080fdcd3 in decode_video (sh_video=0x8683e40, start=0x86854b8 "", in_size=141055160, drop_frame=0) at dec_video.c:309
#3  0x0807d2e1 in main (argc=5, argv=0xbffff234) at mplayer.c:2138
(gdb) print mpeg2dec->fbuf
$1 = {0x86a5b90, 0x0, 0x86a5b80}
(gdb)

-- 
Please visit and sign and http://www.ffii.org
-- Josef Wolf -- jw at raven.inka.de --




More information about the MPlayer-users mailing list