[MPlayer-dev-eng] [backtrace] Crash when using -ao sdl on some files.
André Dahlqvist
andre.dahlqvist at telia.com
Tue Nov 20 00:07:41 CET 2001
Hi everyone,
The box I'm currently using has a build-in soundcard which is locked at
48Khz. For this reason I've messed around a bit with -ao sdl and when I
did this I ran into a crasher (btw, the sound is still donald duck
style):
I uploaded the file that causes the crash to incoming/ao_sdl_segfault.avi
I start mplayer with -ao sdl and the following crash then happens when I
exit with 'q'.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 254)]
0x4031fb20 in free () from /lib/libc.so.6
(gdb) bt
#0 0x4031fb20 in free () from /lib/libc.so.6
#1 0x4031fac3 in free () from /lib/libc.so.6
#2 0x40170b02 in SDL_FreeAudioMem () from /usr/lib/libSDL-1.2.so.0
#3 0x4016fa44 in SDL_AudioQuit () from /usr/lib/libSDL-1.2.so.0
#4 0x4016e7de in SDL_QuitSubSystem () from /usr/lib/libSDL-1.2.so.0
#5 0x4016f9c9 in SDL_CloseAudio () from /usr/lib/libSDL-1.2.so.0
#6 0x080b5cdc in uninit () at ao_sdl.c:219
#7 0x0805b1c5 in uninit_player (mask=65535) at mplayer.c:270
#8 0x0805b24b in exit_player (how=0x80e9126 "Quit") at mplayer.c:310
#9 0x0805e47d in main (argc=7, argv=0xbffff9d4, envp=0xbffff9f4) at
mplayer.c:1683
#10 0x402ca65f in __libc_start_main () from /lib/libc.so.6
(gdb) disass $eip-32 $eip+32
Dump of assembler code from 0x4031fb00 to 0x4031fb40:
0x4031fb00 <free+228>: add %al,(%eax)
0x4031fb02 <free+230>: pop %ebx
0x4031fb03 <free+231>: add $0xaa6ee,%ebx
0x4031fb09 <free+237>: mov %eax,0xfffffffc(%ebp)
0x4031fb0c <free+240>: mov %edx,%edi
0x4031fb0e <free+242>: mov 0x4(%edi),%eax
0x4031fb11 <free+245>: mov %eax,0xfffffff8(%ebp)
0x4031fb14 <free+248>: andb $0xfe,0xfffffff8(%ebp)
0x4031fb18 <free+252>: mov 0xfffffff8(%ebp),%edx
0x4031fb1b <free+255>: add %edi,%edx
0x4031fb1d <free+257>: mov %edx,0xfffffff4(%ebp)
0x4031fb20 <free+260>: mov 0x4(%edx),%ecx
0x4031fb23 <free+263>: and $0xfffffffc,%ecx
0x4031fb26 <free+266>: mov %ecx,0xfffffff0(%ebp)
0x4031fb29 <free+269>: mov 0xfffffffc(%ebp),%ecx
0x4031fb2c <free+272>: cmp 0x8(%ecx),%edx
0x4031fb2f <free+275>: jne 0x4031fbc0 <free+420>
0x4031fb35 <free+281>: mov 0xfffffff0(%ebp),%edx
0x4031fb38 <free+284>: add %edx,0xfffffff8(%ebp)
0x4031fb3b <free+287>: test $0x1,%al
0x4031fb3d <free+289>: jne 0x4031fb52 <free+310>
0x4031fb3f <free+291>: mov (%edi),%eax
End of assembler dump.
I have attached the -v output when playing this file as well as lspci
output. This is on Debian GNU/Linux with a built-in soundcard using the
VIA audio driver 1.9.1. Video card is NVidia TNT2 using the driver that
came with XFree86 4.1. I'm using SDL version 1.2.2.
Let me know if further info is needed.
--
André Dahlqvist <andre.dahlqvist at telia.com>
-------------- next part --------------
00:00.0 Host bridge: VIA Technologies, Inc. VT82C693A/694x [Apollo PRO133x] (rev 44)
00:01.0 PCI bridge: VIA Technologies, Inc. VT82C598/694x [Apollo MVP3/Pro133x AGP]
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 1b)
00:07.1 IDE interface: VIA Technologies, Inc. Bus Master IDE (rev 06)
00:07.2 USB Controller: VIA Technologies, Inc. UHCI USB (rev 0e)
00:07.3 USB Controller: VIA Technologies, Inc. UHCI USB (rev 0e)
00:07.4 Host bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 20)
00:07.5 Multimedia audio controller: VIA Technologies, Inc. AC97 Audio Controller (rev 21)
00:0d.0 Ethernet controller: VIA Technologies, Inc. Ethernet Controller (rev 42)
01:00.0 VGA compatible controller: nVidia Corporation Vanta [NV6] (rev 15)
-------------- next part --------------
MPlayer CVS-011119-20:15(C) 2000-2001 Arpad Gereoffy (see DOCS!)
CPU vendor name: GenuineIntel max cpuid level: 2
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville
Testing OS support for SSE... yes.
Testing OS support for SSE unmasked exceptions... yes.
Tests of OS support for SSE passed.
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Reading /home/andre/.mplayer/codecs.conf: 21 audio & 58 video codecs
CommandLine: '-v' '-vo' 'sdl' '-ao' 'sdl' '/home/andre/ao_sdl_segfault.avi'
num_filenames: 1
Linux RTC init: open: Permission denied
Font /home/andre/.mplayer/font/font.desc loaded successfully! (206 chars)
Using usleep() timing
Playing /home/andre/ao_sdl_segfault.avi
File size is 27731968 bytes
Detected AVI file format!
======= AVI Header =======
us/frame: 66667 (fps=15.000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames total: 19731 initial: 0
streams: 2
Suggested BufferSize: 0
Size: 320 x 240
==> Found video stream: 0
======= STREAM Header =======
Type: vids FCC: div4 (34766964)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 15/1 = 15.000
Start: 0 Len: 19731
Suggested BufferSize: 10014
Quality 0
Sample size: 0
found 'bih', 40 bytes of 40
======= VIDEO Format ======
biSize 40
biWidth 320
biHeight 240
biPlanes 1
biBitCount 24
biCompression 861292868='DIV3'
biSizeImage 230400
===========================
Regenerating keyframe table for DIVX 3 video
==> Found audio stream: 1
======= STREAM Header =======
Type: auds FCC: (0)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 1
Rate: 4000/1 = 4000.000
Start: 0 Len: 5261472
Suggested BufferSize: 1781
Quality -1
Sample size: 1
found 'wf', 30 bytes of 20
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 1
Samplerate: 24000
avg byte/sec: 4000
Block align: 1
bits/sample: 0
cbSize: 12
Found movie at 0x280C - 0x19D806C
Reading INDEX block, 39454 chunks for 19731 frames
AVI index offset: 10248
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video length=21511888
VIDEO: [DIV3] 320x240 24bpp 15.00 fps 130.8 kbps (16.0 kbyte/s)
[V] filefmt:3 fourcc:0x33564944 size:320x240 fps:15.00 ftime:=0.0667
Detected audio codec: [mp3] drv:1 (MPEG layer-2, layer-3)
Initializing audio codec...
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
mp3lib: Processor ID: 681
mp3lib: Using SSE! optimized decore.
AUDIO: srate=24000 chans=2 bps=2 sfmt=0x10 ratio: 4000->96000
Trying to force video codec driver family 5 ...
Detected video codec: [ffdivx] drv:5 (FFmpeg DivX ;-) (MS MPEG-4 v3))
FFmpeg's libavcodec video codec
INFO: libavcodec init OK!
Movie-Aspect is undefined - no prescaling applied.
VO: [sdl] 320x240 => 320x240 Planar YV12
VO: Description: SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
VO: Author: Ryan C. Gordon <icculus at lokigames.com>, Felix Buenemann <atmosfear at users.sourceforge.net>
video_out->init(320x240->320x240,flags=0,'MPlayer',0x32315659)
SDL: Using 0x32315659 (YV12) image format
SDL: deactivating XScreensaver/DPMS
SDL: X11 Resolution 1280x1024
Disabling DPMS
stat: 1
SDL: Using driver: x11
SDL: using hardware-surface
SDL: setting windowed mode
INFO: Video OUT driver init OK!
AO: [sdl] 24000Hz Stereo Signed 16-bit (Little-Endian)
AO: Description: SDLlib audio output
AO: Author: Felix Buenemann <atmosfear at users.sourceforge.net>
SDL: Samplerate: 24000Hz Channels: Stereo Format Signed 16-bit (Little-Endian)
SDL: buf size = 4096
Start playing...
XXX initial v_pts=0.000 a_pos=1781 (0.445)
A: 0.3 V: 0.0 A-V: 0.341 ct: 0.000 1/ 1 0% 0% 0.0% 0 0 0%
A: 0.3 V: 0.1 A-V: 0.275 ct: 0.007 2/ 2 0% 0% 0.0% 1 0 0%
A: 0.4 V: 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.2% 2 0 0%
A: 1.4 V: 1.4 A-V: -0.035 ct: 0.087 22/ 22 3% 12% 1.1% 2 0 0%
A: 1.5 V: 1.5 A-V: 0.027 ct: 0.090 23/ 23 3% 12% 1.1% 2 0 0%
A: 1.5 V: 1.5 A-V: 0.003 ct: 0.090 24/ 24 3% 12% 1.1% 2 0 0%
A: 1.6 V: 1.6 A-V: 0.021 ct: 0.092 25/ 25 3% 12% 1.1% 2 0 0%
A: 1.7 V: 1.7 A-V: -0.003 ct: 0.092 26/ 26 3% 12% 1.1% 2 0 0%
A: 1.8 V: 1.7 A-V: 0.059 ct: 0.098 27/ 27 3% 12% 1.1% 2 0 0%
A: 1.8 V: 1.8 A-V: -0.008 ct: 0.097 28/ 28 3% 12% 1.1% 2 0 0%
A: 1.9 V: 1.9 A-V: 0.053 ct: 0.102 29/ 29 3% 12% 1.1% 2 0 0%
A: 2.0 V: 1.9 A-V: 0.029 ct: 0.105 30/ 30 3% 12% 1.1% 2 0 0%
A: 2.0 V: 2.0 A-V: -0.037 ct: 0.101 31/ 31 3% 12% 1.1% 2 0 0%
A: 2.1 V: 2.1 A-V: 0.067 ct: 0.108 32/ 32 3% 12% 1.1% 2 0 0%
A: 2.1 V: 2.1 A-V: -0.000 ct: 0.108 33/ 33 3% 12% 1.1% 2 0 0%
A: 2.2 V: 2.2 A-V: 0.019 ct: 0.110 34/ 34 3% 12% 1.1% 2 0 0%
A: 2.3 V: 2.3 A-V: -0.005 ct: 0.109 35/ 35 3% 12% 1.1% 2 0 0%
A: 2.3 V: 2.3 A-V: -0.029 ct: 0.106 36/ 36 3% 12% 1.0% 2 0 0%
A: 2.4 V: 2.4 A-V: -0.011 ct: 0.105 37/ 37 3% 12% 1.6% 2 0 0%
A: 2.5 V: 2.5 A-V: 0.051 ct: 0.110 38/ 38 3% 12% 1.6% 2 0 0%
A: 2.5 V: 2.5 A-V: -0.016 ct: 0.109 39/ 39 3% 12% 1.6% 2 0 0%
A: 2.6 V: 2.6 A-V: 0.003 ct: 0.109 40/ 40 3% 12% 1.5% 2 0 0%
A: 2.6 V: 2.7 A-V: -0.021 ct: 0.107 41/ 41 3% 12% 1.5% 2 0 0%
A: 2.8 V: 2.7 A-V: 0.040 ct: 0.111 42/ 42 3% 12% 1.5% 2 0 0%
A: 2.8 V: 2.8 A-V: -0.027 ct: 0.108 43/ 43 3% 12% 1.5% 2 0 0%
A: 2.9 V: 2.9 A-V: 0.035 ct: 0.112 44/ 44 3% 12% 1.5% 2 0 0%
A: 2.9 V: 2.9 A-V: 0.011 ct: 0.113 45/ 45 3% 12% 1.5% 2 0 0%
A: 2.9 V: 3.0 A-V: -0.056 ct: 0.107 46/ 46 3% 12% 1.5% 2 0 0%
A: 3.1 V: 3.1 A-V: 0.005 ct: 0.108 47/ 47 3% 12% 1.5% 2 0 0%
A: 3.1 V: 3.1 A-V: -0.019 ct: 0.106 48/ 48 3% 12% 1.5% 2 0 0%
A: 3.2 V: 3.2 A-V: 0.043 ct: 0.110 49/ 49 3% 12% 1.5% 2 0 0%
A: 3.2 V: 3.3 A-V: -0.024 ct: 0.108 50/ 50 3% 12% 1.5% 2 0 0%
A: 3.3 V: 3.3 A-V: -0.048 ct: 0.103 51/ 51 3% 12% 1.4% 2 0 0%
A: 3.4 V: 3.4 A-V: 0.013 ct: 0.104 52/ 52 3% 12% 1.4% 2 0 0%
A: 3.5 V: 3.5 A-V: -0.011 ct: 0.103 53/ 53 3% 12% 1.4% 2 0 0%
A: 3.5 V: 3.5 A-V: 0.008 ct: 0.104 54/ 54 3% 12% 1.4% 2 0 0%
A: 3.6 V: 3.6 A-V: -0.016 ct: 0.102 55/ 55 3% 12% 1.4% 2 0 0%
A: 3.7 V: 3.7 A-V: 0.045 ct: 0.107 56/ 56 3% 12% 1.4% 2 0 0%
A: 3.7 V: 3.7 A-V: -0.021 ct: 0.105 57/ 57 3% 12% 1.4% 2 0 0%
A: 3.8 V: 3.8 A-V: 0.040 ct: 0.109 58/ 58 3% 12% 1.4% 2 0 0%
A: 3.9 V: 3.9 A-V: 0.016 ct: 0.110 59/ 59 3% 12% 1.4% 2 0 0%
A: 3.9 V: 3.9 A-V: -0.051 ct: 0.105 60/ 60 3% 12% 1.3% 2 0 0%
A: 4.0 V: 4.0 A-V: 0.011 ct: 0.106 61/ 61 3% 12% 1.3% 2 0 0%
A: 4.1 V: 4.1 A-V: -0.013 ct: 0.105 62/ 62 3% 12% 1.3% 2 0 0%
A: 4.1 V: 4.1 A-V: 0.005 ct: 0.106 63/ 63 3% 12% 1.3% 2 0 0%
A: 4.2 V: 4.2 A-V: -0.019 ct: 0.104 64/ 64 3% 12% 1.4% 2 0 0%
A: 4.3 V: 4.3 A-V: 0.043 ct: 0.108 65/ 65 3% 12% 1.3% 2 0 0%
A: 4.4 V: 4.3 A-V: 0.019 ct: 0.110 66/ 66 3% 12% 1.4% 2 0 0%
A: 4.4 V: 4.4 A-V: -0.005 ct: 0.109 67/ 67 3% 12% 1.3% 2 0 0%
A: 4.5 V: 4.5 A-V: 0.013 ct: 0.111 68/ 68 3% 12% 1.3% 2 0 0%
A: 4.5 V: 4.5 A-V: -0.053 ct: 0.105 69/ 69 3% 12% 1.3% 2 0 0%
A: 4.6 V: 4.6 A-V: 0.008 ct: 0.106 70/ 70 3% 12% 1.3% 2 0 0%
A: 4.7 V: 4.7 A-V: -0.016 ct: 0.105 71/ 71 3% 12% 1.3% 2 0 0%
A: 4.7 V: 4.7 A-V: -0.040 ct: 0.101 72/ 72 3% 12% 1.3% 2 0 0%
A: 4.9 V: 4.8 A-V: 0.064 ct: 0.107 73/ 73 3% 12% 1.3% 2 0 0%
A: 4.9 V: 4.9 A-V: 0.040 ct: 0.111 74/ 74 3% 12% 1.3% 2 0 0%
A: 4.9 V: 4.9 A-V: -0.027 ct: 0.108 75/ 75 3% 12% 1.3% 2 0 0%
A: 4.9 V: 5.0 A-V: -0.051 ct: 0.103 76/ 76 4% 12% 1.3% 2 0 0%
MPlayer interrupted by signal 11 in module: uninit_ao
More information about the MPlayer-dev-eng
mailing list