[libav-bugs] [Bug 338] New: Crash when mixing 8ch to Mono/Stereo on Windows 32-bit

bugzilla-daemon at aruru.libav.org bugzilla-daemon at aruru.libav.org
Tue Jul 31 21:13:28 CEST 2012


https://bugzilla.libav.org/show_bug.cgi?id=338

           Summary: Crash when mixing 8ch to Mono/Stereo on Windows 32-bit
           Product: Libav
           Version: git HEAD
          Platform: X86
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: Normal
         Component: libavresample
        AssignedTo: bugzilla at libav.org
        ReportedBy: h.leppkes at gmail.com


Following command crashes on Windows 32-bit (but NOT on 64-bit):

avconv -i 8chtest.flac -ac 2 out.wav

Adding -cpuflags 0 solves the crash. -cpuflags sse already crashes, as does any
higher combination.
The crash according to GDB happens in rather random places, however we managed
to narrow down the reason for the crash to the recently added SIMD mixing
functions (ff_mix_3_8_to_1_2_fltp_*)

The crash only happens with 8 channels, not with 7 or any less.

Log (nothing spectacular)

D:\Temp\libav>avconv -loglevel debug -i 8chtest.flac -ac 2 out.wav
avconv version v0.8-2563-g41f4320, Copyright (c) 2000-2012 the Libav developers
  built on Jul 29 2012 19:58:10 with gcc 4.5.2 (Gentoo 4.5.2 p1.1, pie-0.4.5)
  configuration: --enable-runtime-cpudetect --enable-cross-compile
--enable-w32threads --prefix=/usr --cross-prefix=ming
w32- --arch=i686 --target-os=mingw32 --sysroot=/usr/mingw32/ --enable-gpl
--enable-version3 --enable-librtmp --enable-li
bx264 --enable-libmp3lame --enable-libvorbis --enable-libvo-aacenc
--enable-memalign-hack --enable-shared --enable-avisy
nth --enable-libvpx
  libavutil     51. 37. 0 / 51. 37. 0
  libavcodec    54. 23. 1 / 54. 23. 1
  libavformat   54. 13. 0 / 54. 13. 0
  libavdevice   53.  2. 0 / 53.  2. 0
  libavfilter    3.  1. 0 /  3.  1. 0
  libavresample  0.  0. 3 /  0.  0. 3
  libswscale     2.  1. 0 /  2.  1. 0
[flac @ 0128fa00] Probed with size=2048 and score=50
[flac @ 0128fa00] max_analyze_duration reached
Guessed Channel Layout for  Input Stream #0.0 : 7.1
Input #0, flac, from '8chtest.flac':
  Metadata:
    WAVEFORMATEXTENSIBLE_CHANNEL_MASK: 0X63F
    VALID_BITS      : 24
    HDCD            : 0
  Duration: 00:01:34.49, bitrate: 2408 kb/s
    Stream #0.0, 61, 1/48000: Audio: flac, 48000 Hz, 7.1, s32
[abuffer source @ 02e2ca60] Setting value '1/48000' for key 'time_base'
[abuffer source @ 02e2ca60] Setting value '48000' for key 'sample_rate'
[abuffer source @ 02e2ca60] Setting value 's32' for key 'sample_fmt'
[abuffer source @ 02e2ca60] Setting value '0x63f' for key 'channel_layout'
[abuffer @ 02e2fc20] tb:1/48000 samplefmt:s32 samplerate: 48000 ch layout:0x63f
[aformat filter @ 02defb00] Setting value 's16' for key 'sample_fmts'
[aformat filter @ 02defb00] Setting value '0x3' for key 'channel_layouts'
[abuffersink @ 02e2fc60] auto-inserting filter 'auto-inserted fifo 0' between
the filter 'audio format for output stream
 0:0' and the filter 'output stream 0:0'
[aformat @ 02e2fcc0] auto-inserting filter 'auto-inserted resampler 0' between
the filter 'Parsed filter 0 anull' and th
e filter 'audio format for output stream 0:0'
[AVAudioResampleContext @ 0378bf20] Using fltp as internal sample format
[AVAudioResampleContext @ 0378bf20] audio_convert: found function: s32  to fltp
(C)
[AVAudioResampleContext @ 0378bf20] audio_convert: found function: fltp to s16 
(C)
[AVAudioResampleContext @ 0378bf20] audio_mix: 7.1 to stereo
[AVAudioResampleContext @ 0378bf20]   0.320   0.000   0.227   0.000   0.227  
0.000   0.227   0.000
[AVAudioResampleContext @ 0378bf20]   0.000   0.320   0.227   0.000   0.000  
0.227   0.000   0.227
[AVAudioResampleContext @ 0378bf20] audio_mix: found function: [fmt=fltp]
[c=flt] (C)
[AVAudioResampleContext @ 0378bf20] audio_mix: found function: [fmt=fltp]
[c=flt] [8 to 2] (SSE)
[AVAudioResampleContext @ 0378bf20] audio_mix: found function: [fmt=fltp]
[c=flt] [8 to 2] (AVX)
[resample @ 02e2fd80] fmt:s32 srate:48000 cl:7.1 -> fmt:s16 srate:48000
cl:stereo
Output #0, wav, to 'out.wav':
  Metadata:
    WAVEFORMATEXTENSIBLE_CHANNEL_MASK: 0X63F
    VALID_BITS      : 24
    HDCD            : 0
    encoder         : Lavf54.13.0
    Stream #0.0, 0, 1/48000: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (flac -> pcm_s16le)
Press ctrl-c to stop encoding

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list