Anyone had problems like this?
| iris% pike | Pike v7.6 release 112 running Hilfe v3.5 (Incremental Pike Frontend) | > string s=Stdio.read_bytes("DSC00354.JPG"); object img=Image.JPEG.decode(s); img->scale(632,474); string t=Image.JPEG.encode(img,(["quality":95])); | (1) Result: Image.Image( 632 x 474 /* 877.6Kb */) | zsh: segmentation fault pike
| iris% gdb `which pike` | ... | (gdb) run | [New Thread 47468888552080 (LWP 335)] | Pike v7.6 release 112 running Hilfe v3.5 (Incremental Pike Frontend) | > string s=Stdio.read_bytes("DSC00354.JPG"); object img=Image.JPEG.decode(s); img->scale(632,474); string t=Image.JPEG.encode(img,(["quality":95])); | (1) Result: Image.Image( 632 x 474 /* 877.6Kb */)
It's in 7.6.112 to 7.7.39, at least.
Image here: http://www.mirar.org/DSC00354.JPG
Problem got bad when I upgraded to Ubuntu 7.10, but I'm not sure if that is because of a new jpeglib or a more paranoid glibc. AMD64.
Sometimes I get this:
| Pike v7.7 release 39 running Hilfe v3.5 (Incremental Pike Frontend)> string s=Stdio.read_bytes("www/DSC00354.JPG"); object img=Image.JPEG.decode(s); img->scale(632,474); string t=Image.JPEG.encode(img,(["quality":95])); | (1) Result: Image.Image( 632 x 474 /* 877.6Kb */) | *** glibc detected *** pike-7.7: double free or corruption (out): 0x0000000000a38490 *** | ======= Backtrace: ========= | /lib/libc.so.6[0x2ac4e5d7eb0a] | /lib/libc.so.6(cfree+0x8c)[0x2ac4e5d826fc] | /usr/lib/libjpeg.so.62[0x2ac4e76b9ffa] | /usr/lib/libjpeg.so.62[0x2ac4e76ba0fb] | /usr/lib/libjpeg.so.62(jpeg_destroy+0x10)[0x2ac4e76b9540] | /usr/local/pike/7.7.39/lib/modules/_Image_JPEG.so[0x2ac4e7483cb8] | /usr/lib/libjpeg.so.62[0x2ac4e76a98ea] | /usr/lib/libjpeg.so.62[0x2ac4e76a6fca] | /usr/lib/libjpeg.so.62[0x2ac4e76a5ef6] | /usr/lib/libjpeg.so.62(jpeg_write_scanlines+0x9f)[0x2ac4e76a2dff] | /usr/local/pike/7.7.39/lib/modules/_Image_JPEG.so[0x2ac4e7485bb9]