php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59539 Segmentation fault (core dumped)
Submitted: 2010-12-16 05:12 UTC Modified: 2013-02-18 00:35 UTC
Votes:5
Avg. Score:4.4 ± 0.8
Reproduced:4 of 4 (100.0%)
Same Version:1 (25.0%)
Same OS:1 (25.0%)
From: cdfiles at rambler dot ru Assigned:
Status: No Feedback Package: imagick (PECL)
PHP Version: 5.2.14 OS: FREEBSD 7.3-PRERELEASE
Private report: No CVE-ID: None
 [2010-12-16 05:12 UTC] cdfiles at rambler dot ru
Description:
------------
Hi. If enable module 'imagick' in /usr/local/etc/php/extensions.ini i have problem:
# php -v
PHP 5.2.14 with Suhosin-Patch 0.9.7 (cli) (built: Nov 28 2010 18:24:22) (DEBUG)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
Segmentation fault (core dumped)

 kernel: pid 85003 (php), uid 107: exited on signal 11

If disable module - no  problem.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-16 08:35 UTC] cdfiles at rambler dot ru
#cat /usr/local/etc/php/extensions.ini

zend_extension=eaccelerator.so
extension=fileinfo.so
extension=pdf.so
extension=gd.so
extension=ftp.so
extension=json.so
extension=mcrypt.so
extension=mbstring.so
extension=mysql.so
extension=pcre.so
extension=session.so
extension=snmp.so
extension=sockets.so
extension=xml.so
xtension=xmlreader.so
extension=xmlwriter.so
extension=zlib.so
extension=dom.so
extension=simplexml.so
extension=bz2.so
extension=zip.so
extension=openssl.so
extension=ctype.so
extension=filter.so
extension=xmlrpc.so
extension=iconv.so
extension=spl.so
extension=mysqli.so
extension=xsl.so
extension=imagick.so
extension=pspell.so
 [2010-12-17 17:43 UTC] cdfiles at rambler dot ru
# php -m
[PHP Modules]
bz2
ctype
date
dom
fileinfo
filter
ftp
gd
iconv
imagick
json
libxml
mbstring
mcrypt
mysql
mysqli
openssl
pcre
pdf
pspell
Reflection
session
SimpleXML
snmp
sockets
SPL
standard
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

[Zend Modules]

Segmentation fault (core dumped)
 [2010-12-20 19:32 UTC] bender666 at akado dot ru
Disable imagick

comment line in /usr/local/etc/php/extensions.ini
#extension=imagick.so
 [2010-12-21 05:03 UTC] mkoppanen@php.net
Hello,

if it dumps core is it possible for you to produce a backtrace? Also, what OS is this? Which imagemagick version?
 [2010-12-21 05:36 UTC] cdfiles at rambler dot ru
# uname -a
FreeBSD Alphasca 7.3-PRERELEASE FreeBSD 7.3-PRERELEASE #0: Wed Feb 17 14:42:53 EET 2010     YaTv@Alphasca:/usr/obj/usr/src/sys/SUPER-SERVER  i386

# pkg_info | grep agic
ImageMagick-nox11-6.6.5.10 Image processing tools
pecl-imagick-3.0.1  Provides a wrapper to the ImageMagick/GraphicsMagick librar

Module imagits off is impossible, as it is used in the scripts of sites running on the server. (Модуль imagick отключать нельзя, так как он используется в скриптах сайтов работающих на сервере.)

# 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"...

warning: exec file is newer than core file.
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
#0  0x29ad6390 in ?? ()
(gdb) bt
#0  0x29ad6390 in ?? ()
#1  0x28629f24 in ?? ()
#2  0x2876c61c in ?? ()
#3  0x28443620 in ?? ()
#4  0xbfbfe968 in ?? ()
#5  0x283b6fb8 in ?? ()
#6  0x2876c61c in ?? ()
#7  0x294bb204 in ?? ()
#8  0xbfbfe988 in ?? ()
#9  0x294a25cd in ?? ()
#10 0x2876c61c in ?? ()
#11 0x29470140 in ?? ()
#12 0x29473249 in ?? ()
#13 0x29473236 in ?? ()
#14 0x29474ce0 in ?? ()
#15 0x00000002 in ?? ()
#16 0xbfbfe9a8 in ?? ()
#17 0x2947016a in ?? ()
#18 0x29473249 in ?? ()
#19 0x29473236 in ?? ()
#20 0xbfbfe9c8 in ?? ()
#21 0x081ac995 in zend_hash_add_destructor (pDestructor=0x2876c61c) at /usr/ports/lang/php52/work/php-5.2.15/Zend/zend_hash.c:249
Previous frame inner to this frame (corrupt stack?)
 [2010-12-21 06:12 UTC] cdfiles at rambler dot ru
# gdb /usr/local/bin/php
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"...
(gdb) run -m
Starting program: /usr/local/bin/php -m
[New LWP 100104]
[New Thread 0x28781040 (LWP 100104)]
PHP Warning:  Module 'xmlreader' already loaded in Unknown on line 0
[PHP Modules]
bz2
ctype
date
dom
fileinfo
filter
ftp
gd
iconv
imagick
json
libxml
mbstring
mcrypt
mysql
mysqli
openssl
pcre
pdf
pspell
Reflection
session
SimpleXML
snmp
sockets
SPL
standard
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

[Zend Modules]

[New LWP 100104]
suspend error: generic error
[Switching to LWP 100104]
Stopped due to shared library event
 [2010-12-21 06:18 UTC] cdfiles at rambler dot ru
PHP Warning:  Module 'xmlreader' already loaded in Unknown on line 0

Already fixed. The file /usr/local/etc/php/extensions.ini were two lines: "extension = xmlreader.so"
one of them removed.
 [2010-12-21 06:20 UTC] mkoppanen@php.net
I think I've seen this before with ImageMagick compiled from FreeBSD ports. Can you compile a newer version of ImageMagick --disable-openmp and see if the problem persists?
 [2010-12-21 06:20 UTC] cdfiles at rambler dot ru
# gdb /usr/local/bin/php
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"...
(gdb) run -m
Starting program: /usr/local/bin/php -m
[New LWP 100118]
[New Thread 0x28781040 (LWP 100118)]
[PHP Modules]
bz2
ctype
date
dom
fileinfo
filter
ftp
gd
iconv
imagick
json
libxml
mbstring
mcrypt
mysql
mysqli
openssl
pcre
pdf
pspell
Reflection
session
SimpleXML
snmp
sockets
SPL
standard
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

[Zend Modules]

[New LWP 100118]
suspend error: generic error
[Switching to LWP 100118]
Stopped due to shared library event
(gdb) bt
#0  0x282b4ef0 in r_debug_state () from /libexec/ld-elf.so.1
#1  0x282b8d0b in dlclose () from /libexec/ld-elf.so.1
#2  0x081a8d7f in module_destructor (module=0x287721c0) at /usr/ports/lang/php52/work/php-5.2.15/Zend/zend_API.c:1946
#3  0x081ae87d in zend_hash_apply_deleter (ht=0x82cb5e0, p=0x28790dc0) at /usr/ports/lang/php52/work/php-5.2.15/Zend/zend_hash.c:805
#4  0x081aea0e in zend_hash_graceful_reverse_destroy (ht=0x82cb5e0) at /usr/ports/lang/php52/work/php-5.2.15/Zend/zend_hash.c:840
#5  0x081a13ee in zend_shutdown () at /usr/ports/lang/php52/work/php-5.2.15/Zend/zend.c:814
#6  0x0814b23f in php_module_shutdown () at /usr/ports/lang/php52/work/php-5.2.15/main/main.c:1936
#7  0x0822437b in main (argc=2, argv=0xbfbfec44) at /usr/ports/lang/php52/work/php-5.2.15/sapi/cli/php_cli.c:1366
 [2010-12-21 09:28 UTC] cdfiles at rambler dot ru
ImageMagick compiled with disabled openmp, but the problem is not solved. The same error.
 [2010-12-21 10:50 UTC] cdfiles at rambler dot ru
Compiled and reinstalled ImageMagick with disabled "OpenEXR support (needs threads)" and disabled "OpenMP for SMP (needs threads)", but the problem is not solved. The same error:

# Gdb / usr / local / bin / php
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" ...
(gdb) run-m
Starting program: / usr / local / bin / php-m
[New LWP 100171]
[New Thread 0x28781040 (LWP 100171)]
[PHP Modules]
bz2
ctype
date
dom
fileinfo
filter
ftp
gd
iconv
imagick
json
libxml
mbstring
mcrypt
mysql
mysqli
openssl
pcre
pdf
pspell
Reflection
session
SimpleXML
snmp
sockets
SPL
standard
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

[Zend Modules]

[New LWP 100171]
suspend error: generic error
[Switching to LWP 100171]
Stopped due to shared library event
(gdb) bt
# 0 0x282b4ef0 in r_debug_state () from / libexec/ld-elf.so.1
# 1 0x282b8d0b in dlclose () from / libexec/ld-elf.so.1
# 2 0x081a8d7f in module_destructor (module = 0x287721c0) at / usr/ports/lang/php52/work/php-5.2.15/Zend/zend_API.c: 1946
# 3 0x081ae87d in zend_hash_apply_deleter (ht = 0x82cb5e0, p = 0x28790dc0) at / usr/ports/lang/php52/work/php-5.2.15/Zend/zend_hash.c: 805
# 4 0x081aea0e in zend_hash_graceful_reverse_destroy (ht = 0x82cb5e0) at / usr/ports/lang/php52/work/php-5.2.15/Zend/zend_hash.c: 840
# 5 0x081a13ee in zend_shutdown () at / usr/ports/lang/php52/work/php-5.2.15/Zend/zend.c: 814
# 6 0x0814b23f in php_module_shutdown () at / usr/ports/lang/php52/work/php-5.2.15/main/main.c: 1936
# 7 0x0822437b in main (argc = 2, argv = 0xbfbfec44) at / usr/ports/lang/php52/work/php-5.2.15/sapi/cli/php_cli.c: 1366
 [2010-12-21 10:53 UTC] cdfiles at rambler dot ru
During the compilation and installation slipped the following errors (warning):

# cat tmp | grep warning
checking CFLAGS for maximum warnings... -Wall
./wand/mogrify-private.h:126: warning: 'respect_parenthesis' defined but not used
wand/deprecate.c:1169: warning: 'ColorFloodfillImage' is deprecated (declared at ./magick/deprecate.h:174)
wand/deprecate.c:1239: warning: 'FlattenImages' is deprecated (declared at ./magick/deprecate.h:129)
wand/deprecate.c:1563: warning: 'MapImage' is deprecated (declared at ./magick/deprecate.h:193)
wand/deprecate.c:1635: warning: 'MatteFloodfillImage' is deprecated (declared at ./magick/deprecate.h:197)
wand/deprecate.c:1759: warning: 'MosaicImages' is deprecated (declared at ./magick/deprecate.h:132)
wand/deprecate.c:1805: warning: 'MagickPaintOpaqueImage' is deprecated (declared at ./wand/deprecate.h:97)
wand/deprecate.c:1906: warning: 'MagickPaintOpaqueImageChannel' is deprecated (declared at ./wand/deprecate.h:100)
wand/deprecate.c:2011: warning: 'RecolorImage' is deprecated (declared at ./magick/deprecate.h:135)
wand/deprecate.c:2167: warning: 'MagickPaintTransparentImage' is deprecated (declared at wand/deprecate.c:1960)
./wand/mogrify-private.h:126: warning: 'respect_parenthesis' defined but not used
./wand/mogrify-private.h:126: warning: 'respect_parenthesis' defined but not used
coders/fpx.c:373: warning: implicit declaration of function 'AcquireImageColormap'
coders/png.c:1339: warning: 'jmpbuf' is deprecated (declared at /usr/local/include/png.h:1119)
/usr/bin/ld: warning: libicui18n.so.38, needed by /usr/local/lib/liblqr-1.so, may conflict with libicui18n.so.46
/usr/bin/ld: warning: libicui18n.so.38, needed by /usr/local/lib/liblqr-1.so, may conflict with libicui18n.so.46
/usr/bin/ld: warning: libicui18n.so.38, needed by /usr/local/lib/liblqr-1.so, may conflict with libicui18n.so.46
/usr/bin/ld: warning: libicui18n.so.38, needed by /usr/local/lib/liblqr-1.so, may conflict with libicui18n.so.46
/usr/bin/ld: warning: libicui18n.so.38, needed by /usr/local/lib/liblqr-1.so, may conflict with libicui18n.so.46
/usr/bin/ld: warning: libicui18n.so.38, needed by /usr/local/lib/liblqr-1.so, may conflict with libicui18n.so.46
/usr/bin/ld: warning: libicui18n.so.38, needed by /usr/local/lib/liblqr-1.so, may conflict with libicui18n.so.46
/usr/bin/ld: warning: libicui18n.so.38, needed by /usr/local/lib/liblqr-1.so, may conflict with libicui18n.so.46
/usr/bin/ld: warning: libicui18n.so.38, needed by /usr/local/lib/liblqr-1.so, may conflict with libicui18n.so.46
/usr/bin/ld: warning: libicui18n.so.38, needed by /usr/local/lib/liblqr-1.so, may conflict with libicui18n.so.46
/usr/bin/ld: warning: libicui18n.so.38, needed by /usr/local/lib/liblqr-1.so, may conflict with libicui18n.so.46
libtool: install: warning: relinking `wand/libMagickWand.la'
libtool: install: warning: relinking `Magick++/lib/libMagick++.la'
Magick.xs:898: warning: cast to pointer from integer of different size
Magick.xs:984: warning: cast to pointer from integer of different size
Magick.xs:987: warning: cast from pointer to integer of different size
Magick.c:2483: warning: unused variable 'ref'
Magick.c:2477: warning: unused variable 'ix'
Magick.xs:2577: warning: cast from pointer to integer of different size
Magick.c:2563: warning: unused variable 'ref'
Magick.c:2557: warning: unused variable 'ix'
Magick.xs:2668: warning: cast from pointer to integer of different size
Magick.c:2701: warning: unused variable 'ref'
Magick.c:2695: warning: unused variable 'ix'
Magick.xs:2814: warning: cast from pointer to integer of different size
Magick.c:2799: warning: unused variable 'ref'
Magick.c:2793: warning: unused variable 'ix'
Magick.xs:2922: warning: cast from pointer to integer of different size
Magick.c:2955: warning: unused variable 'ref'
Magick.c:2949: warning: unused variable 'ix'
Magick.c:3044: warning: unused variable 'ref'
Magick.xs:3041: warning: cast from pointer to integer of different size
Magick.c:3081: warning: unused variable 'ref'
Magick.c:3075: warning: unused variable 'ix'
Magick.xs:3237: warning: cast from pointer to integer of different size
Magick.c:3171: warning: unused variable 'ref'
Magick.c:3165: warning: unused variable 'ix'
Magick.xs:3371: warning: cast from pointer to integer of different size
Magick.c:3369: warning: unused variable 'ref'
Magick.c:3363: warning: unused variable 'ix'
Magick.xs:3446: warning: cast to pointer from integer of different size
Magick.xs:3449: warning: value computed is not used
Magick.xs:3460: warning: cast to pointer from integer of different size
Magick.c:3504: warning: unused variable 'ref'
Magick.c:3590: warning: unused variable 'ref'
Magick.c:3584: warning: unused variable 'ix'
Magick.xs:3679: warning: cast from pointer to integer of different size
Magick.c:3670: warning: unused variable 'ref'
Magick.c:3664: warning: unused variable 'ix'
Magick.c:3828: warning: unused variable 'ref'
Magick.c:3822: warning: unused variable 'ix'
Magick.xs:3994: warning: cast from pointer to integer of different size
Magick.c:4010: warning: unused variable 'ref'
Magick.c:4004: warning: unused variable 'ix'
Magick.xs:4156: warning: cast from pointer to integer of different size
Magick.c:4147: warning: unused variable 'ref'
Magick.c:4141: warning: unused variable 'ix'
Magick.xs:4417: warning: cast from pointer to integer of different size
Magick.xs:4436: warning: cast from pointer to integer of different size
Magick.c:4306: warning: unused variable 'ref'
Magick.c:4300: warning: unused variable 'ix'
Magick.c:5601: warning: unused variable 'ref'
Magick.c:5597: warning: unused variable 'ix'
Magick.c:5754: warning: unused variable 'ref'
Magick.c:5750: warning: unused variable 'ix'
Magick.c:5907: warning: unused variable 'ref'
Magick.c:5903: warning: unused variable 'ix'
Magick.c:5977: warning: unused variable 'ref'
Magick.c:5973: warning: unused variable 'ix'
Magick.c:6049: warning: unused variable 'ref'
Magick.c:6043: warning: unused variable 'ix'
Magick.c:6170: warning: unused variable 'ref'
Magick.c:6164: warning: unused variable 'ix'
Magick.c:6376: warning: unused variable 'ref'
Magick.c:6370: warning: unused variable 'ix'
Magick.c:6625: warning: unused variable 'ref'
Magick.c:6619: warning: unused variable 'ix'
Magick.xs:6894: warning: cast from pointer to integer of different size
Magick.c:6730: warning: unused variable 'ref'
Magick.c:6724: warning: unused variable 'ix'
Magick.c:7053: warning: unused variable 'ref'
Magick.c:7049: warning: unused variable 'ix'
Magick.xs:10580: warning: cast from pointer to integer of different size
Magick.c:7087: warning: unused variable 'ref'
Magick.xs:10987: warning: cast from pointer to integer of different size
Magick.c:10478: warning: unused variable 'ref'
Magick.c:10472: warning: unused variable 'ix'
Magick.xs:11116: warning: cast from pointer to integer of different size
Magick.c:10888: warning: unused variable 'ref'
Magick.c:10882: warning: unused variable 'ix'
Magick.xs:11202: warning: cast from pointer to integer of different size
Magick.c:11019: warning: unused variable 'ref'
Magick.c:11013: warning: unused variable 'ix'
Magick.c:11109: warning: unused variable 'ref'
Magick.c:11103: warning: unused variable 'ix'
Magick.xs:11513: warning: cast from pointer to integer of different size
Magick.c:11322: warning: unused variable 'ref'
Magick.c:11316: warning: unused variable 'ix'
Magick.c:11422: warning: unused variable 'ref'
Magick.c:11416: warning: unused variable 'ix'
Magick.c:11504: warning: unused variable 'ref'
Magick.c:11498: warning: unused variable 'ix'
Magick.c:11580: warning: unused variable 'ref'
Magick.c:11574: warning: unused variable 'ix'
Magick.c:11702: warning: unused variable 'ref'
Magick.c:11696: warning: unused variable 'ix'
Magick.c:12115: warning: unused variable 'ref'
Magick.c:12109: warning: unused variable 'ix'
Magick.c:12490: warning: unused variable 'ref'
Magick.c:12484: warning: unused variable 'ix'
Magick.c:12584: warning: unused variable 'ref'
Magick.xs:12723: warning: label 'PerlException' defined but not used
Magick.c:12578: warning: unused variable 'ix'
Magick.xs:12912: warning: cast from pointer to integer of different size
Magick.c:12647: warning: unused variable 'ref'
Magick.c:12641: warning: unused variable 'ix'
Magick.c:12868: warning: unused variable 'ref'
Magick.c:12862: warning: unused variable 'ix'
Magick.c:12921: warning: unused variable 'ref'
Magick.c:12915: warning: unused variable 'ix'
Magick.c:12985: warning: unused variable 'ref'
Magick.c:12979: warning: unused variable 'ix'
Magick.c:13228: warning: unused variable 'ref'
Magick.c:13222: warning: unused variable 'ix'
Magick.c:13354: warning: unused variable 'ref'
Magick.c:13350: warning: unused variable 'ix'
Magick.xs:13642: warning: cast from pointer to integer of different size
Magick.c:13422: warning: unused variable 'ref'
Magick.c:13416: warning: unused variable 'ix'
Magick.c:13590: warning: unused variable 'ref'
Magick.c:13584: warning: unused variable 'ix'
libtool: install: warning: relinking `coders/art.la'
libtool: install: warning: relinking `coders/avs.la'
libtool: install: warning: relinking `coders/bgr.la'
libtool: install: warning: relinking `coders/bmp.la'
libtool: install: warning: relinking `coders/braille.la'
libtool: install: warning: relinking `coders/cals.la'
libtool: install: warning: relinking `coders/caption.la'
libtool: install: warning: relinking `coders/cin.la'
libtool: install: warning: relinking `coders/cip.la'
libtool: install: warning: relinking `coders/clip.la'
libtool: install: warning: relinking `coders/cmyk.la'
libtool: install: warning: relinking `coders/cut.la'
libtool: install: warning: relinking `coders/dcm.la'
libtool: install: warning: relinking `coders/dds.la'
libtool: install: warning: relinking `coders/debug.la'
libtool: install: warning: relinking `coders/dib.la'
libtool: install: warning: relinking `coders/dng.la'
libtool: install: warning: relinking `coders/dot.la'
libtool: install: warning: relinking `coders/dpx.la'
libtool: install: warning: relinking `coders/fax.la'
libtool: install: warning: relinking `coders/fits.la'
libtool: install: warning: relinking `coders/gif.la'
libtool: install: warning: relinking `coders/gradient.la'
libtool: install: warning: relinking `coders/gray.la'
libtool: install: warning: relinking `coders/hald.la'
libtool: install: warning: relinking `coders/histogram.la'
libtool: install: warning: relinking `coders/hrz.la'
libtool: install: warning: relinking `coders/html.la'
libtool: install: warning: relinking `coders/icon.la'
libtool: install: warning: relinking `coders/info.la'
libtool: install: warning: relinking `coders/inline.la'
libtool: install: warning: relinking `coders/ipl.la'
libtool: install: warning: relinking `coders/label.la'
libtool: install: warning: relinking `coders/magick.la'
libtool: install: warning: relinking `coders/map.la'
libtool: install: warning: relinking `coders/mat.la'
libtool: install: warning: relinking `coders/matte.la'
libtool: install: warning: relinking `coders/meta.la'
libtool: install: warning: relinking `coders/miff.la'
libtool: install: warning: relinking `coders/mono.la'
libtool: install: warning: relinking `coders/mpc.la'
libtool: install: warning: relinking `coders/mpeg.la'
libtool: install: warning: relinking `coders/mpr.la'
libtool: install: warning: relinking `coders/msl.la'
libtool: install: warning: relinking `coders/mtv.la'
libtool: install: warning: relinking `coders/mvg.la'
libtool: install: warning: relinking `coders/null.la'
libtool: install: warning: relinking `coders/otb.la'
libtool: install: warning: relinking `coders/palm.la'
libtool: install: warning: relinking `coders/pattern.la'
libtool: install: warning: relinking `coders/pcd.la'
libtool: install: warning: relinking `coders/pcl.la'
libtool: install: warning: relinking `coders/pcx.la'
libtool: install: warning: relinking `coders/pdb.la'
libtool: install: warning: relinking `coders/pdf.la'
libtool: install: warning: relinking `coders/pes.la'
libtool: install: warning: relinking `coders/pict.la'
libtool: install: warning: relinking `coders/pix.la'
libtool: install: warning: relinking `coders/plasma.la'
libtool: install: warning: relinking `coders/pnm.la'
libtool: install: warning: relinking `coders/preview.la'
libtool: install: warning: relinking `coders/ps.la'
libtool: install: warning: relinking `coders/ps2.la'
libtool: install: warning: relinking `coders/ps3.la'
libtool: install: warning: relinking `coders/psd.la'
libtool: install: warning: relinking `coders/pwp.la'
libtool: install: warning: relinking `coders/raw.la'
libtool: install: warning: relinking `coders/rgb.la'
libtool: install: warning: relinking `coders/rla.la'
libtool: install: warning: relinking `coders/rle.la'
libtool: install: warning: relinking `coders/scr.la'
libtool: install: warning: relinking `coders/sct.la'
libtool: install: warning: relinking `coders/sfw.la'
libtool: install: warning: relinking `coders/sgi.la'
libtool: install: warning: relinking `coders/stegano.la'
libtool: install: warning: relinking `coders/sun.la'
libtool: install: warning: relinking `coders/svg.la'
libtool: install: warning: relinking `coders/tga.la'
libtool: install: warning: relinking `coders/thumbnail.la'
libtool: install: warning: relinking `coders/tile.la'
libtool: install: warning: relinking `coders/tim.la'
libtool: install: warning: relinking `coders/ttf.la'
libtool: install: warning: relinking `coders/txt.la'
libtool: install: warning: relinking `coders/uil.la'
libtool: install: warning: relinking `coders/url.la'
libtool: install: warning: relinking `coders/uyvy.la'
libtool: install: warning: relinking `coders/vicar.la'
libtool: install: warning: relinking `coders/vid.la'
libtool: install: warning: relinking `coders/viff.la'
libtool: install: warning: relinking `coders/wbmp.la'
libtool: install: warning: relinking `coders/wpg.la'
libtool: install: warning: relinking `coders/xbm.la'
libtool: install: warning: relinking `coders/xc.la'
libtool: install: warning: relinking `coders/xcf.la'
libtool: install: warning: relinking `coders/xpm.la'
libtool: install: warning: relinking `coders/xps.la'
libtool: install: warning: relinking `coders/ycbcr.la'
libtool: install: warning: relinking `coders/yuv.la'
libtool: install: warning: relinking `coders/djvu.la'
libtool: install: warning: relinking `coders/fpx.la'
libtool: install: warning: relinking `coders/jbig.la'
libtool: install: warning: relinking `coders/jpeg.la'
libtool: install: warning: relinking `coders/jp2.la'
libtool: install: warning: relinking `coders/png.la'
libtool: install: warning: relinking `coders/ept.la'
libtool: install: warning: relinking `coders/tiff.la'
libtool: install: warning: relinking `coders/wmf.la'
libtool: install: warning: relinking `filters/analyze.la'
 [2010-12-21 11:22 UTC] cdfiles at rambler dot ru
If you disable the Zend Optimizer module we have:

# 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"...
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.4...done.
Loaded symbols for /lib/libcrypt.so.4
Reading symbols from /usr/lib/librt.so.1...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/local/lib/libxml2.so.5...done.
Loaded symbols for /usr/local/lib/libxml2.so.5
Reading symbols from /lib/libz.so.4...done.
Loaded symbols for /lib/libz.so.4
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x28db8110 in ?? ()
(gdb) bt
#0  0x28db8110 in ?? ()
#1  0x2862ae44 in pthread_mutex_destroy () from /lib/libc.so.7
#2  0x283b81a8 in xmlFreeMutex () from /usr/local/lib/libxml2.so.5
#3  0x283b7a24 in xmlCleanupGlobals () from /usr/local/lib/libxml2.so.5
#4  0x28349b1a in xmlCleanupParser () from /usr/local/lib/libxml2.so.5
#5  0x080944e9 in php_libxml_shutdown () at /usr/ports/lang/php52/work/php-5.2.15/ext/libxml/libxml.c:589
#6  0x080949fb in zm_shutdown_libxml (type=1, module_number=2) at /usr/ports/lang/php52/work/php-5.2.15/ext/libxml/libxml.c:660
#7  0x081a8d10 in module_destructor (module=0x287720a0) at /usr/ports/lang/php52/work/php-5.2.15/Zend/zend_API.c:1924
#8  0x081ae87d in zend_hash_apply_deleter (ht=0x82cb5e0, p=0x2876b9d0) at /usr/ports/lang/php52/work/php-5.2.15/Zend/zend_hash.c:805
#9  0x081aea0e in zend_hash_graceful_reverse_destroy (ht=0x82cb5e0) at /usr/ports/lang/php52/work/php-5.2.15/Zend/zend_hash.c:840
#10 0x081a13ee in zend_shutdown () at /usr/ports/lang/php52/work/php-5.2.15/Zend/zend.c:814
#11 0x0814b23f in php_module_shutdown () at /usr/ports/lang/php52/work/php-5.2.15/main/main.c:1936
#12 0x0822437b in main (argc=2, argv=0xbfbfec70) at /usr/ports/lang/php52/work/php-5.2.15/sapi/cli/php_cli.c:1366
 [2010-12-21 11:26 UTC] mkoppanen@php.net
Can you try compiling ImageMagick without xml support? It looks like there is something weird going on with ImageMagick and libxml.
 [2010-12-21 11:32 UTC] cdfiles at rambler dot ru
In the options ImageMagick has no choice compiling with / without XML support
 [2010-12-21 11:34 UTC] mkoppanen@php.net
Did you try with upstream ImageMagick package or is this still from ports?
 [2010-12-21 12:06 UTC] cdfiles at rambler dot ru
from ports
 [2010-12-24 05:05 UTC] glebushk at gmail dot com
<?php
$image = new Imagick();
$image->newImage(0, 0, '#dddddd', 'png' );
$image->roundCorners(5, 5);

This code reliably causes 
Segmentation fault: 11 (core dumped)
for me. (i.e. creating 0x0 image)
Without round corners it correctly raises an exception.

# php -v
PHP 5.3.4 (cli) (built: Dec 23 2010 23:22:06)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

# identify -version
Version: ImageMagick 6.6.5-10 2010-12-24 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features:

# pkg_version -v | grep imagick
pecl-imagick-3.0.1                  =   up-to-date with port

#0  0x00000008091929dd in QueueAuthenticNexus () from /usr/local/lib/libMagickCore.so.4
[New Thread 8017821c0 (LWP 100319)]
(gdb) bt
#0  0x00000008091929dd in QueueAuthenticNexus () from /usr/local/lib/libMagickCore.so.4
#1  0x000000080919316a in GetAuthenticPixelCacheNexus () from /usr/local/lib/libMagickCore.so.4
#2  0x00000008091952df in GetCacheViewAuthenticPixels () from /usr/local/lib/libMagickCore.so.4
#3  0x00000008091ce438 in DrawAffineImage () from /usr/local/lib/libMagickCore.so.4
#4  0x00000008091d392c in DrawPrimitive () from /usr/local/lib/libMagickCore.so.4
#5  0x00000008091d5878 in DrawImage () from /usr/local/lib/libMagickCore.so.4
#6  0x0000000808fac969 in MagickDrawImage () from /usr/local/lib/libMagickWand.so.4
#7  0x0000000808e05cb5 in zim_imagick_roundcornersimage () from /usr/local/lib/php/20090626/imagick.so
#8  0x00000000005a5c30 in zend_do_fcall_common_helper_SPEC ()
#9  0x000000000057b830 in execute ()
#10 0x0000000000556f4e in zend_execute_scripts ()
#11 0x00000000005031f7 in php_execute_script ()
#12 0x00000000005e16c2 in main ()
#13 0x000000000041880e in _start ()

imagick and imagemagick both build from ports.
 [2011-05-06 06:31 UTC] mkoppanen@php.net
Hi,

it seems that there is something fishy with the ImageMagick built from ports. Can you try building ImageMagick without openmp support?
 [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: Mon Dec 30 14:01:28 2024 UTC