glibc detected *** /usr/bin/convert: free(): invalid pointer
Posted: 2012-07-17T02:16:07-07:00
Hello.
We're using ImageMagic tools invoked by java application. But it fails unexpectedly:
One more:
Instead, if I try to convert the same image from the command line:
it returns code 0 without any errors.
ImageMagic 6.2.8.0
Linux 2.6.18-274.7.1.el5 #1 SMP Thu Oct 20 16:21:01 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
CentOS 5.7 running inside VMware.
We're using ImageMagic tools invoked by java application. But it fails unexpectedly:
Code: Select all
2012-07-16 15:41:57,062 DEBUG [com.myapp.encoder.ImageMagickEncoding] (http-0.0.0.0-8080-7) Converting using command: /usr/bin/convert -quiet /input/20939.jpg /output/20939-4.png
2012-07-16 15:41:57,078 DEBUG [com.myapp.encoder.ImageMagickEncoding] (http-0.0.0.0-8080-7) Encoding exit code: 134
2012-07-16 15:41:57,079 WARN [com.myapp.encoder.ImageMagickEncoding] (http-0.0.0.0-8080-7) ImageMagickEncoding: convert returned a 0 exit value, but convert also wrote a message to stderr: *** glibc detected *** /usr/bin/convert: free(): invalid pointer: 0x00007fff469356bd ***
======= Backtrace: =========
/lib64/libc.so.6[0x325c070d7f]
/lib64/libc.so.6(cfree+0x4b)[0x325c0711db]
/usr/lib64/libMagick.so.10(RelinquishMagickMemory+0xe)[0x325e0bf2be]
/usr/lib64/libWand.so.10(ConvertImageCommand+0x629)[0x325f0286f9]
/usr/bin/convert[0x400c5e]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x325c01d994]
/usr/bin/convert[0x400a89]
======= Memory map: ========
00400000-00401000 r-xp 00000000 fd:00 7276232
2012-07-16 15:41:57,079 DEBUG [com.myapp.encoder.ImageMagickEncoding] (http-0.0.0.0-8080-7) ImageMagick Output Code : -1
Code: Select all
2012-07-16 15:42:26,036 WARN [com.myapp.encoder.ImageMagickEncoding] (http-0.0.0.0-8080-7) ImageMagickEncoding: convert returned a 0 exit value, but convert also wrote a message to stderr: *** glibc detected *** /usr/bin/convert: free(): invalid pointer: 0x00007fff071ca6bd ***
======= Backtrace: =========
/lib64/libc.so.6[0x325c070d7f]
/lib64/libc.so.6(cfree+0x4b)[0x325c0711db]
/usr/lib64/libMagick.so.10(RelinquishMagickMemory+0xe)[0x325e0bf2be]
/usr/lib64/libWand.so.10(ConvertImageCommand+0x629)[0x325f0286f9]
/usr/bin/convert[0x400c5e]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x325c01d994]
/usr/bin/convert[0x400a89]
======= Memory map: ========
00400000-00401000 r-xp 00000000 fd:00 7276232 /usr/bin/convert
00601000-00603000 rwxp 00001000 fd:00 7276232 /usr/bin/convert
1116a000-111d1000 rwxp 1116a000 00:00 0 [heap]
3
2012-07-16 15:42:26,036 DEBUG [com.myapp.encoder.ImageMagickEncoding] (http-0.0.0.0-8080-7) ImageMagick Output Code : -1
Code: Select all
/usr/bin/convert -quiet /input/20939.jpg /output/20939-4.png
ImageMagic 6.2.8.0
Linux 2.6.18-274.7.1.el5 #1 SMP Thu Oct 20 16:21:01 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
CentOS 5.7 running inside VMware.