Menu

#300 sox v14.4.2 segmentation violation when playing some wav files generated by Audacity

closed-fixed
crash (4) oss (1)
6
2018-04-29
2018-01-14
No

sox v14.4.2 segmentation violation when playing some wav files generated by Audacity:
the command sox testfile.wav --default-device
plays the contents of testfile.wav, then plays some "scrambled" contents that sound like a tape recorder on fast-forward, then core dumps with a segmentation violation. The problematic files all play fine in Audacity and VLC player. The problematic files were recorded and exported from Audacity. This happens to some but not all wav files. Soxi shows no commonality or corruption in file headers of rprobematic files. Two example problematic files have been attached.
This segmentation violation happens with the sox.exe v14.4.2 obtained from cygwin32 distribution, as well as with sox compiled from github sources.

output of /usr/local/bin/sox.exe beginvox.wav --default-device -V -V :
/usr/local/bin/sox: SoX v14.4.2
time: Jan 14 2018 13:33:35
uname: CYGWIN_NT-6.1-WOW M6800 2.9.0(0.318/5/3) 2017-09-12 10:41 i686
compiler: gcc 6.4.0
arch: 1248 48 44 L OMP
/usr/local/bin/sox INFO formats: detected file format type `wav'
/usr/local/bin/sox DBUG wav: Searching for 66 6d 74 20
/usr/local/bin/sox DBUG wav: WAV Chunk fmt
/usr/local/bin/sox DBUG wav: Searching for 64 61 74 61
/usr/local/bin/sox DBUG wav: WAV Chunk data
/usr/local/bin/sox DBUG wav: Reading Wave file: Microsoft PCM format, 1 channel, 44100 samp/sec
/usr/local/bin/sox DBUG wav: 88200 byte/sec, 2 block align, 16 bits/samp, 127890 data bytes
/usr/local/bin/sox DBUG wav: 63945 Samps/chans
/usr/local/bin/sox DBUG wav: Searching for 4c 49 53 54

Input File : 'beginvox.wav'
Channels : 1
Sample Rate : 44100
Precision : 16-bit
Duration : 00:00:01.45 = 63945 samples = 108.75 CDDA sectors
File Size : 128k
Bit Rate : 706k
Sample Encoding: 16-bit Signed Integer PCM
Endian Type : little
Reverse Nibbles: no
Reverse Bits : no

/usr/local/bin/sox INFO oss: Using default OSS device name: /dev/dsp

Output File : 'default' (ossdsp)
Channels : 1
Sample Rate : 44100
Precision : 16-bit
Duration : 00:00:01.45 = 63945 samples = 108.75 CDDA sectors
Sample Encoding: 16-bit Signed Integer PCM
Endian Type : little
Reverse Nibbles: no
Reverse Bits : no

/usr/local/bin/sox INFO sox: effects chain: input 44100Hz 1 channels (multi) 16 bits 00:00:01.45
/usr/local/bin/sox INFO sox: effects chain: output 44100Hz 1 channels (multi) 16 bits 00:00:01.45
/usr/local/bin/sox DBUG sox: automatically entering interactive mode
/usr/local/bin/sox DBUG sox: start-up time = 0.104006
In:0.00% 00:00:00.00 [00:00:01.45] Out:0 [ | ] Clip:0 Segmentation fault (core dumped)

2 Attachments

Discussion

  • Dean Neumann

    Dean Neumann - 2018-01-14

    added attachment "beginvox.wav" because that's the input filename that the -V listing refers to.

     
  • Mans Rullgard

    Mans Rullgard - 2018-04-26
    • labels: SEGV, segmentation violation, wav, cygwin --> crash, oss
    • assigned_to: Mans Rullgard
     
  • Mans Rullgard

    Mans Rullgard - 2018-04-26

    Problem confirmed on Linux as well.

     
  • Mans Rullgard

    Mans Rullgard - 2018-04-29
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB