[MPlayer-users] mplayer crashed : received SIGSEGV
Jean Pierre
2s2n4e at mail.ru
Sun Aug 1 02:59:18 CEST 2004
Hello,
I'm experiencing some crashs with mplayer since the 0.9 version.
It occured with some .avi files and when reading DVD.
Here are all the informations I managed to gather with the current CVS
version, let me know if you need some additional information to help
resolve the problem.
It appears that the problem is line 383 of file decode.c.
I have to say that I'm quite experienced in C programming but I'm a
newbie with mplayer project. If someone would be so kind to lend me a
hand to understand the problem in the code, it would be my pleasure to
fix the problem by myself...
Regards,
********************** system information *************************
OS :
Debian Woody
uname -a :
Linux toto 2.6.5.040501 #1 Sat May 1 16:01:57 CEST 2004 i686 unknown
ls -l /lib/libc[.-]* :
-rwxr-xr-x 1 root root 1153784 avr 8 2003 /lib/libc-2.2.5.so
lrwxrwxrwx 1 root root 13 déc 26 2003 /lib/libc.so.6 ->libc-2.2.5.so
gcc -v :
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)
ld -v :
GNU ld version 2.12.90.0.1 20020307 Debian/GNU Linux
as --version :
Assembleur GNU 2.12.90.0.1 20020307 Debian/GNU Linux
cat /proc/cpuinfo :
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 6
model name : Celeron (Mendocino)
stepping : 5
cpu MHz : 487.553
cache size : 128 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr
pge mca cmov pat pse36 mmx fxsr
bogomips : 964.60
Video Card :
ATI All In Wonder 128 32Mo
Video driver :
GATOS XFree86 4.1.0
Sound Card :
Sound Blaster Live 1024
*********************** GDB informations *************************
olive at toto:~/sources/mplayer/MPlayer-20040731$ gdb
./mplayer GNU gdb 2002-04-01-cvs
Copyright 2002 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 "i386-linux"...
(gdb) run -v "dvd://2"
Starting program: /home/olive/sources/mplayer/MPlayer-20040731/mplayer
-v "dvd://2"[New Thread 1024 (LWP 20601)]
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale
MPlayer dev-CVS-040731-06:00-2.95.4 (C) 2000-2004 MPlayer Team
CPU: Intel Celeron A Mendocino/Pentium II Dixon 487.9 MHz (Family: 6,
Stepping: 5) Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX
Reading config file /etc/mplayer/mplayer.conf
Reading config file /home/olive/.mplayer/config
Reading /home/olive/.mplayer/codecs.conf: Can't open
'/home/olive/.mplayer/codecs.conf': Aucun fichier ou répertoire de ce
type Reading /etc/mplayer/codecs.conf: Can't open
'/etc/mplayer/codecs.conf': Aucun fichier ou répertoire de ce type Using
built-in default codecs.conf. CommandLine: '-v' 'dvd://2'
init_freetype
get_path('font/font.desc') -> '/home/olive/.mplayer/font/font.desc'
font: can't open file: /home/olive/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX Optimized OnScreenDisplay
Failed to open /dev/rtc: Permission non accordée (it should be readable
by the user.) Using usleep() timing
get_path('input.conf') -> '/home/olive/.mplayer/input.conf'
Can't open input config file /home/olive/.mplayer/input.conf: Aucun
fichier ou répertoire de ce type Can't open input config file
/etc/mplayer/input.conf: Aucun fichier ou répertoire de ce type Falling
back on default (hardcoded) input config get_path('2.conf') ->
'/home/olive/.mplayer/2.conf'
Playing dvd://2.
get_path('DVDKeys') -> '/home/olive/.mplayer/DVDKeys'
Reading disc structure, please wait...
There are 7 titles on this DVD.
There are 13 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened.
[open] audio stream: 0 audio format: ac3 (unknown) language: fr aid: 128
[open] audio stream: 1 audio format: ac3 (5.1) language: en aid: 129
[open] audio stream: 2 audio format: ac3 (stereo) language: ja aid: 130
[open] number of audio channels on disk: 3.
[open] subtitle ( sid ): 0 language: fr
[open] number of subtitles on disk: 1
DVD start cell: 0 pack: 0x0-0xE54
DVD start=0 end=1863467
CACHE_PRE_INIT: 0 [0] 0 pre:0 eof:0
Cache fill: 19,68% (3301376 bytes) Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x864b0b0
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x864b0b0
Checking for Nullsoft Streaming Video
DEMUXER: freeing demuxer at 0x864b0b0
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x864b0b0
Checking for REAL
DEMUXER: freeing demuxer at 0x864b0b0
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x864b0b0
DEMUXER: freeing demuxer at 0x864ba50
DEMUXER: freeing demuxer at 0x864ba50
Searching demuxer type for filename dvd://2 ext: (null)
Checking for MOV
DEMUXER: freeing demuxer at 0x864ba50
Checking for VIVO
header block 1 size: 0
DEMUXER: freeing demuxer at 0x864ba50
DEMUXER: freeing demuxer at 0x864ba50
DEMUXER: freeing demuxer at 0x864ba50
DEMUXER: freeing demuxer at 0x864ba50
DEMUXER: freeing demuxer at 0x864ba50
DEMUXER: freeing demuxer at 0x864ba50
Checking for PVA
DEMUXER: freeing demuxer at 0x864ba50
Checking for MPEG-TS...
TRIED UP TO POSITION 70242, FOUND 47, packet_size= 0, SEEMS A TS? 0
DEMUXER: freeing demuxer at 0x864ba50
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=0 size=1140851708
LMLM4 Stream Format not found
DEMUXER: freeing demuxer at 0x864ba50
system stream synced at 0xD (0)!
==> Found video stream: 0
MPEG-PS file format detected.
==> Found audio stream: 129
==> Found audio stream: 128
Searching for sequence header... OK!
VIDEO: MPEG2 720x576 (aspect 2) 25,000 fps 8500,0 kbps (1062,5
kbyte/s)[V] filefmt:2 fourcc:0x10000002 size:720x576 fps:25,00
ftime:=0,0400 get_path('sub/') -> '/home/olive/.mplayer/sub/'
get_path('default.sub') -> '/home/olive/.mplayer/default.sub'
=======================================================================
=== Opening audio decoder: [liba52] AC3 decoding with liba52
dec_audio: Allocating 3840 bytes for input buffer.
dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer.
No accelerated IMDCT transform found
AC3: 4.0 (3f+1r) 48000 Hz 256,0 kbit/s
A52 flags before a52_frame: 0x2A
A52 flags after a52_frame: 0xA
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 32000->192000 (256,0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
=======================================================================
=== X11 opening display: :0
vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0" => local
display)[x11] Detected wm supports layers.
[x11] Detected wm supports NetWM.
[x11] Current fstype setting honours LAYER X atoms
=======================================================================
=== Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
=======================================================================
=== Checking audio filter chain for 48000Hz/2ch/16bit ->
48000Hz/2ch/16bit...[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001
and bps = 2 AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian
signed int AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
ao2: 48000 Hz 2 chans Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested:
Signed 16-bit (Little-Endian)) audio_setup: using 2 channels (requested:
2) audio_setup: using 48000 Hz samplerate (requested: 48000)
audio_setup: frags: 8/8 (8192 bytes/frag) free: 65536
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 48000Hz/2ch/16bit ->
48000Hz/2ch/16bit...[dummy] Was reinitialized, rate=48000Hz, nch = 2,
format = 0x00000001 and bps = 2[dummy] Was reinitialized, rate=48000Hz,
nch = 2, format = 0x00000001 and bps = 2 Starting playback...
==> Found audio stream: 130
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1,33:1 - prescaling to correct movie aspect.
VO Config (720x576->768x576,flags=0,'MPlayer',0x32315659)
VO: [xv] 720x576 => 768x576 Planar YV12
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 50 for hw scaling
[xv] dx: 0 dy: 0 dw: 768 dh: 576
*** [vo] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
[xv] dx: 0 dy: 0 dw: 768 dh: 576
*** [vo] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes0%
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 20601)]
0x0812d0e8 in mpeg2_set_buf (mpeg2dec=0x8671e50, buf=0x865a1d0,
id=0x865a1b0) at decode.c:383 383 if (mpeg2dec->custom_fbuf &&
!mpeg2dec->fbuf[1]->buf[0]){(gdb) --- END OF CELL !!! ---
dvd_next_cell: next1=0x0
dvd_next_cell: next2=0x0
dvd_next_cell: next3=0x1
DVD next cell: 1 pack: 0xE55-0x3013B
************************* backtrace ************************************
#0 0x0812d0e8 in mpeg2_set_buf (mpeg2dec=0x8671e50, buf=0x865a1d0,
id=0x865a1b0) at decode.c:383
#1 0x080e3f7e in decode (sh=0x864e450, data=0x41921008, len=19270,
flags=0) at vd_libmpeg2.c:147
#2 0x080e2456 in decode_video (sh_video=0x864e450, start=0x41921008 "",
in_size=19270, drop_frame=0) at dec_video.c:309
#3 0x0807b0d4 in main (argc=3, argv=0xbffff9c4) at mplayer.c:211
************************* disass ************************************
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x812d0c8 to 0x812d108:
0x812d0c8 <mpeg2_set_buf+120>: inc %esi
0x812d0c9 <mpeg2_set_buf+121>: add $0x89,%al
0x812d0cb <mpeg2_set_buf+123>: inc %ecx
0x812d0cc <mpeg2_set_buf+124>: add $0x8b,%al
0x812d0ce <mpeg2_set_buf+126>: inc %esi
0x812d0cf <mpeg2_set_buf+127>: or %cl,0x458b0841(%ecx)
0x812d0d5 <mpeg2_set_buf+133>: adc %cl,0xbb830c41(%ecx)
0x812d0db <mpeg2_set_buf+139>: rolb (%ebx)
0x812d0dd <mpeg2_set_buf+141>: add %al,(%eax)
0x812d0df <mpeg2_set_buf+143>: add %dh,0xffffff8b(%esp,%esi,1)
0x812d0e3 <mpeg2_set_buf+147>: xchg %eax,%ebx
0x812d0e4 <mpeg2_set_buf+148>: cwtl
0x812d0e5 <mpeg2_set_buf+149>: add (%eax),%eax
0x812d0e7 <mpeg2_set_buf+151>: add %al,0x2975003a(%ebx)
0x812d0ed <mpeg2_set_buf+157>: mov (%esi),%eax
0x812d0ef <mpeg2_set_buf+159>: mov %eax,(%edx)
0x812d0f1 <mpeg2_set_buf+161>: mov 0x398(%ebx),%edx
0x812d0f7 <mpeg2_set_buf+167>: mov 0x4(%esi),%eax
0x812d0fa <mpeg2_set_buf+170>: mov %eax,0x4(%edx)
0x812d0fd <mpeg2_set_buf+173>: mov 0x398(%ebx),%edx
0x812d103 <mpeg2_set_buf+179>: mov 0x8(%esi),%eax
0x812d106 <mpeg2_set_buf+182>: mov %eax,0x8(%edx)
---Type <return> to continue, or q <return> to quit---
End of assembler dump.
************************* registers ************************************
(gdb) info all-registers
eax 0x865a1b0 140878256
ecx 0x86721f0 140976624
edx 0x0 0
ebx 0x8671e50 140975696
esp 0xbfffd5b4 0xbfffd5b4
ebp 0xbfffd5dc 0xbfffd5dc
esi 0x865a1d0 140878288
edi 0x8671e50 140975696
eip 0x812d0e8 0x812d0e8
eflags 0x10202 66050
cs 0x73 115
ss 0x7b 123
ds 0x7b 123
es 0x7b 123
fs 0x0 0
gs 0x0 0
st0 -nan(0xff94fdb2ff92fdb6) (raw 0xffffff94fdb2ff92fdb6)
st1 -1 (raw 0xbfff8000000000000000)
st2 0.00799999944865703582763671875 (raw 0x3ff883126e0000000000)
st3 0.011999999172985553741455078125 (raw 0x3ff8c49ba50000000000)
st4 0.23981253218650817871353958521396521 (raw 0x3ffcf5916a9ba5e353f8)
st5 -0.25 (raw 0xbffd8000000000000000)
st6 -0.2199999973177909906585369981257827 (raw 0xbffce147ade666666800)
---Type <return> to continue, or q <return> to quit---
st7 -0.16354162065188090007623530897085118 (raw 0xbffca7777460f04c756c)
fctrl 0x37f 895
fstat 0x120 288
ftag 0xffff 65535
fiseg 0x73 115
fioff 0x807b078 134721656
foseg 0x7b 123
fooff 0x83b9b28 138124072
fop 0x5d8 1496
xmm0 {f = {0x0, 0x0, 0x0, 0x0}} {f = {-nan(0x7fffff),
-nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm1 {f = {0x0, 0x0, 0x0, 0x0}} {f = {-nan(0x7fffff),
-nan(0x7fffff),-nan(0x7fffff), -nan(0x7fffff)}}
xmm2 {f = {0x0, 0x0, 0x0, 0x0}} {f = {-nan(0x7fffff),
-nan(0x7fffff),-nan(0x7fffff),-nan(0x7fffff)}}
xmm3 {f = {0x0, 0x0, 0x0, 0x0}} {f ={-nan(0x7fffff),
-nan(0x7fffff), -nan(0x7fffff),-nan(0x7fffff)}}
xmm4 {f = {0x0, 0x0, 0x0, 0x0}} {f ={-nan(0x7fffff),
-nan(0x7fffff),-nan(0x7fffff),-nan(0x7fffff)}}
xmm5 {f = {0x0, 0x0, 0x0, 0x0}} {f ={-nan(0x7fffff),
-nan(0x7fffff),-nan(0x7fffff),-nan(0x7fffff)}}
xmm6 {f = {0x0, 0x0, 0x0, 0x0}} {f ={-nan(0x7fffff),
-nan(0x7fffff),-nan(0x7fffff),-nan(0x7fffff)}}
xmm7 {f = {0x0, 0x0, 0x0, 0x0}}{f ={-nan(0x7fffff),
-nan(0x7fffff),-nan(0x7fffff),-nan(0x7fffff)}}
mxcsr 0x1f80 8064
orig_eax 0xffffffff -
More information about the MPlayer-users
mailing list