View Single Post
  #1   (View Single Post)  
Old 22nd May 2008
mtx's Avatar
mtx mtx is offline
Real Name: Valentin Bud
Fdisk Soldier
 
Join Date: May 2008
Location: RO/TM
Posts: 79
Default php cli and imagick extension

hello community.
I have installed today imagick extension from http://pecl.php.net/package/imagick/
following the procedure i have found in the INSTALL file from the package
Code:
# phpize && ./configure && make && make install
installation worked like a charm. The problem I have is with scripts run from cron which are written in php. http works just fine (even the imagick extension).
they output
Code:
Bad system call (core dumped)
here is the coredump
Code:
# gdb php /var/log/php.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or 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.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `php'.
Program terminated with signal 12, Bad system call.
Reading symbols from /lib/libcrypt.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypt.so.4
Reading symbols from /usr/local/lib/libpng.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libpng.so.5
Reading symbols from /lib/libz.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.4
Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/local/lib/libxml2.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libxml2.so.5
Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/local/lib/php/20060613/libpdf_php.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/libpdf_php.so
Reading symbols from /usr/local/lib/libm.so.4...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libm.so.4
Reading symbols from /usr/local/lib/php/20060613/session.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/session.so
Reading symbols from /usr/local/lib/php/20060613/mysql.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/mysql.so
Reading symbols from /usr/local/lib/mysql/libmysqlclient.so.15...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/mysql/libmysqlclient.so.15
Reading symbols from /usr/local/lib/php/20060613/mcrypt.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/mcrypt.so
Reading symbols from /usr/local/lib/libmcrypt.so.8...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libmcrypt.so.8
Reading symbols from /usr/local/lib/libltdl.so.4...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libltdl.so.4
Reading symbols from /usr/local/lib/php/20060613/openssl.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/openssl.so
Reading symbols from /usr/local/lib/libssl.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libssl.so.5
Reading symbols from /usr/local/lib/libcrypto.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libcrypto.so.5
Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /usr/local/lib/php/20060613/gettext.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/gettext.so
Reading symbols from /usr/local/lib/libintl.so.8...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libintl.so.8
Reading symbols from /usr/local/lib/php/20060613/imap.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/imap.so
Reading symbols from /usr/local/lib/libc-client4.so.9...done.
Loaded symbols for /usr/local/lib/libc-client4.so.9
Reading symbols from /usr/lib/libpam.so.4...done.
Loaded symbols for /usr/lib/libpam.so.4
Reading symbols from /usr/local/lib/php/20060613/pcre.so...done.
Loaded symbols for /usr/local/lib/php/20060613/pcre.so
Reading symbols from /usr/local/lib/php/20060613/simplexml.so...done.
Loaded symbols for /usr/local/lib/php/20060613/simplexml.so
Reading symbols from /usr/local/lib/php/20060613/spl.so...done.
Loaded symbols for /usr/local/lib/php/20060613/spl.so
Reading symbols from /usr/local/lib/php/20060613/mbstring.so...done.
Loaded symbols for /usr/local/lib/php/20060613/mbstring.so
Reading symbols from /usr/local/lib/php/20060613/mysqli.so...done.
Loaded symbols for /usr/local/lib/php/20060613/mysqli.so
Reading symbols from /usr/local/lib/php/20060613/imagick.so...done.
Loaded symbols for /usr/local/lib/php/20060613/imagick.so
Reading symbols from /usr/local/lib/libMagickWand.so.1...done.
Loaded symbols for /usr/local/lib/libMagickWand.so.1
Reading symbols from /usr/local/lib/libMagickCore.so.1...done.
Loaded symbols for /usr/local/lib/libMagickCore.so.1
Reading symbols from /usr/local/lib/libjbig.so.1...done.
Loaded symbols for /usr/local/lib/libjbig.so.1
Reading symbols from /usr/local/lib/liblcms.so.1...done.
Loaded symbols for /usr/local/lib/liblcms.so.1
Reading symbols from /usr/local/lib/libtiff.so.4...done.
Loaded symbols for /usr/local/lib/libtiff.so.4
Reading symbols from /usr/local/lib/libjasper.so.4...done.
Loaded symbols for /usr/local/lib/libjasper.so.4
Reading symbols from /usr/local/lib/libjpeg.so.9...done.
Loaded symbols for /usr/local/lib/libjpeg.so.9
Reading symbols from /usr/local/lib/libfontconfig.so.1...done.
Loaded symbols for /usr/local/lib/libfontconfig.so.1
Reading symbols from /usr/local/lib/libexpat.so.6...done.
Loaded symbols for /usr/local/lib/libexpat.so.6
Reading symbols from /usr/lib/libbz2.so.3...done.
Loaded symbols for /usr/lib/libbz2.so.3
Reading symbols from /usr/lib/libgomp.so.1...done.
Loaded symbols for /usr/lib/libgomp.so.1
Reading symbols from /usr/local/lib/libfreetype.so.9...done.
Loaded symbols for /usr/local/lib/libfreetype.so.9
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x28589f63 in ksem_init () from /lib/libc.so.7
[New Thread 0x28759300 (LWP 100257)]
Information about the system
Code:
# uname -a
FreeBSD seth 7.0-RELEASE FreeBSD 7.0-RELEASE #3: Thu Apr  3 14:20:12 EEST 2008     root@seth:/usr/obj/usr/src/sys/SETH  i386

# php -v
PHP 5.2.6 with Suhosin-Patch 0.9.6.2 (cli) (built: May 22 2008 12:31:58)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

# pkg_info | grep ImageMagick
ImageMagick-nox11-6.4.1.3 Image processing tools
If i comment the
Code:
#extension=imagick.so
from /usr/local/etc/php/extensions.ini everything works like it should.
the version of imagick is 2.1.1
If i must provide any additional info i'll be glad to.

all the best,
v
__________________
Stop! think! ... the problem is somewhere between the monitor and chair...
"First they ignore you, then they laugh at you, then they fight you, then you win." Gandhi
links: spreadbsd syk

Last edited by mtx; 22nd May 2008 at 10:52 AM. Reason: typo
Reply With Quote