oggenc crashes with "Segmentation Fault" with following commands:
--- snip ---
sox /data/audio/aljarreau/audio_01.au -r 44100 -c 2 -w -s -t raw - | oggenc -r
-o test.ogg -
Encoding standard input to
"test.ogg"
at quality 3.00
Segmentation Fault
test.ogg: 0 bytes
--- snip ---
--- snip ---
sox /data/audio/aljarreau/audio_01.au -r 44100 -c 2 -w -s -t raw - | oggenc -r
--raw-endianness 1 - -o test.ogg
Encoding standard input to
"test.ogg"
at quality 3.00
Segmentation Fault
test.ogg: 0 bytes
[core dump file available, 1.7 MBytes]
--- snip ---
--- snip ---
# Same for MONO
sox /data/audio/aljarreau/audio_01.au -r 44100 -c 1 -w -s -t raw - | oggenc -r
--raw-endianness 1 -C 1 - -o test.ogg
Encoding standard input to
"test.ogg"
at quality 3.00
Segmentation Fault
--- snip ---
--- snip ---
sox /data/audio/aljarreau/audio_01.au audio.wav
oggenc audio.wav
Opening with wav module: WAV file reader
Encoding "audio.wav" to
"audio.ogg"
at quality 3.00
Segmentation Fault
audio.ogg: 0 bytes
--- snip ---
--- snip ---
sox /data/audio/aljarreau/audio_01.au -r 22050 audio.wav
rm audio.ogg
oggenc audio.wav
Opening with wav module: WAV file reader
Encoding "audio.wav" to
"audio.ogg"
at quality 3.00
Segmentation Fault
audio.ogg: 0 bytes
--- snip ---
--- snip ---
sox muppetsong_original.wav -r 22050 -c 2 -w -s -t raw - | oggenc -r
--raw-endianness 1 -R 22050 - -o test.ogg
Encoding standard input to
"test.ogg"
at quality 3.00
Encoding [ 0m20s so far] |Segmentation Fault
!! [REPEATED SAME COMMAND]
sox muppetsong_original.wav -r 22050 -c 2 -w -s -t raw - | oggenc -r
--raw-endianness 1 -R 22050 - -o test.ogg
Encoding standard input to
"test.ogg"
at quality 3.00
Encoding [ 0m21s so far] |Segmentation Fault
test.ogg: 147456 bytes (sounds good so far)
--- snip ---
--- snip ---
oggenc --resample=22050 muppetsong_original.wav
Opening with wav module: WAV file reader
Resampling input from 22254 Hz to 22050 Hz
Encoding "muppetsong_original.wav" to
"muppetsong_original.ogg"
at quality 3.00
[ 31.3%] [ 0m25s remaining] /Segmentation Fault
muppetsong_original.ogg: 98304 [sounds OK]
--- snip ---
BUT ...
--- snip ---
oggenc muppetsong_original.wav
Opening with wav module: WAV file reader
Encoding "muppetsong_original.wav" to
"muppetsong_original.ogg"
at quality 3.00
[ 99.8%] [ 0m00s remaining] \
Done encoding file "muppetsong_original.ogg"
File length: 0m 54.0s
Elapsed time: 0m 25.7s
Rate: 2.1066
Average bitrate: 50.8 kb/s
ogginfo muppetsong_original.ogg
Processing file "muppetsong_original.ogg"...
New logical stream (#1, serial: 000045d9): type vorbis
Vorbis headers parsed for stream 1, information follows...
Version: 0
Vendor: Xiph.Org libVorbis I 20020717 (1.0)
Channels: 1
Rate: 22254
Nominal bitrate: 40.222000 kb/s
Upper bitrate not set
Lower bitrate not set
Vorbis stream 1:
Total data length: 344425 bytes
Playback length: 0m:54s
Average bitrate: 50.833205 kbps
Logical stream 1 ended
--- snip ---
Used source:
libogg-1.0.tar.gz
libvorbis-1.0.tar.gz
libao-0.8.3.tar.gz
curl-7.9.8.tar.gz
vorbis-tools-1.0.tar.gz
Versions:
OggEnc v1.0 (libvorbis 1.0)
sox: Version 12.17.3
SunOS pmsun20 5.6 Generic_105181-33 sun4m sparc SUNW,SPARCstation-20
ldd `which oggenc`
libvorbisenc.so.2 => /tools/oggvorbis/1.0/lib/libvorbisenc.so.2
libvorbis.so.0 => /tools/oggvorbis/1.0/lib/libvorbis.so.0
libm.so.1 => /lib/libm.so.1
libogg.so.0 => /tools/oggvorbis/1.0/lib/libogg.so.0
libc.so.1 => /lib/libc.so.1
libdl.so.1 => /lib/libdl.so.1
/data/audio/aljarreau/audio_01.au: audio data: 16-bit linear PCM, stereo, 44100
Hz
I tried different things but it still crashes the same way:
- Compiled with GCC 2.8.1
- Compiled with GCC 3.2
- Commented out line 129 in vorbis-tools-1.0/share/iconvert.c
as of BugID 243 and recompiled/reinstalled
[The tries above I actually did it with this version]
Compile log looks good. As there seems to be some problems with iconv
(as of BugID 243) I show you this:
--- snip ---
gcc -DPACKAGE=\"vorbis-tools\" -DVERSION=\"1.0\" -DHAVE_DLFCN_H=1
-DSTDC_HEADERS=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1
-DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_LIMITS_H=1
-DHAVE_LOCALE_H=1 -DHAVE_NL_TYPES_H=1 -DHAVE
_MALLOC_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETC
WD=1 -DHAVE_GETEGID=1 -DHAVE_GETEUID=1 -DHAVE_GETGID=1 -DHAVE_GETUID=1
-DHAVE_MUNMAP=1 -DHAVE_PUTENV=1 -DHAVE_SETLOC
ALE=1 -DHAVE_STRCHR=1 -DHAVE_STRCASECMP=1 -DHAVE_STRDUP=1 -DHAVE_STRTOUL=1
-DHAVE_TSEARCH=1 -DHAVE_ICONV=1 -DICONV_C
ONST=const -DHAVE_LANGINFO_CODESET=1 -DHAVE_LC_MESSAGES=1 -DENABLE_NLS=1
-DHAVE_CURL=1 -DHAVE_PTHREAD=1 -DHAVE_ALLOC
A_H=1 -DHAVE_ALLOCA=1 -DHAVE_ICONV=1 -DICONV_CONST=const -DHAVE_ATEXIT=1
-DHAVE_LANGINFO_CODESET=1 -I. -I. -I../in
clude -O20 -ffast-math -fsigned-char -mv8 -c iconvert.c
iconvert.c: In function `iconvert':
iconvert.c:107: warning: passing arg 2 of `iconv' from incompatible pointer type
iconvert.c:166: warning: passing arg 2 of `iconv' from incompatible pointer type
iconvert.c:178: warning: passing arg 2 of `iconv' from incompatible pointer type
iconvert.c:201: warning: passing arg 2 of `iconv' from incompatible pointer type
iconvert.c:211: warning: passing arg 2 of `iconv' from incompatible pointer type
-- snip ---
REMARKS:
- ogg123 just works fine (file wich I partially could generate, and
downloaded files)
- Version 1.0 missing in Bugzilla form
- sox works as I use it with lame
Let me know if you need more information.
Thanks,
Pascal