Opened 9 years ago

Closed 9 years ago

#2273 closed defect (worksforme)

SIGSEGV playing a wav file

Reported by: ggrieco Owned by: beastd
Priority: normal Component: undetermined
Version: HEAD Severity: blocker
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

Summary of the bug:

SIGSEGV playing a wav file. Tested in mplayer svn 2015-12-18

How to reproduce:

mplayer -vo null -ao null (testcase attached)

backtrace:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
MPlayer SVN-r37563-snapshot-4.8 (C) 2000-2015 MPlayer Team

Playing SIGSEGV.PC.555555722ce3.STACK.cb84bd2d6.CODE.1.ADDR.0xa.INSTR.movzwl_0xa(%rax),%ecx.fuzz.
libavformat version 57.20.100 (internal)
Audio only file format detected.
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 57.18.100 (internal)
ADecoder init failed :(
Opening audio decoder: [dk3adpcm] Duck Corp. DK3 ADPCM decoder
AUDIO: 28 Hz, 21 ch, s16le, 0.0 kbit/0.00% (ratio: 0->1176)
Selected audio codec: [dk3adpcm] afm: dk3adpcm (Duck DK3 ADPCM (rogue format number))
==========================================================================
AO: [null] 28Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...

Program received signal SIGSEGV, Segmentation fault.
0x0000555555722ce3 in decode_audio ()
#0  0x0000555555722ce3 in decode_audio ()
#1  0x00005555557260c1 in mp_decode_audio ()
#2  0x00005555556a155b in main ()

valgrind report:

MPlayer SVN-r37563-snapshot-4.8 (C) 2000-2015 MPlayer Team

Playing SIGSEGV.PC.555555722ce3.STACK.cb84bd2d6.CODE.1.ADDR.0xa.INSTR.movzwl_0xa(%rax),%ecx.fuzz.
libavformat version 57.20.100 (internal)
Audio only file format detected.
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 57.18.100 (internal)
[adpcm_ima_dk3 @ 0x136c9a0]Invalid number of channels
Could not open codec.
ADecoder init failed :(
ADecoder init failed :(
Opening audio decoder: [dk3adpcm] Duck Corp. DK3 ADPCM decoder
AUDIO: 28 Hz, 21 ch, s16le, 0.0 kbit/0.00% (ratio: 0->1176)
Selected audio codec: [dk3adpcm] afm: dk3adpcm (Duck DK3 ADPCM (rogue format number))
==========================================================================
Invalid number of channels 21, assuming 2.
AO: [null] 28Hz 2ch s16le (2 bytes per sample)
Invalid number of channels 21, assuming 2.
Video: no video
Starting playback...
==7055== Invalid read of size 2
==7055==    at 0x2D6CE3: decode_audio (in /home/vagrant/repos/mplayer-export-2015-12-18/mplayer)
==7055==    by 0x2DA0C0: mp_decode_audio (in /home/vagrant/repos/mplayer-export-2015-12-18/mplayer)
==7055==    by 0x25555A: main (in /home/vagrant/repos/mplayer-export-2015-12-18/mplayer)
==7055==  Address 0xa is not stack'd, malloc'd or (recently) free'd
==7055== 

Attachments (1)

Change History (2)

comment:1 by rxt, 9 years ago

Resolution: worksforme
Status: newclosed
Version: unspecifiedHEAD

Already fixed with between r37572 (29/12/2015) and r37594 (08/01/2016) after being reported to the devel mailing list.

Note: See TracTickets for help on using tickets.