[MPlayer-users] lavcac3enc=1 Crashing mplayer

Matthew Nichols mjnichol at uwaterloo.ca
Fri Jan 11 06:19:48 CET 2008


Just grabbed a fresh copy from SVN, configured with --enable-debug=3, 
make, and then ran

gdb --args ./mplayer -v -ao alsa:device=hw=1 -af lavcac3enc=1 
/home/mjnichol/test.wav

Below is the log and backtrace (bt). I have also included the output of 
valgrind (which test for errors in accessing memory). It seems to 
indicate that line 244 in af_lavcac3enc.c is causing a problem:

memset(buf + 8 + len, 0, AC3_FRAME_SIZE * 2 * 2 - 8 - len);

(By the way, I tested this on my (64-bit) laptop and get exactly the 
same crash; unfortunately i have no 32-bit machine to test on)

MPlayer dev-SVN-r25669-4.1.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz (Family: 6, Model: 
15, Stepping: 11)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
get_path('codecs.conf') -> '/root/.mplayer/codecs.conf'
Reading /root/.mplayer/codecs.conf: Can't open 
'/root/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open 
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration: --enable-debug=3
CommandLine: '-v' '-ao' 'alsa:device=hw=1' '-af' 'lavcac3enc=1' 
'/home/mjnichol/test.wav'
init_freetype
get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/root/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/root/.mplayer/input.conf'
Can't open input config file /root/.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
get_path('test.wav.conf') -> '/root/.mplayer/test.wav.conf'

Playing /home/mjnichol/test.wav.
get_path('sub/') -> '/root/.mplayer/sub/'
[file] File size is 8065016 bytes
STREAM: [file] /home/mjnichol/test.wav
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: wav format
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename /home/mjnichol/test.wav ext: .wav
Trying demuxer 17 based on filename extension
==> Found audio stream: 0
======= WAVE Format =======
Format Tag: 65534 (0xFFFE)
Channels: 6
Samplerate: 48000
avg byte/sec: 576000
Block align: 12
bits/sample: 16
cbSize: 22
Unknown extra header dump: [10] [0] [0] [0] [0] [0] [1] [0] [0] [0] [0] 
[0] [10] [0] [80] [0] [0] [aa] [0] [38] [9b] [71]
==========================================================================
demux_audio: audio data 0x50 - 0x7B0FF8
Audio file file format detected.
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer.
AUDIO: 48000 Hz, 6 ch, s16le, 4608.0 kbit/100.00% (ratio: 576000->576000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
Building audio filter chain for 48000Hz/6ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter lavcac3enc
af_lavcac3enc config spdif:1, bitrate:0, minchnum:5.
alsa-init: requested format: 48000 Hz, 2 channels, 100
alsa-init: using ALSA 1.0.15
alsa-spdif-init: playing AC3, 2 channels
alsa-init: using device hw:1
[New Thread 46912498491520 (LWP 20911)]
[AO_ALSA] alsa-lib: conf.c:3840:(parse_args) Unknown parameter AES0
[AO_ALSA] alsa-lib: conf.c:3966:(snd_config_expand) Parse arguments 
error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM 
hw:1,AES0=6
alsa-init: pcm opened in blocking mode
alsa-init: chunksize set to 1024
alsa-init: fragcount=16
alsa-init: got buffersize=65536
alsa-init: got period size 1024
alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little 
Endian
AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy at streamminister.de>
AO: Comment: under developement
Building audio filter chain for 48000Hz/6ch/s16le -> 48000Hz/2ch/ac3...
Video: no video
Freeing 0 unused video chunks.
Starting playback...
[libaf] Reallocating memory in module lavcac3enc, old len = 0, new len = 
21857
Increasing filtered audio buffer size from 0 to 18432
Increasing filtered audio buffer size from 18432 to 43008
*** glibc detected *** /home/mjnichol/mplayer/mplayer: realloc(): 
invalid pointer: 0x0000000000f13ea0 ***

warning: Missing the separate debug info file: 
/usr/lib/debug/.build-id/91/f8d452c6cc80573296b2bbb28a1dd076b0507f.debug
======= Backtrace: =========
/lib64/libc.so.6(realloc+0x363)[0x37f82763e3]
/home/mjnichol/mplayer/mplayer(decode_audio+0x200)[0x4a4220]
/home/mjnichol/mplayer/mplayer(main+0x172a)[0x43f67a]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x37f821e074]
/home/mjnichol/mplayer/mplayer(cos+0x281)[0x43b479]
======= Memory map: ========
00400000-00a99000 r-xp 00000000 fd:06 3670026 
  /home/mjnichol/mplayer/mplayer
00c99000-00ceb000 rw-p 00699000 fd:06 3670026 
  /home/mjnichol/mplayer/mplayer
00ceb000-00f32000 rw-p 00ceb000 00:00 0 
  [heap]
40002000-40004000 rwxp 00000000 00:10 218 
  /dev/zero
372d600000-372d601000 r-xp 00000000 fd:08 2490851 
  /usr/lib64/libxcb-xlib.so.0.0.0
372d601000-372d800000 ---p 00001000 fd:08 2490851 
  /usr/lib64/libxcb-xlib.so.0.0.0
372d800000-372d801000 rw-p 00000000 fd:08 2490851 
  /usr/lib64/libxcb-xlib.so.0.0.0
372da00000-372da1a000 r-xp 00000000 fd:08 2492534 
  /usr/lib64/libxcb.so.1.0.0
372da1a000-372dc1a000 ---p 0001a000 fd:08 2492534 
  /usr/lib64/libxcb.so.1.0.0
372dc1a000-372dc1b000 rw-p 0001a000 fd:08 2492534 
  /usr/lib64/libxcb.so.1.0.0
372de00000-372defe000 r-xp 00000000 fd:08 2490841 
  /usr/lib64/libX11.so.6.2.0
372defe000-372e0fe000 ---p 000fe000 fd:08 2490841 
  /usr/lib64/libX11.so.6.2.0
372e0fe000-372e104000 rw-p 000fe000 fd:08 2490841 
  /usr/lib64/libX11.so.6.2.0
372e200000-372e210000 r-xp 00000000 fd:08 2491870 
  /usr/lib64/libXext.so.6.4.0
372e210000-372e410000 ---p 00010000 fd:08 2491870 
  /usr/lib64/libXext.so.6.4.0
372e410000-372e411000 rw-p 00010000 fd:08 2491870 
  /usr/lib64/libXext.so.6.4.0
372ea00000-372ea04000 r-xp 00000000 fd:08 2492458 
  /usr/lib64/libXv.so.1.0.0
372ea04000-372ec04000 ---p 00004000 fd:08 2492458 
  /usr/lib64/libXv.so.1.0.0
372ec04000-372ec05000 rw-p 00004000 fd:08 2492458 
  /usr/lib64/libXv.so.1.0.0
372ee00000-372ee02000 r-xp 00000000 fd:08 2492556 
  /usr/lib64/libXinerama.so.1.0.0
372ee02000-372f001000 ---p 00002000 fd:08 2492556 
  /usr/lib64/libXinerama.so.1.0.0
372f001000-372f002000 rw-p 00001000 fd:08 2492556 
  /usr/lib64/libXinerama.so.1.0.0
372f200000-372f206000 r-xp 00000000 fd:08 2492404 
  /usr/lib64/libXxf86dga.so.1.0.0
372f206000-372f405000 ---p 00006000 fd:08 2492404 
  /usr/lib64/libXxf86dga.so.1.0.0
372f405000-372f406000 rw-p 00005000 fd:08 2492404 
  /usr/lib64/libXxf86dga.so.1.0.0
372fe00000-372fec7000 r-xp 00000000 fd:03 622771 
  /lib64/libglib-2.0.so.0.1400.4
372fec7000-37300c6000 ---p 000c7000 fd:03 622771 
  /lib64/libglib-2.0.so.0.1400.4
37300c6000-37300c8000 rw-p 000c6000 fd:03 622771 
  /lib64/libglib-2.0.so.0.1400.4
3730200000-3730208000 r-xp 00000000 fd:08 2492536 
  /usr/lib64/libgif.so.4.1.3
3730208000-3730407000 ---p 00008000 fd:08 2492536 
  /usr/lib64/libgif.so.4.1.3
3730407000-3730408000 rw-p 00007000 fd:08 2492536 
  /usr/lib64/libgif.so.4.1.3
3730600000-3730603000 r-xp 00000000 fd:03 623772 
  /lib64/libgmodule-2.0.so.0.1400.4
3730603000-3730802000 ---p 00003000 fd:03 623772 
  /lib64/libgmodule-2.0.so.0.1400.4
3730802000-3730803000 rw-p 00002000 fd:03 623772 
  /lib64/libgmodule-2.0.so.0.1400.4
3730a00000-3730a04000 r-xp 00000000 fd:03 623773 
  /lib64/libgthread-2.0.so.0.1400.4
3730a04000-3730c03000 ---p 00004000 fd:03 623773 
  /lib64/libgthread-2.0.so.0.1400.4
3730c03000-3730c04000 rw-p 00003000 fd:03 623773 
  /lib64/libgthread-2.0.so.0.1400.4
3733000000-3733041000 r-xp 00000000 fd:08 2492161 
  /usr/lib64/libpulse.so.0.3.0
3733041000-3733241000 ---p 00041000 fd:08 2492161 
  /usr/lib64/libpulse.so.0.3.0
3733241000-3733243000 rw-p 00041000 fd:08 2492161 
  /usr/lib64/libpulse.so.0.3.0
3737600000-3737602000 r-xp 00000000 fd:08 2492835 
  /usr/lib64/libXss.so.1.0.0
3737602000-3737802000 ---p 00002000 fd:08 2492835 
  /usr/lib64/libXss.so.1.0.0
3737802000-3737803000 rw-p 00002000 fd:08 2492835 
  /usr/lib64/libXss.so.1.0.0
37f7000000-37f701b000 r-xp 00000000 fd:03 623308 
  /lib64/ld-2.7.so
37f721a000-37f721b000 r--p 0001a000 fd:03 623308 
  /lib64/ld-2.7.so
37f721b000-37f721c000 rw-p 0001b000 fd:03 623308 
  /lib64/ld-2.7.so
37f7800000-37f7806000 r-xp 00000000 fd:08 2491037 
  /usr/lib64/libartsc.so.0.0.0
37f7806000-37f7a05000 ---p 00006000 fd:08 2491037 
  /usr/lib64/libartsc.so.0.0.0
37f7a05000-37f7a06000 rw-p 00005000 fd:08 2491037 
  /usr/lib64/libartsc.so.0.0.0
37f8200000-37f834d000 r-xp 00000000 fd:03 623311 
  /lib64/libc-2.7.so
37f834d000-37f854d000 ---p 0014d000 fd:03 623311 
  /lib64/libc-2.7.so
37f854d000-37f8551000 r--p 0014d000 fd:03 623311 
  /lib64/libc-2.7.so
37f8551000-37f8552000 rw-p 00151000 fd:03 623311 
  /lib64/libc-2.7.so
37f8552000-37f8557000 rw-p 37f8552000 00:00 0
37f8600000-37f8682000 r-xp 00000000 fd:03 623312 
  /lib64/libm-2.7.so
37f8682000-37f8881000 ---p 00082000 fd:03 623312 
  /lib64/libm-2.7.so
37f8881000-37f8882000 r--p 00081000 fd:03 623312 
  /lib64/libm-2.7.so
37f8882000-37f8883000 rw-p 00082000 fd:03 623312 
  /lib64/libm-2.7.so
37f8a00000-37f8a02000 r-xp 00000000 fd:03 623313 
  /lib64/libdl-2.7.so
37f8a02000-37f8c02000 ---p 00002000 fd:03 623313 
  /lib64/libdl-2.7.so
37f8c02000-37f8c03000 r--p 00002000 fd:03 623313 
  /lib64/libdl-2.7.so
37f8c03000-37f8c04000 rw-p 00003000 fd:03 623313 
  /lib64/libdl-2.7.so
37f8e00000-37f8e16000 r-xp 00000000 fd:03 623318 
  /lib64/libpthread-2.7.so
37f8e16000-37f9015000 ---p 00016000 fd:03 623318 
  /lib64/libpthread-2.7.so
37f9015000-37f9016000 r--p 00015000 fd:03 623318 
  /lib64/libpthread-2.7.so
37f9016000-37f9017000 rw-p 00016000 fd:03 623318 
  /lib64/libpthread-2.7.so
37f9017000-37f901b000 rw-p 37f9017000 00:00 0
37f9200000-37f9214000 r-xp 00000000 fd:03 623316 
  /lib64/libz.so.1.2.3
37f9214000-37f9413000 ---p 00014000 fd:03 623316 
  /lib64/libz.so.1.2.3
37f9413000-37f9414000 rw-p 00013000 fd:03 623316 
  /lib64/libz.so.1.2.3
37f9a00000-37f9a02000 r-xp 00000000 fd:08 2490742 
  /usr/lib64/libXau.so.6.0.0
37f9a02000-37f9c01000 ---p 00002000 fd:08 2490742 
  /usr/lib64/libXau.so.6.0.0
37f9c01000-37f9c02000 rw-p 00001000 fd:08 2490742 
  /usr/lib64/libXau.so.6.0.0
37fa600000-37fa605000 r-xp 00000000 fd:08 2490683 
  /usr/lib64/libXdmcp.so.6.0.0
37fa605000-37fa804000 ---p 00005000 fd:08 2490683 
  /usr/lib64/libXdmcp.so.6.0.0
37fa804000-37fa805000 rw-p 00004000 fd:08 2490683 
  /usr/lib64/libXdmcp.so.6.0.0
37fb200000-37fb221000 r-xp 00000000 fd:03 623317 
  /lib64/libexpat.so.1.5.2
37fb221000-37fb420000 ---p 00021000 fd:03 623317 
  /lib64/libexpat.so.1.5.2
37fb420000-37fb423000 rw-p 00020000 fd:03 623317 
  /lib64/libexpat.so.1.5.2
37fb600000-37fb624000 r-xp 00000000 fd:08 3801303 
  /usr/lib64/libpng12.so.0.22.0
37fb624000-37fb823000 ---p 00024000 fd:08 3801303 
  /usr/lib64/libpng12.so.0.22.0
37fb823000-37fb824000 rw-p 00023000 fd:08 3801303 
  /usr/lib64/libpng12.so.0.22.0
37fda00000-37fda08000 r-xp 00000000 fd:03 623325 
  /lib64/librt-2.7.so
37fda08000-37fdc07000 ---p 00008000 fd:03 623325 
  /lib64/librt-2.7.so
37fdc07000-37fdc08000 r--p 00007000 fd:03 623325 
  /lib64/librt-2.7.so
37fdc08000-37fdc09000 rw-p 00008000 fd:03 623325 
  /lib64/librt-2.7.so
37fde00000-37fde09000 r-xp 00000000 fd:08 2490627 
  /usr/lib64/libSM.so.6.0.0
37fde09000-37fe009000 ---p 00009000 fd:08 2490627 
  /usr/lib64/libSM.so.6.0.0
37fe009000-37fe00a000 rw-p 00009000 fd:08 2490627 
  /usr/lib64/libSM.so.6.0.0
37fe200000-37fe217000 r-xp 00000000 fd:08 2491339 
  /usr/lib64/libICE.so.6.3.0
37fe217000-37fe416000 ---p 00017000 fd:08 2491339 
  /usr/lib64/libICE.so.6.3.0
37fe416000-37fe417000 rw-p 00016000 fd:08 2491339 
  /usr/lib64/libICE.so.6.3.0
37fe417000-37fe41b000 rw-p 37fe417000 00:00 0
37fe600000-37fe60d000 r-xp 00000000 fd:03 623319 
  /lib64/libgcc_s-4.1.2-20070925.so.1
37fe60d000-37fe80d000 ---p 0000d000 fd:03 623319 
  /lib64/libgcc_s-4.1.2-20070925.so.1
37fe80d000-37fe80e000 rw-p 0000d000 fd:03 623319 
  /lib64/libgcc_s-4.1.2-20070925.so.1
37fee00000-37fee21000 r-xp 00000000 fd:08 2490888 
  /usr/lib64/libjpeg.so.62.0.0
37fee21000-37ff020000 ---p 00021000 fd:08 2490888 
  /usr/lib64/libjpeg.so.62.0.0
37ff020000-37ff021000 rw-p 00020000 fd:08 2490888 
  /usr/lib64/libjpeg.so.62.0.0
3804000000-3804003000 r-xp 00000000 fd:03 623330 
  /lib64/libcap.so.1.10
3804003000-3804202000 ---p 00003000 fd:03 623330 
  /lib64/libcap.so.1.10
3804202000-3804203000 rw-p 00002000 fd:03 623330 
  /lib64/libcap.so.1.10
3807600000-38076d7000 r-xp 00000000 fd:03 623327 
  /lib64/libasound.so.2.0.0
38076d7000-38078d7000 ---p 000d7000 fd:03 623327 
  /lib64/libasound.so.2.0.0
38078d7000-38078df000 rw-p 000d7000 fd:03 623327 
  /lib64/libasound.so.2.0.0
3807a00000-3807a1c000 r-xp 00000000 fd:03 623333 
  /lib64/libtinfo.so.5.6
3807a1c000-3807c1c000 ---p 0001c000 fd:03 623333 
  /lib64/libtinfo.so.5.6
3807c1c000-3807c20000 rw-p 0001c000 fd:03 623333 
  /lib64/libtinfo.so.5.6
3809000000-3809028000 r-xp 00000000 fd:08 2492216 
  /usr/lib64/libaudiofile.so.0.0.2
3809028000-3809227000 ---p 00028000 fd:08 2492216 
  /usr/lib64/libaudiofile.so.0.0.2
3809227000-380922b000 rw-p 00027000 fd:08 2492216 
  /usr/lib64/libaudiofile.so.0.0.2
3809800000-3809820000 r-xp 00000000 fd:03 622759 
  /lib64/libncurses.so.5.6
3809820000-3809a1f000 ---p 00020000 fd:03 622759 
  /lib64/libncurses.so.5.6
3809a1f000-3809a20000 rw-p 0001f000 fd:03 622759 
  /lib64/libncurses.so.5.6
380a000000-380a00a000 r-xp 00000000 fd:08 2491949 
  /usr/lib64/libesd.so.0.2.38
380a00a000-380a209000 ---p 0000a000 fd:08 2491949 
  /usr/lib64/libesd.so.0.2.38
380a209000-380a20a000 rw-p 00009000 fd:08 2491949 
  /usr/lib64/libesd.so.0.2.38
3b3d000000-3b3d005000 r-xp 00000000 fd:08 2492733 
  /usr/lib64/libXxf86vm.so.1.0.0
3b3d005000-3b3d204000 ---p 00005000 fd:08 2492733 
  /usr/lib64/libXxf86vm.so.1.0.0
3b3d204000-3b3d205000 rw-p 00004000 fd:08 2492733 
  /usr/lib64/libXxf86vm.so.1.0.0
3b3f000000-3b3f003000 r-xp 00000000 fd:08 2492723 
  /usr/lib64/libpulse-simple.so.0.0.0
3b3f003000-3b3f202000 ---p 00003000 fd:08 2492723 
  /usr/lib64/libpulse-simple.so.0.0.0
3b3f202000-3b3f203000 rw-p 00002000 fd:08 2492723 
  /usr/lib64/libpulse-simple.so.0.0.0
3bb4e00000-3bb4e86000 r-xp 00000000 fd:08 2491325 
  /usr/lib64/libfreetype.so.6.3.16
3bb4e86000-3bb5085000 ---p 00086000 fd:08 2491325 
  /usr/lib64/libfreetype.so.6.3.16
3bb5085000-3bb508b000 rw-p 00085000 fd:08 2491325 
  /usr/lib64/libfreetype.so.6.3.16
3bb5200000-3bb522a000 r-xp 00000000 fd:08 2491871 
  /usr/lib64/libfontconfig.so.1.2.0
3bb522a000-3bb5429000 ---p 0002a000 fd:08 2491871 
  /usr/lib64/libfontconfig.so.1.2.0
3bb5429000-3bb5434000 rw-p 00029000 fd:08 2491871 
  /usr/lib64/libfontconfig.so.1.2.0
3f4b600000-3f4bef3000 r-xp 00000000 fd:08 2492090 
  /usr/lib64/libGLcore.so.169.07
3f4bef3000-3f4bff3000 ---p 008f3000 fd:08 2492090 
  /usr/lib64/libGLcore.so.169.07
3f4bff3000-3f4c15a000 rwxp 008f3000 fd:08 2492090 
  /usr/lib64/libGLcore.so.169.07
3f4c15a000-3f4c161000 rwxp 3f4c15a000 00:00 0
3f4c200000-3f4c201000 r-xp 00000000 fd:08 2492091 
  /usr/lib64/tls/libnvidia-tls.so.169.07
3f4c201000-3f4c300000 ---p 00001000 fd:08 2492091 
  /usr/lib64/tls/libnvidia-tls.so.169.07
3f4c300000-3f4c301000 rw-p 00000000 fd:08 2492091 
  /usr/lib64/tls/libnvidia-tls.so.169.07
3f4c400000-3f4c499000 r-xp 00000000 fd:08 2492242 
  /usr/lib64/libGL.so.169.07
3f4c499000-3f4c598000 ---p 00099000 fd:08 2492242 
  /usr/lib64/libGL.so.169.07
3f4c598000-3f4c5cc000 rwxp 00098000 fd:08 2492242 
  /usr/lib64/libGL.so.169.07
3f4c5cc000-3f4c5ce000 rwxp 3f4c5cc000 00:00 0
3f4ca00000-3f4ca66000 r-xp 00000000 fd:08 2492408 
  /usr/lib64/libSDL-1.2.so.0.11.1
3f4ca66000-3f4cc65000 ---p 00066000 fd:08 2492408 
  /usr/lib64/libSDL-1.2.so.0.11.1
3f4cc65000-3f4cc68000 rw-p 00065000 fd:08 2492408 
  /usr/lib64/libSDL-1.2.so.0.11.1
3f4cc68000-3f4cc98000 rw-p 3f4cc68000 00:00 0
2aaaaaaab000-2aaaaaaad000 rw-p 2aaaaaaab000 00:00 0
2aaaaaade000-2aaaaaae5000 rw-p 2aaaaaade000 00:00 0
2aaaaaae5000-2aaaaaae6000 r-xp 00000000 fd:08 2492275 
  /usr/lib64/libungif.so.4.1.3
2aaaaaae6000-2aaaaace5000 ---p 00001000 fd:08 2492275 
  /usr/lib64/libungif.so.4.1.3
2aaaaace5000-2aaaaace6000 rw-p 00000000 fd:08 2492275 
  /usr/lib64/libungif.so.4.1.3
2aaaaace6000-2aaaaad63000 rw-p 2aaaaace6000 00:00 0
2aaaaad63000-2aaaaf7bd000 r--p 00000000 fd:08 2457607 
  /usr/lib/locale/locale-archive
2aaaaf7bd000-2aaaaf7c4000 r--s 00000000 fd:08 2490621 
  /usr/lib64/gconv/gconv-modules.cache
2aaaaf7c4000-2aaaaf7c5000 rw-p 2aaaaf7c4000 00:00 0
2aaaaf7c5000-2aaaaf7c6000 r--s 80000000 00:10 3946 
  /dev/snd/pcmC1D0p
2aaaaf7c6000-2aaaaf7c7000 rw-s 81000000 00:10 3946 
  /dev/snd/pcmC1D0p
7fff4209d000-7fff420b9000 rwxp 7ffffffe1000 00:00 0 
  [stack]
7fff420b9000-7fff420bb000 rw-p 7fffffffd000 00:00 0
7fff421fe000-7fff42200000 r-xp 7fff421fe000 00:00 0 
  [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 
  [vsyscall]

Program received signal SIGABRT, Aborted.
[Switching to Thread 46912498491520 (LWP 20911)]
0x00000037f8230ec5 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00000037f8230ec5 in raise () from /lib64/libc.so.6
#1  0x00000037f8232970 in abort () from /lib64/libc.so.6
#2  0x00000037f826b0db in __libc_message () from /lib64/libc.so.6
#3  0x00000037f82763e3 in realloc () from /lib64/libc.so.6
#4  0x00000000004a4220 in decode_audio (sh_audio=0xe5c4b0, minlen=65536) 
at dec_audio.c:399
#5  0x000000000043f67a in main (argc=<value optimized out>, argv=<value 
optimized out>) at mplayer.c:1870

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

Valgrind output:

....
Starting playback...
[libaf] Reallocating memory in module lavcac3enc, old len = 0, new len = 
21857
Increasing filtered audio buffer size from 0 to 18432
==20938== Invalid write of size 1
==20938==    at 0x4A06A90: memset (mc_replace_strmem.c:490)
==20938==    by 0x4FDE59: play (af_lavcac3enc.c:244)
==20938==    by 0x4EDA70: af_play (af.c:521)
==20938==    by 0x4A4175: decode_audio (dec_audio.c:392)
==20938==    by 0x43F679: main (mplayer.c:1870)
==20938==  Address 0x4F3AE21 is 0 bytes after a block of size 21,857 alloc'd
==20938==    at 0x4A059F6: malloc (vg_replace_malloc.c:149)
==20938==    by 0x4EDD1B: af_resize_local_buffer (af.c:577)
==20938==    by 0x4FDF9E: play (af_lavcac3enc.c:166)
==20938==    by 0x4EDA70: af_play (af.c:521)
==20938==    by 0x4A4175: decode_audio (dec_audio.c:392)
==20938==    by 0x43F679: main (mplayer.c:1870)
==20938==
==20938== Invalid write of size 1
==20938==    at 0x4A06A9A: memset (mc_replace_strmem.c:490)
==20938==    by 0x4FDE59: play (af_lavcac3enc.c:244)
==20938==    by 0x4EDA70: af_play (af.c:521)
==20938==    by 0x4A4175: decode_audio (dec_audio.c:392)
==20938==    by 0x43F679: main (mplayer.c:1870)
==20938==  Address 0x4F3AE22 is 1 bytes after a block of size 21,857 alloc'd
==20938==    at 0x4A059F6: malloc (vg_replace_malloc.c:149)
==20938==    by 0x4EDD1B: af_resize_local_buffer (af.c:577)
==20938==    by 0x4FDF9E: play (af_lavcac3enc.c:166)
==20938==    by 0x4EDA70: af_play (af.c:521)
==20938==    by 0x4A4175: decode_audio (dec_audio.c:392)
==20938==    by 0x43F679: main (mplayer.c:1870)
Increasing filtered audio buffer size from 18432 to 43008

valgrind: m_mallocfree.c:178 (mk_plain_bszB): Assertion 'bszB != 0' failed.
==20938==    at 0x380178A7: report_and_quit (m_libcassert.c:136)
==20938==    by 0x38017C0A: vgPlain_assert_fail (m_libcassert.c:200)
==20938==    by 0x38020A87: vgPlain_arena_malloc (m_mallocfree.c:178)
==20938==    by 0x380358E6: vgPlain_cli_malloc (replacemalloc_core.c:101)
==20938==    by 0x38001E35: vgMemCheck_realloc (mc_malloc_wrappers.c:356)
==20938==    by 0x38035FDF: do_client_request (scheduler.c:1166)
==20938==    by 0x38037681: vgPlain_scheduler (scheduler.c:869)
==20938==    by 0x38053089: run_a_thread_NORETURN (syswrap-linux.c:87)

sched status:
   running_tid=1

Thread 1: status = VgTs_Runnable
==20938==    at 0x4A05AF7: realloc (vg_replace_malloc.c:306)
==20938==    by 0x4A421F: decode_audio (dec_audio.c:399)
==20938==    by 0x43F679: main (mplayer.c:1870)



Ulion wrote:
> 2008/1/11, Matthew Nichols <mjnichol at uwaterloo.ca>:
>> I actually ran the non-debug version of mplayer for the log output
>> below. Here's the output from both test runs as in the previous message,
>> but using the debug version (in case it's more helpful):
> 
> It probably be 64bit related.
> Did you make clean and make a clean build to try? If you didn't, then
> make clean and rebuild.
> If you get crash on a clean build, then prefix your cmdline with 'gdb
> --args', that means:
> gdb --args ./mplayer -v -ao alsa:device=hw=1 -af lavcac3enc=1
> /home/mjnichol/test.wav
> 
> and post the crash result and stack print (gdb cmd bt).
> 
> 



More information about the MPlayer-users mailing list