oggenc segfaults on amd64 when using --resample option
oggenc 1.0.2 from vorbis tools 1.1.1 segfaults when it's run as follows:
oggenc --resample 11025 -o out.ogg in.flac
It also segfaults with --resample of 8000, 16000, 22050, and 32000.
Running ogginfo on the generated ogg reports "Warning: EOS not set on stream 1"
This bug has been seen on both a Gentoo and a Debian amd64 system.
Please find a backtrace of the segfault below.
% oggenc --version OggEnc v1.0.2 % gdb oggenc GNU gdb 6.4 Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) set args --resample 11025 -o out.ogg in.flac (gdb) run Starting program: oggenc --resample 11025 -o out.ogg in.flac Opening with flac module: FLAC file reader Resampling input from 44100 Hz to 11025 Hz Encoding "in.flac" to "out.ogg" at quality 3.00 [ 99.6%] [ 0m00s remaining] \ Done encoding file "out.ogg" File length: 3m 00.0s Elapsed time: 0m 12.4s Rate: 14.5499 Average bitrate: 34.4 kb/s Program received signal SIGSEGV, Segmentation fault. 0x00002adca9399db5 in free () from /lib/libc.so.6 (gdb) bt #0 0x00002adca9399db5 in free () from /lib/libc.so.6 #1 0x00000000004036d8 in flac_close (info=0x53fdc0) at flac.c:158 #2 0x0000000000405043 in main (argc=6, argv=0x7fff02172238) at oggenc.c:366