I have followings:
SELS 10.04 64 bit
Nginx nginx 0.8.20
ImageMagick version: ImageMagick 6.7.8
I wrote an image compressing module of nginx with imagemagick, but now I encounterer with an error:
1. the temp directory is filled with image magick dumpped files such as:
-rw------- 1 root root 144000000 Jul 6 22:53 magick-m7WP5dH5
-rw------- 1 root root 144000000 Jul 6 22:53 magick-mpM0JLWm
-rw------- 1 root root 144000000 Jul 16 13:48 magick-ms7YLsKl
-rw------- 1 root root 144000000 Jul 16 13:27 magick-n4Zi1ktV
2. the nginx error log are as following:
Code: Select all
2013/07/16 11:53:33 [alert] 10214#0: worker process 32133 exited on signal 6
*** glibc detected *** nginx: worker process: free(): invalid next size (normal): 0x00000000005a8e10 ***
======= Backtrace: =========
/lib64/libc.so.6[0x2af593e7d4fe]
/lib64/libc.so.6(__libc_free+0x6c)[0x2af593e7eb7c]
/home/test/magick/imagick/lib/libMagickCore.so.5(RelinquishMagickMemory+0xf)[0x2af593c31faf]
/home/test/magick/imagick/lib/libMagickCore.so.5(DestroyBlob+0xd8)[0x2af593b84af8]
/home/test/magick/imagick/lib/libMagickCore.so.5(AcquireNextImage+0xaa)[0x2af593c22f8a]
/home/test/magick/imagick/lib/ImageMagick-6.7.8/modules-Q16/coders/gif.so[0x2af595e36ea3]
/home/test/magick/imagick/lib/libMagickCore.so.5(ReadImage+0x198)[0x2af593bba3f8]
/home/test/magick/imagick/lib/libMagickCore.so.5(BlobToImage+0x28a)[0x2af593b8649a]
nginx: worker process[0x44ed9d]
nginx: worker process[0x42f6e8]
nginx: worker process[0x42f72c]
nginx: worker process[0x427b33]
nginx: worker process[0x41f67d]
nginx: worker process[0x417ca8]
nginx: worker process[0x41d445]
nginx: worker process[0x41bd87]
nginx: worker process[0x41dc31]
nginx: worker process[0x404e4d]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x2af593e2f164]
nginx: worker process[0x403679]
======= Memory map: ========
00400000-00463000 r-xp 00000000 08:06 31311 /home/test/nginx/sbin/nginx
00563000-0056f000 rw-p 00063000 08:06 31311 /home/test/nginx/sbin/nginx
0056f000-00657000 rw-p 0056f000 00:00 0 [heap]
2af5938fb000-2af593916000 r-xp 00000000 08:02 9871 /lib64/ld-2.4.so
2af593916000-2af593918000 rw-p 2af593916000 00:00 0
2af593918000-2af59394d000 r--s 00000000 08:02 104713 /var/run/nscd/passwd
2af59394d000-2af593982000 r--s 00000000 08:02 104730 /var/run/nscd/group
2af593982000-2af593983000 rw-s 00000000 00:08 1982963427 /dev/zero (deleted)
2af593a15000-2af593a17000 rw-p 0001a000 08:02 9871 /lib64/ld-2.4.so
2af593a17000-2af593a20000 r-xp 00000000 08:02 9882 /lib64/libcrypt-2.4.so
2af593a20000-2af593b1f000 ---p 00009000 08:02 9882 /lib64/libcrypt-2.4.so
2af593b1f000-2af593b22000 rw-p 00008000 08:02 9882 /lib64/libcrypt-2.4.so
2af593b22000-2af593b50000 rw-p 2af593b22000 00:00 0
2af593b50000-2af593cfa000 r-xp 00000000 08:06 28977 /home/test/magick/imagick/lib/libMagickCore.so.5.0.0
2af593cfa000-2af593df9000 ---p 001aa000 08:06 28977 /home/test/magick/imagick/lib/libMagickCore.so.5.0.0
2af593df9000-2af593e11000 rw-p 001a9000 08:06 28977 /home/test/magick/imagick/lib/libMagickCore.so.5.0.0
2af593e11000-2af593e12000 rw-p 2af593e11000 00:00 0
2af593e12000-2af593f48000 r-xp 00000000 08:02 9878 /lib64/libc-2.4.so
2af593f48000-2af594048000 ---p 00136000 08:02 9878 /lib64/libc-2.4.so
2af594048000-2af59404b000 r--p 00136000 08:02 9878 /lib64/libc-2.4.so
2af59404b000-2af59404d000 rw-p 00139000 08:02 9878 /lib64/libc-2.4.so
2af59404d000-2af594052000 rw-p 2af59404d000 00:00 0
2af594052000-2af5940c0000 r-xp 00000000 08:06 28726 /home/test/magick/libtiff/lib/libtiff.so.3.9.2
2af5940c0000-2af5941bf000 ---p 0006e000 08:06 28726 /home/test/magick/libtiff/lib/libtiff.so.3.9.2
2af5941bf000-2af5941c2000 rw-p 0006d000 08:06 28726 /home/test/magick/libtiff/lib/libtiff.so.3.9.2
2af5941c2000-2af5941f9000 r-xp 00000000 08:06 28633 /home/test/magick/jpegsrc/lib/libjpeg.so.8.0.1
2af5941f9000-2af5942f8000 ---p 00037000 08:06 28633 /home/test/magick/jpegsrc/lib/libjpeg.so.8.0.1
2af5942f8000-2af5942f9000 rw-p 00036000 08:06 28633 /home/test/magick/jpegsrc/lib/libjpeg.so.8.0.1
2af5942f9000-2af5942fa000 rw-p 2af5942f9000 00:00 0
2af5942fa000-2af594309000 r-xp 00000000 08:02 15455 /lib64/libbz2.so.1.0.0
2af594309000-2af594408000 ---p 0000f000 08:02 15455 /lib64/libbz2.so.1.0.0
2af594408000-2af59440a000 rw-p 0000e000 08:02 15455 /lib64/libbz2.so.1.0.0
2af59440a000-2af59445e000 r-xp 00000000 08:02 9886 /lib64/libm-2.4.so
2af59445e000-2af59455d000 ---p 00054000 08:02 9886 /lib64/libm-2.4.so
2af59455d000-2af59455f000 rw-p 00053000 08:02 9886 /lib64/libm-2.4.so
2af59455f000-2af594573000 r-xp 00000000 08:02 9904 /lib64/libpthread-2.4.so
2af594573000-2af594672000 ---p 00014000 08:02 9904 /lib64/libpthread-2.4.so
2af594672000-2af594674000 rw-p 00013000 08:02 9904 /lib64/libpthread-2.4.so
2af594674000-2af594679000 rw-p 2af594674000 00:00 0
2af594679000-2af59467b000 r-xp 00000000 08:02 9884 /lib64/libdl-2.4.so
2af59467b000-2af59477b000 ---p 00002000 08:02 9884 /lib64/libdl-2.4.so
2af59477b000-2af59477d000 rw-p 00002000 08:02 9884 /lib64/libdl-2.4.so
2af59477d000-2af595a42000 rw-p 2af59477d000 00:00 0
2af595a42000-2af595a4d000 r-xp 00000000 08:06 29201 /home/test/magick/imagick/lib/ImageMagick-6.7.8/modules-Q16/coders/jpeg.so
2af595a4d000-2af595b4c000 ---p 0000b000 08:06 29201 /home/test/magick/imagick/lib/ImageMagick-6.7.8/modules-Q16/coders/jpeg.so
2af595b4c000-2af595b4d000 rw-p 0000a000 08:06 29201 /home/test/magick/imagick/lib/ImageMagick-6.7.8/modules-Q16/coders/jpeg.so
2af595b4d000-2af595b70000 r-xp 00000000 08:06 29205 /home/test/magick/imagick/lib/ImageMagick-6.7.8/modules-Q16/coders/png.so
2af595b70000-2af595c6f000 ---p 00023000 08:06 29205 /home/test/magick/imagick/lib/ImageMagick-6.7.8/modules-Q16/coders/png.so
2af595c6f000-2af595c70000 rw-p 00022000 08:06 29205 /home/test/magick/imagick/lib/ImageMagick-6.7.8/modules-Q16/coders/png.so
2af595c70000-2af595ca2000 r-xp 00000000 08:06 28698 /home/test/magick/libpng/lib/libpng12.so.0.42.0
2af595ca2000-2af595da2000 ---p 00032000 08:06 28698 /home/test/magick/libpng/lib/libpng12.so.0.42.0
2af595da2000-2af595da3000 rw-p 00032000 08:06 28698 /home/test/magick/libpng/lib/libpng12.so.0.42.0
2af595e33000-2af595e39000 r-xp 00000000 08:06 29041 /home/test/magick/imagick/lib/ImageMagick-6.7.8/modules-Q16/coders/gif.so
2af595e39000-2af595f38000 ---p 00006000 08:06 29041 /home/test/magick/imagick/lib/ImageMagick-6.7.8/modules-Q16/coders/gif.so
2af595f38000-2af595f39000 rw-p 00005000 08:06 29041 /home/test/magick/imagick/lib/ImageMagick-6.7.8/modules-Q16/coders/gif.so
2af595f85000-2af595f8c000 r-xp 00000000 08:06 29003 /home/test/magick/imagick/lib/ImageMagick-6.7.8/modules-Q16/coders/bmp.so
2af595f8c000-2af59608b000 ---p 00007000 08:06 29003 /home/test/magick/imagick/lib/ImageMagick-6.7.8/modules-Q16/coders/bmp.so
2af59608b000-2af59608c000 rw-p 00006000 08:06 29003 /home/test/magick/imagick/lib/ImageMagick-6.7.8/modules-Q16/coders/bmp.so
2af59608c000-2af596130000 rw-p 2af59608c000 00:00 0
2af596200000-2af596221000 rw-p 2af596200000 00:00 0
2af596221000-2af596300000 ---p 2af596221000 00:00 0
2af596300000-2af59630d000 r-xp 00000000 08:02 14783 /lib64/libgcc_s.so.1
2af59630d000-2af59640c000 ---p 0000d000 08:02 14783 /lib64/libgcc_s.so.1
2af59640c000-2af59640d000 rw-p 0000c000 08:02 14783 /lib64/libgcc_s.so.1
7fff1718b000-7fff171af000 rw-p 7fff1718b000 00:00 0 [stack]
ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0 [vdso]
So can anyone help me to get ride of the problem ? Thank you so much