php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59485 41
Submitted: 2010-10-28 21:17 UTC Modified: 2013-02-18 00:35 UTC
From: rmir at mail dot ru Assigned:
Status: No Feedback Package: imagick (PECL)
PHP Version: 5.3.2 OS: FreeBSD 7.3-RELEASE-p2
Private report: No CVE-ID: None
 [2010-10-28 21:17 UTC] rmir at mail dot ru
Description:
------------
phpinfo()
PHP Version => 5.3.3

System => FreeBSD xxx.xxx.ru 7.3-RELEASE-p2 FreeBSD 7.3-RELEASE-p2 #2: Tue Sep 14 19:54:45 NOVST 2010     root@server.erabota.ru:/usr/obj/usr/src/sys/SERVER i386
Build Date => Oct  7 2010 12:33:01
Configure Command =>  './configure'  '--with-layout=GNU' '--localstatedir=/var' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local' '--with-pcre-regex=/usr/local' '--with-zlib-dir=/usr' '--program-prefix=' '--with-apxs2=/usr/local/sbin/apxs' '--with-regex=php' '--with-zend-vm=CALL' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=i386-portbld-freebsd7.3'

[root@micro /usr/local/etc]# php -m
[PHP Modules]
bz2
Core
ctype
curl
date
dom
eAccelerator
ereg
filter
ftp
gd
gettext
hash
iconv
imagick
json
libxml
memcache
mhash
mysql
mysqlnd
pcre
PDO
posix
Reflection
session
SimpleXML
SPL
SQLite
standard
tokenizer
xml
xmlreader
xmlwriter
zip
zlib

[Zend Modules]
eAccelerator

Segmentation fault: 11 (core dumped)

[root@micro /usr/local/etc]# pkg_info | grep imagic
pecl-imagick-3.0.1.r2 Provides a wrapper to the ImageMagick/GraphicsMagick librar



Reproduce code:
---------------
<?
phpinfo();
print $_SERVER["REMOTE_ADDR"];

?>


Expected result:
----------------
................


If you did not receive a copy of the PHP license, or have any
questions about PHP licensing, please contact license@php.net.
Segmentation fault: 11 (core dumped)

If i turn off "extension=imagick.so" from extensions.ini, this problem is gone. Sorry for bad english


Actual result:
--------------
[root@micro /home/www]# gdb /usr/local/bin/php 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 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypt.so.4
Reading symbols from /lib/libz.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.4
Reading symbols from /usr/local/lib/libpcre.so.0...(no debugging symbols found).                                              ..done.
Loaded symbols for /usr/local/lib/libpcre.so.0
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/20090626/eaccelerator.so...(no debugging                                               symbols found)...done.
Loaded symbols for /usr/local/lib/php/20090626/eaccelerator.so
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x295ea8ef in ?? ()
(gdb)
(gdb) bt
#0  0x295ea8ef in ?? ()
#1  0x2863f45a in pthread_mutex_destroy () from /lib/libc.so.7
#2  0x283e84ae in xmlFreeMutex () from /usr/local/lib/libxml2.so.5
#3  0x283e7dfc in xmlCleanupGlobals () from /usr/local/lib/libxml2.so.5
#4  0x2837e07a in xmlCleanupParser () from /usr/local/lib/libxml2.so.5
#5  0x08091ed5 in php_libxml_shutdown ()
#6  0x08091ef8 in zm_shutdown_libxml ()
#7  0x081922d6 in module_destructor ()
#8  0x08198d3a in zend_hash_apply_deleter ()
#9  0x08198f59 in zend_hash_graceful_reverse_destroy ()
#10 0x0818dfe8 in zend_shutdown ()
#11 0x0813e0c6 in php_module_shutdown ()
#12 0x0820a1d1 in main ()
#13 0x28705080 in ?? ()
#14 0x00000007 in ?? ()
#15 0x082ab020 in HARDCODED_INI ()
#16 0x082c2aa0 in zend_user_opcode_handlers ()
#17 0x082af640 in zend_user_opcodes ()
#18 0x00000000 in ?? ()
#19 0x00000002 in ?? ()
#20 0x00000000 in ?? ()
#21 0x00000000 in ?? ()
#22 0x00000000 in ?? ()
#23 0x282cf978 in ?? () from /libexec/ld-elf.so.1
#24 0x2857903c in ?? () from /lib/libc.so.7
#25 0x00000001 in ?? ()
#26 0xbf7fec40 in ?? ()
#27 0x00000002 in ?? ()
#28 0x00000001 in ?? ()
#29 0x00000000 in ?? ()
#30 0x00000001 in ?? ()
#31 0x00000000 in ?? ()
#32 0xbf7fed78 in ?? ()
#33 0x00000000 in ?? ()
#34 0x00000000 in ?? ()
#35 0x00000000 in ?? ()
#36 0x00000000 in ?? ()
#37 0x00000000 in ?? ()
#38 0x0000006e in ?? ()
#39 0x00000000 in ?? ()
#40 0x068acf04 in ?? ()
#41 0x0805140a in ?? ()
#42 0x2857648c in ?? () from /lib/libc.so.7
#43 0x282dbe00 in ?? ()
#44 0x282d4134 in ?? () from /libexec/ld-elf.so.1
#45 0x282de120 in ?? ()
#46 0x00000000 in ?? ()
#47 0xbf7feb58 in ?? ()
#48 0x282af985 in _rtld_error () from /libexec/ld-elf.so.1
#49 0x0805a971 in _start1 ()
#50 0x0805a8e5 in _start ()
#51 0x282b197a in dlclose () from /libexec/ld-elf.so.1
#52 0x00000002 in ?? ()


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-18 06:54 UTC] mkoppanen@php.net
Looks like this is somehow related to shutdown of XML extension. Can you try compiling ImageMagick without XML support to see if that cures the issue?
 [2013-02-18 00:35 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 01 20:01:29 2024 UTC