Package: libsndfile1-dev Version: 1.0.25-5 Severity: normal The following program segfaults when trying to write a large block to an Ogg/Vorbis file at once. The exact size where it crashes seems to depend on the parameters (samplerate, channels), but was always below 0x800000 in my tests.
Writing it in several smaller chunks seems to work. However, writing in blocks of size 0x100000 is about twice as slow as writing in blocks of size 0x10000 (which is about as fast as oggenc). #include <string.h> #include <sndfile.h> int main () { enum { n = 0x800000 }; SF_INFO sfi; sfi.frames = n; sfi.samplerate = 44100; sfi.channels = 1; sfi.format = SF_FORMAT_OGG | SF_FORMAT_VORBIS; sfi.sections = 1; sfi.seekable = 0; SNDFILE *sf = sf_open ("/dev/null", SFM_WRITE, &sfi); static float data[n]; memset (data, 0, sizeof (data)); sf_writef_float (sf, data, n); } gdb backtrace: Program received signal SIGSEGV, Segmentation fault. 0xb7c0baa8 in ?? () from /usr/lib/i386-linux-gnu/libvorbis.so.0 (gdb) bt #0 0xb7c0baa8 in ?? () from /usr/lib/i386-linux-gnu/libvorbis.so.0 #1 0xb7c0c96f in vorbis_analysis_wrote () from /usr/lib/i386-linux-gnu/libvorbis.so.0 #2 0xb7f75341 in ?? () from /usr/lib/i386-linux-gnu/libsndfile.so.1 #3 0xb7f756f1 in ?? () from /usr/lib/i386-linux-gnu/libsndfile.so.1 #4 0xb7f514c3 in sf_writef_float () from /usr/lib/i386-linux-gnu/libsndfile.so.1 #5 0x080486ad in main () -- System Information: Debian Release: 7.6 APT prefers stable APT policy: (900, 'stable'), (500, 'stable-updates'), (500, 'proposed-updates') Architecture: i386 (i686) Kernel: Linux 3.2.0-4-686-pae (SMP w/6 CPU cores) Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/dash Versions of packages libsndfile1-dev depends on: ii libflac-dev 1.2.1-6 ii libsndfile1 1.0.25-5 ii libvorbis-dev 1.3.2-1.3 ii pkg-config 0.26-1 libsndfile1-dev recommends no packages. libsndfile1-dev suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org