[MPlayer-users] Bug report: segfault playing ogms in rc3

Matthew Stephenson lists at mainmast.org.uk
Thu Feb 6 18:35:39 CET 2003


I've just upgraded to rc3 from rc1, and am finding that my ogm files,
which played flawlessly before, now cause mplayer to segfault. Within
any given file, the segfault always occurs at the same time in the file.
A bugreport follows.

- Matthew


Linux distribution: Linux From Scratch
Kernel: Linux mainmast 2.4.18 #4 Sun Dec 29 13:32:53 GMT 2002 i686
unknown
libc version: 2.2.1
X version: 4.2.0
gcc version: 2.95.3
ld version: 2.11
binutils version: 2.11
Processor: Pentium III (Coppermine), 800MHz
Video card: 3dfx Voodoo III 2000
Video driver: using xv
Sound card: Creative SBLive value


Output of gdb:

matthew at mainmast /home/matthew/data/anime/ranma $ gdb mplayer
GNU gdb 5.1
Copyright 2001 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 "i686-pc-linux-gnu"...
(gdb) run -v ranma1.ogm
Starting program: /usr/bin/mplayer -v ranma1.ogm
[New Thread 1024 (LWP 10605)]
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale


MPlayer 0.90rc3-2.95.3 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6,
Stepping: 6)
Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

Reading config file /usr/etc/mplayer/mplayer.conf: No such file or
directory
Reading config file /home/matthew/.mplayer/config
Reading /home/matthew/.mplayer/codecs.conf: can't open
'/home/matthew/.mplayer/codecs.conf': No such file or directory
Reading /usr/etc/mplayer/codecs.conf: 49 audio & 130 video codecs
CommandLine: '-v' 'ranma1.ogm'
get_path('font/font.desc') -> '/home/matthew/.mplayer/font/font.desc'
font: can't open file: /home/matthew/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Failed to open /dev/rtc: No such device (mplayer should be setuid root
or /dev/rtc should be readable by the user.)
Using usleep() timing
get_path('input.conf') -> '/home/matthew/.mplayer/input.conf'
Parsing input config file /home/matthew/.mplayer/input.conf
Input config file /home/matthew/.mplayer/input.conf parsed : 53 binds
Setting up LIRC support...
get_path('ranma1.ogm.conf') -> '/home/matthew/.mplayer/ranma1.ogm.conf'

Playing ranma1.ogm
File size is 237257820 bytes
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x8385010  
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x8385010  
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x8385010  
Checking for REAL
DEMUXER: freeing demuxer at 0x8385010  
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x8385010  
Searching demuxer type for filename ranma1.ogm ext: .ogm

!!! trying demuxer 18 based on filename extension
==> Found video stream: 0
OGG stream 0 is video (new hdr)
======= VIDEO Format ======
  biSize 40
  biWidth 576
  biHeight 432
  biPlanes 1
  biBitCount 24
  biCompression 861292868='DIV3'
  biSizeImage 746496
===========================
==> Found audio stream: 1
OGG stream 1 is audio (new hdr)
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 16000
Block align: 1152
bits/sample: 2
cbSize: 4
Unknown extra header dump: [0] [0] [0] [0] 
==> Found audio stream: 2
OGG stream 2 is audio (new hdr)
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 15875
Block align: 1152
bits/sample: 2
cbSize: 4
Unknown extra header dump: [0] [0] [0] [0] 
OGG stream 3 is text
OGG demuxer : found 2 audio streams, 1 video stream and 1 text stream
OGG file format detected.
[V] filefmt:18  fourcc:0x33564944  size:576x432  fps:23.98 
ftime:=0.0417
get_path('sub/') -> '/home/matthew/.mplayer/sub/'
=======================================================================
===
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
mp3lib: made decode tables with MMX optimization
mp3lib: using MMX optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer III, 48000 Hz 128 kbit Joint-Stereo, BPF: 384
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 16000->192000 (128.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
=======================================================================
===
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local
display)
[x11] Detected wm supports layers.
=======================================================================
===
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4
v3))
=======================================================================
===
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: 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:  16/16  (4096 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...
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 576 x 432 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (576x432->576x432,flags=0,'MPlayer',0x32315659)
VO: [xv] 576x432 => 576x432 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 55 for hw scaling
[xv] dx: 0 dy: 0 dw: 576 dh: 432
*** [vo] Allocating mp_image_t, 576x432x12bpp YUV planar, 373248 bytes
[xv] dx: 0 dy: 0 dw: 576 dh: 432
*** [vo] Allocating mp_image_t, 576x432x12bpp YUV planar, 373248 bytes%
[xv] dx: 0 dy: 0 dw: 576 dh: 432:  0.008   42/ 42  19%  7%  2.8% 0 0 0%
[xv] dx: 0 dy: 0 dw: 576 dh: 432:  0.015   51/ 51  19%  8%  2.7% 0 0 0%
A: 188.1 V: 187.8 A-V:  0.316 ct:  0.076  124/124   0%  0%  0.0% 0 0 0%
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 10605)]
__gconv (cd=0xffffffff, inbuf=0xbfffe60c, inbufend=0x82d6f41 "",
outbuf=0xbfffe614, outbufend=0x83811e7 "", irreversible=0xbfffe5c8) at
gconv.c:34
34      gconv.c: No such file or directory.
        in gconv.c
(gdb) bt
#0  __gconv (cd=0xffffffff, inbuf=0xbfffe60c, inbufend=0x82d6f41 "",
#outbuf=0xbfffe614, outbufend=0x83811e7 "", irreversible=0xbfffe5c8) at
#gconv.c:34 1  0x40ba760b in iconv (cd=0xffffffff, inbuf=0xbfffe60c,
#inbytesleft=0xbfffe610, outbuf=0xbfffe614, outbytesleft=0xbfffe618) at
#iconv.c:53 2  0x0807b603 in subcp_recode1 (sub=0x8305ec0) at
#subreader.c:989 3  0x0812c498 in demux_ogg_add_sub (os=0x8382910,
#pack=0xbfffe72c) at demux_ogg.c:252 4  0x0812c6be in
#demux_ogg_add_packet (ds=0x8386d40, os=0x8382910, pack=0xbfffe72c) at
#demux_ogg.c:339 5  0x0812ddda in demux_ogg_fill_buffer (d=0x8386408) at
#demux_ogg.c:816 6  0x08114359 in demux_fill_buffer (demux=0x8386408,
#ds=0x8386c70) at demuxer.c:318 7  0x0811453a in ds_fill_buffer
#(ds=0x8386c70) at demuxer.c:375 8  0x081145d8 in demux_read_data
#(ds=0x8386c70, mem=0xbfffe834
#"ÿû\224dGòìá\\èÿ¿ P\n\b¨O=\bÿÿÿÿ¬èÿ¿ìF\n\b\a\f", len=4) at
#demuxer.c:394 9  0x080a4f8e in mplayer_audio_read (buf=0xbfffe834
#"ÿû\224dGòìá\\èÿ¿ P\n\b¨O=\bÿÿÿÿ¬èÿ¿ìF\n\b\a\f", size=4) at
#ad_mp3lib.c:29 10 0x080d9bb5 in MP3_DecodeFrame (hova=0x83d4fa8
#"Êñ»ò3òÎñíòwñ\023ô\212ñ«õÚñ©÷|òýù\215órü\025õÔþ\n÷ü", single=-1) at
#sr1.c:60 11 0x080a50a0 in decode_audio (sh_audio=0x8380e78,
#buf=0x83d4fa8 "Êñ»ò3òÎñíòwñ\023ô\212ñ«õÚñ©÷|òýù\215órü\025õÔþ\n÷ü",
#minlen=33280, maxlen=37888)
    at ad_mp3lib.c:80
#12 0x080a46b6 in decode_audio (sh_audio=0x8380e78, 
    buf=0x84b4df0
"\222\026gù&\eü\003ä\035\226\r=\037<\025l\037\230\032¥\036ë\035?\035¿\0
37\177\eq |\031$ J\027\t\037", minlen=65536, maxlen=65536)
    at dec_audio.c:409
#13 0x0806acfe in main (argc=3, argv=0xbffffb94) at mplayer.c:1769
#14 0x40ba70ea in __libc_start_main (main=0x8067ff8 <main>, argc=3,
#ubp_av=0xbffffb94, init=0x8065768 <_init>, fini=0x823cba0 <_fini>, 
    rtld_fini=0x4000da44 <_dl_fini>, stack_end=0xbffffb8c) at
../sysdeps/generic/libc-start.c:129
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x40ba7d80 to 0x40ba7dc0:
0x40ba7d80 <Letext+10>: mov    (%esp,1),%ebx
0x40ba7d83 <Letext+13>: ret    
0x40ba7d84 <__gconv>:   push   %ebp
0x40ba7d85 <__gconv+1>: mov    %esp,%ebp
0x40ba7d87 <__gconv+3>: sub    $0x2c,%esp
0x40ba7d8a <__gconv+6>: push   %edi
0x40ba7d8b <__gconv+7>: push   %esi
0x40ba7d8c <__gconv+8>: push   %ebx
0x40ba7d8d <__gconv+9>: call   0x40ba7d80 <Letext+10>
0x40ba7d92 <__gconv+14>:        add    $0xef3ea,%ebx
0x40ba7d98 <__gconv+20>:        mov    %eax,%esi
0x40ba7d9a <__gconv+22>:        mov    %edx,0xfffffffc(%ebp)
0x40ba7d9d <__gconv+25>:        mov    %ecx,0xfffffff8(%ebp)
0x40ba7da0 <__gconv+28>:        mov    (%esi),%eax
0x40ba7da2 <__gconv+30>:        dec    %eax
0x40ba7da3 <__gconv+31>:        mov    %eax,0xfffffff4(%ebp)
0x40ba7da6 <__gconv+34>:        cmp    $0xffffffff,%esi
0x40ba7da9 <__gconv+37>:        jne    0x40ba7db5 <__gconv+49>
0x40ba7dab <__gconv+39>:        mov    $0x8,%eax
0x40ba7db0 <__gconv+44>:        jmp    0x40ba7f02 <__gconv+382>
0x40ba7db5 <__gconv+49>:        cmpl   $0x0,0x10(%ebp)
0x40ba7db9 <__gconv+53>:        jne    0x40ba7dd7 <__gconv+83>
0x40ba7dbb <__gconv+55>:        lea    0xfffe8a24(%ebx),%eax
End of assembler dump.
(gdb) info all-registers
eax            0xffffffff       -1
ecx            0x82d6f41        137195329
edx            0xbfffe60c       -1073748468
ebx            0x40c9717c       1086943612
esp            0xbfffe554       0xbfffe554
ebp            0xbfffe58c       0xbfffe58c
esi            0xffffffff       -1
edi            0xbfffe60c       -1073748468
eip            0x40ba7da0       0x40ba7da0
eflags         0x10202  66050
cs             0x23     35
ss             0x2b     43
ds             0x2b     43
es             0x2b     43
fs             0x0      0
gs             0x0      0
st0            -nan(0xe9a3719a4da2022b) (raw 0xffffe9a3719a4da2022b)
st1            -nan(0x2b1762c1d612ac96) (raw 0xffff2b1762c1d612ac96)
st2            -nan(0xbad5d5bc8edad67b) (raw 0xffffbad5d5bc8edad67b)
st3            -nan(0xfb595f6918b645cd) (raw 0xfffffb595f6918b645cd)
st4            -nan(0xd2b96345f96ba9e5) (raw 0xffffd2b96345f96ba9e5)
st5            1000     (raw 0x4008fa00000000000000)
st6            2.1700000000000000000693889390390723     (raw
0x40008ae147ae147ae148)
st7            253.36999999999999999555910790149937     (raw
0x4006fd5eb851eb851eb8)
fctrl          0x37f    895
fstat          0x120    288
ftag           0xffff   65535
fiseg          0x23     35
fioff          0x812c3c2        135447490
foseg          0x2b     43
fooff          0x8305ef4        137387764
fop            0x11d    285
xmm0           0xffffffffffffffffffffffffffffffff
xmm1           0xffffffffffffffffffffffffffffffff
xmm2           0xffffffffffffffffffffffffffffffff
---Type <return> to continue, or q <return> to quit---
xmm3           0xffffffffffffffffffffffffffffffff
xmm4           0xffffffffffffffffffffffffffffffff
xmm5           0xffffffffffffffffffffffffffffffff
xmm6           0xffffffffffffffffffffffffffffffff
xmm7           0xffffffffffffffffffffffffffffffff
mxcsr          0x1f80   8064
(gdb) 



More information about the MPlayer-users mailing list