encoder_example segfaults on SunOS 4.x
Running the encoder example causes a segfault in libvorbis-1.0 on SunOS 4.1.3. The gdb back trace is as follows: $ ./encoder_example < ~/audio.wav > ~/audio.ogg Memory fault(coredump) $ gdb encoder_example core GDB is free software and you are welcome to 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. GDB 4.15.1 (sparc-sun-sunos4.1.3_U1), Copyright 1995 Free Software Foundation, Inc... Core was generated by `encoder_example'. Program terminated with signal 11, Segmentation fault. #0 0x16ea8 in inspect_error (x0=16, x1=46, y0=653, y1=-1, mask=0x1a4808, mdct=0x1a4a08, info=0x11e790) at floor1.c:543 543 int base=dy/adx; (gdb) bt #0 0x16ea8 in inspect_error (x0=16, x1=46, y0=653, y1=-1, mask=0x1a4808, mdct=0x1a4a08, info=0x11e790) at floor1.c:543 #1 0x1740c in floor1_fit (vb=0xf7fff708, look=0x1a7a38, logmdct=0x1a4a08, logmask=0x1a4808) at floor1.c:667 #2 0x1af2c in mapping0_forward (vb=0xf7fff708) at mapping0.c:423 #3 0x7fd0 in vorbis_analysis (vb=0xf7fff708, op=0x0) at analysis.c:47 #4 0x2598 in main () at encoder_example.c:216 (gdb) libogg and libvorbis are both compiled with gcc 2.95.2. The compiler flags are the default settings after running configure.