quanta
2011-02-24 15:42:42 UTC
Hi,
I'm running ImageMagick 6.2.8.0-4 on CentOS 5.4.
PHP 5.3.2
Apache 2.2.3
Today, I got segfault error in the Apache logs:
Feb 24 13:35:21 SVR015-04 kernel: php[24679]: segfault at 0000000000000000 rip 0000003776ab45da rsp 00007fffc7266e40 error 6
Try to debug Apache with gdb, I got the following backtrace:
#0 0x00002af8f874a5da in AppendImages () from /usr/lib64/libMagick.so.10
#1 0x00002af8f84586ce in MagickAppendImages () from
/usr/lib64/libWand.so.10
#2 0x00002af8f81a3ad8 in zim_imagick_appendimages (ht=<value optimized
out>, return_value=0x2af8f9ded108,
return_value_ptr=<value optimized out>, this_ptr=<value optimized
out>, return_value_used=<value optimized out>)
at /var/tmp/imagick/imagick_class.c:8790
#3 0x00002af8f03fef29 in ?? () from /etc/httpd/modules/libphp5.so
#4 0x00002af8f03d544b in execute () from /etc/httpd/modules/libphp5.so
#5 0x00002af8f03b1ba5 in zend_execute_scripts () from
/etc/httpd/modules/libphp5.so
#6 0x00002af8f0362cc8 in php_execute_script () from
/etc/httpd/modules/libphp5.so
#7 0x00002af8f0439c2d in ?? () from /etc/httpd/modules/libphp5.so
#8 0x00002af8e8374a4a in ap_run_handler () from /usr/sbin/httpd
#9 0x00002af8e8377ec2 in ap_invoke_handler () from /usr/sbin/httpd
#10 0x00002af8e8382918 in ap_process_request () from /usr/sbin/httpd
#11 0x00002af8e837fb50 in ?? () from /usr/sbin/httpd
I also try to upgrade to lastest version of ImageMagick (install from binary):
# rpm -qa | grep ImageMagick
ImageMagick-devel-6.6.7-9
ImageMagick-6.6.7-9
but I got the below error when checking imagick extension (version 3.0.1) for PHP:
# php -m | grep imagick
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/imagick.so' - libMagick.so.10: cannot open shared object file: No such file or directory in Unknown on line 0
Making a symlink and it was loaded, but gdb still through a backtrace related to libMagick.so.10:
#0 0x00002b26ec86cb5a in ?? () from /usr/lib64/libMagick.so.10
#1 0x00002b26ed8b8f52 in ?? () from /usr/lib64/libgomp.so.1
#2 0x00002b26de01f4a7 in start_thread () from /lib64/libpthread.so.0
#3 0x00002b26de50cc2d in clone () from /lib64/libc.so.6
Any help will be appreciated.
I'm running ImageMagick 6.2.8.0-4 on CentOS 5.4.
PHP 5.3.2
Apache 2.2.3
Today, I got segfault error in the Apache logs:
Feb 24 13:35:21 SVR015-04 kernel: php[24679]: segfault at 0000000000000000 rip 0000003776ab45da rsp 00007fffc7266e40 error 6
Try to debug Apache with gdb, I got the following backtrace:
#0 0x00002af8f874a5da in AppendImages () from /usr/lib64/libMagick.so.10
#1 0x00002af8f84586ce in MagickAppendImages () from
/usr/lib64/libWand.so.10
#2 0x00002af8f81a3ad8 in zim_imagick_appendimages (ht=<value optimized
out>, return_value=0x2af8f9ded108,
return_value_ptr=<value optimized out>, this_ptr=<value optimized
out>, return_value_used=<value optimized out>)
at /var/tmp/imagick/imagick_class.c:8790
#3 0x00002af8f03fef29 in ?? () from /etc/httpd/modules/libphp5.so
#4 0x00002af8f03d544b in execute () from /etc/httpd/modules/libphp5.so
#5 0x00002af8f03b1ba5 in zend_execute_scripts () from
/etc/httpd/modules/libphp5.so
#6 0x00002af8f0362cc8 in php_execute_script () from
/etc/httpd/modules/libphp5.so
#7 0x00002af8f0439c2d in ?? () from /etc/httpd/modules/libphp5.so
#8 0x00002af8e8374a4a in ap_run_handler () from /usr/sbin/httpd
#9 0x00002af8e8377ec2 in ap_invoke_handler () from /usr/sbin/httpd
#10 0x00002af8e8382918 in ap_process_request () from /usr/sbin/httpd
#11 0x00002af8e837fb50 in ?? () from /usr/sbin/httpd
I also try to upgrade to lastest version of ImageMagick (install from binary):
# rpm -qa | grep ImageMagick
ImageMagick-devel-6.6.7-9
ImageMagick-6.6.7-9
but I got the below error when checking imagick extension (version 3.0.1) for PHP:
# php -m | grep imagick
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/imagick.so' - libMagick.so.10: cannot open shared object file: No such file or directory in Unknown on line 0
Making a symlink and it was loaded, but gdb still through a backtrace related to libMagick.so.10:
#0 0x00002b26ec86cb5a in ?? () from /usr/lib64/libMagick.so.10
#1 0x00002b26ed8b8f52 in ?? () from /usr/lib64/libgomp.so.1
#2 0x00002b26de01f4a7 in start_thread () from /lib64/libpthread.so.0
#3 0x00002b26de50cc2d in clone () from /lib64/libc.so.6
Any help will be appreciated.