Comment 9 for bug 334056

Revision history for this message
Aapo Rantalainen (aapo-rantalainen) wrote :

Ubuntu 9.10 amd64, crashing when using --resample.
After patching it work.

apt-get source vorbis-tools
sudo apt-get build-dep vorbis-tools
cd vorbis-tools-1.2.0/
wget https://trac.xiph.org/raw-attachment/ticket/1316/vorbis-tools-oggenc-resample-call-fix.patch
patch -p0 < vorbis-tools-oggenc-resample-call-fix.patch
dpkg-buildpackage -rfakeroot -d -b
sudo dpkg -i ../vorbis-tools_1.2.0-6_amd64.deb

But using 'silly' values, it is still Aborting/SegFaulting

--resample 8
(Did you mean 8000 Hz?)
BUG: Got zero samples from resampler: your file will be truncated. Please report this.
Segmentation fault

--resample 80 (or 800)
(Did you mean 80000 Hz?)
BUG: Got zero samples from resampler: your file will be truncated. Please report this.
oggenc: malloc.c:3074: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.
Aborted