[MPlayer-users] Segmentation fault in III_dequantize_sample_ms

Björn Wingman bjowi at ida.liu.se
Thu Oct 24 21:36:02 CEST 2002


I get a segmentation fault in III_dequantize_sample_ms when decoding
my Hikaru_no_Go_05_E-F.avi. It occurs at the same position in the
file (towards the end), and is reproducible.

I have uploaded the _entire_ file to mplayerhq.hu/MPlayer/incoming/ ,
was this a mistake? 

Seek here in the file if you can, to reproduce the error:

SEEK: i=43730 (max:43753) dpos=14598459 (wanted:14598598)   6%  2.6% 0 0 0%
SEEK: idx=43730  (a:43730 v:43753)  v.skip=11  a.skip=139/0.000  


gdb output follows:
-------------

bjowi at emil52:~/MPlayer-0.90pre8> gdb ./mplayer
GNU gdb 5.0
Copyright 2000 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-slackware-linux"...
(gdb) run /cdrom/Hikaru_no_Go_05_E-F.avi
Starting program: /home/bjowi/MPlayer-0.90pre8/./mplayer /cdrom/Hikaru_no_Go_05_E-F.avi

[New Thread 1024 (LWP 30817)]


MPlayer 0.90pre8-3.0.4 (C) 2000-2002 Arpad Gereoffy (see DOCS)

CPU: Advanced Micro Devices Athlon TB Thunderbird (Family: 6, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx

Reading /home/bjowi/.mplayer/codecs.conf: can't open '/home/bjowi/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 38 audio & 106 video codecs
font: can't open file: /home/bjowi/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Linux RTC init error in ioctl (rtc_pie_on): Permission denied
Using usleep() timing
Can't open input config file /home/bjowi/.mplayer/input.conf : No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf : No such file or directory
Falling back on default (hardcoded) input config

Playing /cdrom/Hikaru_no_Go_05_E-F.avi
Detected AVI file format!
VIDEO:  [DIV3]  512x384  24bpp  23.98 fps  910.8 kbps (111.2 kbyte/s)
Clip info: 
 Software: Nandub v1.0rc2
 Name: Hikaru no Go - Episode 05
 Subject: Hikaru no Go - Episode 05
 Artist: #Elite-Fansubs at irc.enterthegame.com
 Copyright: www.elite-fansubs.com
 Comments: www.elite-fansubs.com
==========================================================================
Detected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, sfmt: 0x10 (2 bps), ratio: 16000->192000 (128.0 kbit)
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Create window for WM detect ...
[x11] Unknown wm type...
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Detected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian)
Start playing...
VDec: vo config request - 512 x 384 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 512x384 => 512x384 Planar YV12 
Blocktype == 0 and window-switching == 1 not allowed.                        

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 30817)]
III_dequantize_sample_ms (xr=0x823d980, scf=0xbfffdc3c, gr_info=0xbfffdb10, sfreq=1, 
    part2bits=30) at layer3.c:1284
1284          register short *val = h->table,a;
(gdb) bt
#0  III_dequantize_sample_ms (xr=0x823d980, scf=0xbfffdc3c, gr_info=0xbfffdb10, sfreq=1, 
    part2bits=30) at layer3.c:1284
#1  0x80a9aad in do_layer3 (fr=0x8240ba0, single=-1) at layer3.c:1655
#2  0x80a9fce in MP3_DecodeFrame (hova=0x8359568 "V", single=-1) at sr1.c:541
#3  0x807d342 in decode_audio (sh_audio=0x8339998, buf=0x8359568 "V", minlen=4608, 
    maxlen=66560) at dec_audio.c:148
#4  0x8052f5a in main (argc=2, argv=0xbfffeff4) at mplayer.c:1504
#5  0x402f32eb in __libc_start_main (main=0x804f020 <main>, argc=2, ubp_av=0xbfffeff4, 
    init=0x804ccc4 <_init>, fini=0x81a6950 <_fini>, rtld_fini=0x4000c130 <_dl_fini>, 
    stack_end=0xbfffefec) at ../sysdeps/generic/libc-start.c:129
(gdb) disass $eip-32 $eip+32
Dump of assembler code from 0x80a65f6 to 0x80a6636:
0x80a65f6 <III_dequantize_sample_ms+710>:       decl   0xf685bc75(%ebx)
0x80a65fc <III_dequantize_sample_ms+716>:
    je     0x80a6711 <III_dequantize_sample_ms+993>
0x80a6602 <III_dequantize_sample_ms+722>:       mov    0xffffffb8(%ebp),%ebx
0x80a6605 <III_dequantize_sample_ms+725>:       test   %ebx,%ebx
0x80a6607 <III_dequantize_sample_ms+727>:
    jle    0x80a6711 <III_dequantize_sample_ms+993>
0x80a660d <III_dequantize_sample_ms+733>:       lea    0x0(%esi),%esi
0x80a6610 <III_dequantize_sample_ms+736>:       mov    0x10(%ebp),%ecx
0x80a6613 <III_dequantize_sample_ms+739>:       mov    0x54(%ecx),%eax
0x80a6616 <III_dequantize_sample_ms+742>:       mov    0x81f3204(,%eax,8),%esi
0x80a661d <III_dequantize_sample_ms+749>:       movzwl (%esi),%eax
0x80a6620 <III_dequantize_sample_ms+752>:       add    $0x2,%esi
0x80a6623 <III_dequantize_sample_ms+755>:       test   %ax,%ax
0x80a6626 <III_dequantize_sample_ms+758>:       mov    %ax,0xffffff4e(%ebp)
0x80a662d <III_dequantize_sample_ms+765>:
    js     0x80a68f8 <III_dequantize_sample_ms+1480>
0x80a6633 <III_dequantize_sample_ms+771>:       movl   $0x0,0xffffff78(%ebp)
End of assembler dump.
(gdb)

------------


      /Björn Wingman




More information about the MPlayer-users mailing list