php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56787 imagick.so causes PHP to die
Submitted: 2006-01-19 20:21 UTC Modified: 2009-02-06 16:35 UTC
From: joseph at randomnetworks dot com Assigned:
Status: No Feedback Package: imagick (PECL)
PHP Version: 5_1 CVS-2006-01-19 OS: FreeBSD 6.0
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-01-19 20:21 UTC] joseph at randomnetworks dot com
Description:
------------
This is on FreeBSD 6.0 and PHP 5.1.2.  Everything worked fine until I added the imagick (0.9.11) package from PECL.  I have ImageMagick 6.2.5.5 installed on this system.  I understand that IM 6.0+ may still have issues with the imagick package.  I wanted to confirm that it is still broken.  PHP dies with the following error (from CLI):

php in free(): error: junk pointer, too high to make sense
Abort (core dumped)

The only function called was to phpinfo().  Once I remove imagick.so from the list of extensions to load PHP functions fine.  Here is the backtrace from the CLI core file:

#0  0x2847b4b3 in kill () from /lib/libc.so.6
#1  0x284704f0 in raise () from /lib/libc.so.6
#2  0x284eac5c in abort () from /lib/libc.so.6
#3  0x28491cb3 in _UTF8_init () from /lib/libc.so.6
#4  0xbfbfed94 in ?? ()
#5  0x284f1653 in sys_nsig () from /lib/libc.so.6
#6  0x284f1553 in sys_nsig () from /lib/libc.so.6
#7  0x284f1670 in sys_nsig () from /lib/libc.so.6
#8  0x00000000 in ?? ()
#9  0x284fb4e4 in ?? () from /lib/libc.so.6
#10 0xbfbfd388 in ?? ()
#11 0x28491ce1 in _UTF8_init () from /lib/libc.so.6
#12 0x284fb4e4 in ?? () from /lib/libc.so.6
#13 0x08229938 in _CurrentRuneLocale ()
#14 0xbfbfd438 in ?? ()
#15 0x28492a41 in _UTF8_init () from /lib/libc.so.6
#16 0x00000001 in ?? ()
#17 0x28ece77a in __func__.0 () from /usr/local/lib/libMagick.so.9
#18 0x28f7b128 in __JCR_LIST__ () from /usr/local/lib/libMagick.so.9
#19 0x086b7000 in ?? ()
#20 0x28ece77a in __func__.0 () from /usr/local/lib/libMagick.so.9
#21 0x01da4859 in ?? ()
#22 0x04cebfef in ?? ()
#23 0x28cf24ed in ?? () from /usr/local/lib/libMagick.so.9
#24 0x00000000 in ?? ()
#25 0x00000000 in ?? ()
#26 0x0000004a in ?? ()
#27 0x00000044 in ?? ()
#28 0xbfbfd3f8 in ?? ()
#29 0x28df6e15 in DestroyStringInfo () from /usr/local/lib/libMagick.so.9
Previous frame inner to this frame (corrupt stack?)                      

Reproduce code:
---------------
Just use the same version of ImageMagick and imagick package and watch PHP fall over.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-07 03:25 UTC] matthew at iu dot nl
Any progress on this problem? 
 
I am experiencing the same problems. 
Its even causing my apache to kill the session its 
handeling. 
 
requesting phpinfo: 
 
httpd in free(): error: junk pointer, too high to make 
sense 
[Tue Feb 07 09:21:16 2006] [notice] child pid 5927 exit 
signal Abort trap (6) 
 
When I disable pecl-imagick it works just fine. 
 
Matthew
 [2006-02-07 03:38 UTC] matthew at iu dot nl
Here is some debugging information on my side:  
  
Using PHP4.4.2_1 + Apache 2.0.55_3 On FreeBSD 6.0-p4  
  
Disabled all the modules execpt for imagick:  
  
Linked libraries: 
 
 /usr/local/lib/php/20020429/imagick.so: 
        libWand.so.9 => /usr/local/lib/libWand.so.9 
(0x28169000) 
        libMagick.so.9 => /usr/local/lib/libMagick.so.9 
(0x281a0000) 
        libjbig.so.1 => /usr/local/lib/libjbig.so.1 
(0x28443000) 
        liblcms.so.1 => /usr/local/lib/liblcms.so.1 
(0x28450000) 
        libtiff.so.4 => /usr/local/lib/libtiff.so.4 
(0x2847c000) 
        libjasper.so.4 => /usr/local/lib/libjasper.so.4 
(0x284cd000) 
        libjpeg.so.9 => /usr/local/lib/libjpeg.so.9 
(0x28516000) 
        libpng.so.5 => /usr/local/lib/libpng.so.5 
(0x28534000) 
        libfpx.so.1 => /usr/local/lib/libfpx.so.1 
(0x28559000) 
        libbz2.so.2 => /usr/lib/libbz2.so.2 (0x285f2000) 
        libm.so.4 => /lib/libm.so.4 (0x28603000) 
        libfreetype.so.9 
=> /usr/local/lib/libfreetype.so.9 (0x28619000) 
        libz.so.3 => /lib/libz.so.3 (0x28683000) 
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 
(0x2869c000) 
 
libMagick.so.9 
/usr/local/lib/libMagick.so.9: 
        libjbig.so.1 => /usr/local/lib/libjbig.so.1 
(0x283fd000) 
        liblcms.so.1 => /usr/local/lib/liblcms.so.1 
(0x2840a000) 
        libtiff.so.4 => /usr/local/lib/libtiff.so.4 
(0x28436000) 
        libjasper.so.4 => /usr/local/lib/libjasper.so.4 
(0x28487000) 
        libjpeg.so.9 => /usr/local/lib/libjpeg.so.9 
(0x284d0000) 
        libpng.so.5 => /usr/local/lib/libpng.so.5 
(0x284ee000) 
        libfpx.so.1 => /usr/local/lib/libfpx.so.1 
(0x28513000) 
        libbz2.so.2 => /usr/lib/libbz2.so.2 (0x285ac000) 
        libm.so.4 => /lib/libm.so.4 (0x285bd000) 
        libfreetype.so.9 
=> /usr/local/lib/libfreetype.so.9 (0x285d3000) 
        libz.so.3 => /lib/libz.so.3 (0x2863d000) 
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 
(0x2864d000) 
 
 
Truss output on run php (cli) phpinfo() 
  
imagick  
write(1,0x8181000,8)                             = 8 (0x8)  
  
write(1,0x8181000,1)                             = 1 (0x1)  
ImageMagick support => enabled  
write(1,0x8181000,31)                            = 31  
(0x1f)  
Magick Backend => ImageMagick  
write(1,0x8181000,30)                            = 30  
(0x1e)  
ImageMagick version => 6.2.5  
write(1,0x8181000,29)                            = 29  
(0x1d)  
PHP imagick versionwrite(1,0x8181000,19)                                  
= 19 (0x13)  
break(0x818b000)                                 = 0 (0x0)  
gettimeofday({1139301273 51809},0x0)             = 0 (0x0)  
break(0x818d000)                                 = 0 (0x0)  
break(0x818f000)                                 = 0 (0x0)  
break(0x8191000)                                 = 0 (0x0)  
break(0x8193000)                                 = 0 (0x0)  
break(0x8195000)                                 = 0 (0x0)  
break(0x8197000)                                 = 0 (0x0)  
break(0x8199000)                                 = 0 (0x0)  
break(0x819b000)                                 = 0 (0x0)  
break(0x819d000)                                 = 0 (0x0)  
break(0x819f000)                                 = 0 (0x0)  
break(0x81a1000)                                 = 0 (0x0)  
break(0x81a3000)                                 = 0 (0x0)  
break(0x81a5000)                                 = 0 (0x0)  
break(0x81a7000)                                 = 0 (0x0)  
break(0x81a9000)                                 = 0 (0x0)  
break(0x81ab000)                                 = 0 (0x0)  
break(0x81ad000)                                 = 0 (0x0)  
break(0x81af000)                                 = 0 (0x0)  
break(0x81b1000)                                 = 0 (0x0)  
break(0x81b3000)                                 = 0 (0x0)  
break(0x81b5000)                                 = 0 (0x0)  
break(0x81b7000)                                 = 0 (0x0)  
break(0x81b9000)                                 = 0 (0x0)  
break(0x81bb000)                                 = 0 (0x0)  
break(0x81bd000)                                 = 0 (0x0)  
break(0x81bf000)                                 = 0 (0x0)  
break(0x81c1000)                                 = 0 (0x0)  
break(0x81c3000)                                 = 0 (0x0)  
break(0x81c5000)                                 = 0 (0x0)  
break(0x81c7000)                                 = 0 (0x0)  
break(0x81c9000)                                 = 0 (0x0)  
break(0x81cb000)                                 = 0 (0x0)  
break(0x81cd000)                                 = 0 (0x0)  
break(0x81cf000)                                 = 0 (0x0)  
break(0x81d1000)                                 = 0 (0x0)  
break(0x81d3000)                                 = 0 (0x0)  
break(0x81d5000)                                 = 0 (0x0)  
break(0x81d7000)                                 = 0 (0x0)  
break(0x81d9000)                                 = 0 (0x0)  
break(0x81db000)                                 = 0 (0x0)  
break(0x81dd000)                                 = 0 (0x0)  
break(0x81df000)                                 = 0 (0x0)  
break(0x81e1000)                                 = 0 (0x0)  
break(0x81e3000)                                 = 0 (0x0)  
break(0x81e5000)                                 = 0 (0x0)  
break(0x81e7000)                                 = 0 (0x0)  
break(0x81e9000)                                 = 0 (0x0)  
break(0x81eb000)                                 = 0 (0x0)  
break(0x81ed000)                                 = 0 (0x0)  
break(0x81ef000)                                 = 0 (0x0)  
break(0x81f1000)                                 = 0 (0x0)  
break(0x81f3000)                                 = 0 (0x0)  
break(0x81f5000)                                 = 0 (0x0)  
break(0x81f7000)                                 = 0 (0x0)  
break(0x81f9000)                                 = 0 (0x0)  
break(0x81fb000)                                 = 0 (0x0)  
break(0x81fd000)                                 = 0 (0x0)  
break(0x81ff000)                                 = 0 (0x0)  
break(0x8201000)                                 = 0 (0x0)  
break(0x8203000)                                 = 0 (0x0)  
break(0x8205000)                                 = 0 (0x0)  
break(0x8207000)                                 = 0 (0x0)  
break(0x8209000)                                 = 0 (0x0)  
break(0x820b000)                                 = 0 (0x0)  
break(0x820d000)                                 = 0 (0x0)  
break(0x820f000)                                 = 0 (0x0)  
break(0x8211000)                                 = 0 (0x0)  
break(0x8213000)                                 = 0 (0x0)  
break(0x8215000)                                 = 0 (0x0)  
break(0x8217000)                                 = 0 (0x0)  
break(0x8219000)                                 = 0 (0x0)  
break(0x821b000)                                 = 0 (0x0)  
break(0x821d000)                                 = 0 (0x0)  
break(0x821f000)                                 = 0 (0x0)  
break(0x8221000)                                 = 0 (0x0)  
break(0x8223000)                                 = 0 (0x0)  
break(0x8225000)                                 = 0 (0x0)  
break(0x8227000)                                 = 0 (0x0)  
break(0x8229000)                                 = 0 (0x0)  
break(0x822b000)                                 = 0 (0x0)  
break(0x822d000)                                 = 0 (0x0)  
break(0x822f000)                                 = 0 (0x0)  
break(0x8231000)                                 = 0 (0x0)  
break(0x8233000)                                 = 0 (0x0)  
break(0x8235000)                                 = 0 (0x0)  
break(0x8237000)                                 = 0 (0x0)  
break(0x8239000)                                 = 0 (0x0)  
break(0x823b000)                                 = 0 (0x0)  
break(0x823d000)                                 = 0 (0x0)  
break(0x823f000)                                 = 0 (0x0)  
break(0x8241000)                                 = 0 (0x0)  
break(0x8243000)                                 = 0 (0x0)  
break(0x8245000)                                 = 0 (0x0)  
break(0x8247000)                                 = 0 (0x0)  
break(0x8249000)                                 = 0 (0x0)  
break(0x824b000)                                 = 0 (0x0)  
break(0x824d000)                                 = 0 (0x0)  
break(0x824f000)                                 = 0 (0x0)  
break(0x8251000)                                 = 0 (0x0)  
break(0x8253000)                                 = 0 (0x0)  
break(0x8255000)                                 = 0 (0x0)  
break(0x8257000)                                 = 0 (0x0)  
break(0x8259000)                                 = 0 (0x0)  
break(0x825b000)                                 = 0 (0x0)  
break(0x825d000)                                 = 0 (0x0)  
break(0x825f000)                                 = 0 (0x0)  
break(0x8261000)                                 = 0 (0x0)  
break(0x8263000)                                 = 0 (0x0)  
break(0x8265000)                                 = 0 (0x0)  
break(0x8267000)                                 = 0 (0x0)  
break(0x8269000)                                 = 0 (0x0)  
break(0x826b000)                                 = 0 (0x0)  
break(0x826d000)                                 = 0 (0x0)  
break(0x826f000)                                 = 0 (0x0)  
break(0x8271000)                                 = 0 (0x0)  
break(0x8273000)                                 = 0 (0x0)  
break(0x8275000)                                 = 0 (0x0)  
break(0x8277000)                                 = 0 (0x0)  
break(0x8279000)                                 = 0 (0x0)  
break(0x827b000)                                 = 0 (0x0)  
break(0x827d000)                                 = 0 (0x0)  
break(0x827f000)                                 = 0 (0x0)  
break(0x8281000)                                 = 0 (0x0)  
break(0x8283000)                                 = 0 (0x0)  
break(0x8285000)                                 = 0 (0x0)  
break(0x8287000)                                 = 0 (0x0)  
break(0x8289000)                                 = 0 (0x0)  
break(0x828b000)                                 = 0 (0x0)  
break(0x828d000)                                 = 0 (0x0)  
break(0x828f000)                                 = 0 (0x0)  
break(0x8291000)                                 = 0 (0x0)  
break(0x8293000)                                 = 0 (0x0)  
break(0x8295000)                                 = 0 (0x0)  
break(0x8297000)                                 = 0 (0x0)  
break(0x8299000)                                 = 0 (0x0)  
break(0x829b000)                                 = 0 (0x0)  
break(0x829d000)                                 = 0 (0x0)  
break(0x829f000)                                 = 0 (0x0)  
break(0x82a1000)                                 = 0 (0x0)  
break(0x82a3000)                                 = 0 (0x0)  
break(0x82a5000)                                 = 0 (0x0)  
break(0x82a7000)                                 = 0 (0x0)  
break(0x82a9000)                                 = 0 (0x0)  
break(0x82ab000)                                 = 0 (0x0)  
break(0x82ad000)                                 = 0 (0x0)  
break(0x82af000)                                 = 0 (0x0)  
break(0x82b1000)                                 = 0 (0x0)  
break(0x82b3000)                                 = 0 (0x0)  
break(0x82b5000)                                 = 0 (0x0)  
break(0x82b7000)                                 = 0 (0x0)  
break(0x82b9000)                                 = 0 (0x0)  
break(0x82bb000)                                 = 0 (0x0)  
break(0x82bd000)                                 = 0 (0x0)  
break(0x82bf000)                                 = 0 (0x0)  
break(0x82c1000)                                 = 0 (0x0)  
break(0x82c3000)                                 = 0 (0x0)  
break(0x82c5000)                                 = 0 (0x0)  
break(0x82c7000)                                 = 0 (0x0)  
break(0x82c9000)                                 = 0 (0x0)  
break(0x82cb000)                                 = 0 (0x0)  
break(0x82cd000)                                 = 0 (0x0)  
break(0x82cf000)                                 = 0 (0x0)  
break(0x82d1000)                                 = 0 (0x0)  
break(0x82d3000)                                 = 0 (0x0)  
break(0x82d5000)                                 = 0 (0x0)  
break(0x82d7000)                                 = 0 (0x0)  
break(0x82d9000)                                 = 0 (0x0)  
break(0x82db000)                                 = 0 (0x0)  
break(0x82dd000)                                 = 0 (0x0)  
break(0x82df000)                                 = 0 (0x0)  
break(0x82e1000)                                 = 0 (0x0)  
break(0x82e3000)                                 = 0 (0x0)  
break(0x82e5000)                                 = 0 (0x0)  
break(0x82e7000)                                 = 0 (0x0)  
break(0x82e9000)                                 = 0 (0x0)  
break(0x82eb000)                                 = 0 (0x0)  
break(0x82ed000)                                 = 0 (0x0)  
break(0x82ef000)                                 = 0 (0x0)  
break(0x82f1000)                                 = 0 (0x0)  
break(0x82f3000)                                 = 0 (0x0)  
break(0x82f5000)                                 = 0 (0x0)  
break(0x82f7000)                                 = 0 (0x0)  
break(0x82f9000)                                 = 0 (0x0)  
break(0x82fb000)                                 = 0 (0x0)  
break(0x82fd000)                                 = 0 (0x0)  
break(0x82ff000)                                 = 0 (0x0)  
break(0x8301000)                                 = 0 (0x0)  
break(0x8303000)                                 = 0 (0x0)  
break(0x8305000)                                 = 0 (0x0)  
break(0x8307000)                                 = 0 (0x0)  
break(0x8309000)                                 = 0 (0x0)  
break(0x830b000)                                 = 0 (0x0)  
break(0x830d000)                                 = 0 (0x0)  
break(0x830f000)                                 = 0 (0x0)  
break(0x8311000)                                 = 0 (0x0)  
break(0x8313000)                                 = 0 (0x0)  
break(0x8315000)                                 = 0 (0x0)  
break(0x8317000)                                 = 0 (0x0)  
break(0x8319000)                                 = 0 (0x0)  
break(0x831a000)                                 = 0 (0x0)  
break(0x831c000)                                 = 0 (0x0)  
break(0x831e000)                                 = 0 (0x0)  
break(0x8320000)                                 = 0 (0x0)  
break(0x8322000)                                 = 0 (0x0)  
break(0x8324000)                                 = 0 (0x0)  
break(0x8326000)                                 = 0 (0x0)  
break(0x8328000)                                 = 0 (0x0)  
break(0x832a000)                                 = 0 (0x0)  
break(0x832c000)                                 = 0 (0x0)  
break(0x832e000)                                 = 0 (0x0)  
break(0x8330000)                                 = 0 (0x0)  
break(0x8332000)                                 = 0 (0x0)  
break(0x8334000)                                 = 0 (0x0)  
break(0x8336000)                                 = 0 (0x0)  
break(0x8338000)                                 = 0 (0x0)  
break(0x833a000)                                 = 0 (0x0)  
break(0x833c000)                                 = 0 (0x0)  
break(0x833e000)                                 = 0 (0x0)  
break(0x8340000)                                 = 0 (0x0)  
break(0x8342000)                                 = 0 (0x0)  
break(0x8344000)                                 = 0 (0x0)  
break(0x8346000)                                 = 0 (0x0)  
break(0x8348000)                                 = 0 (0x0)  
break(0x834a000)                                 = 0 (0x0)  
break(0x834c000)                                 = 0 (0x0)  
break(0x834e000)                                 = 0 (0x0)  
break(0x8350000)                                 = 0 (0x0)  
break(0x8352000)                                 = 0 (0x0)  
break(0x8354000)                                 = 0 (0x0)  
break(0x8356000)                                 = 0 (0x0)  
break(0x8358000)                                 = 0 (0x0)  
break(0x835a000)                                 = 0 (0x0)  
break(0x835c000)                                 = 0 (0x0)  
break(0x835e000)                                 = 0 (0x0)  
break(0x8360000)                                 = 0 (0x0)  
break(0x8362000)                                 = 0 (0x0)  
break(0x8364000)                                 = 0 (0x0)  
break(0x8366000)                                 = 0 (0x0)  
break(0x8368000)                                 = 0 (0x0)  
break(0x836a000)                                 = 0 (0x0)  
break(0x836c000)                                 = 0 (0x0)  
break(0x836e000)                                 = 0 (0x0)  
break(0x8370000)                                 = 0 (0x0)  
break(0x8372000)                                 = 0 (0x0)  
break(0x8374000)                                 = 0 (0x0)  
break(0x8376000)                                 = 0 (0x0)  
break(0x8378000)                                 = 0 (0x0)  
break(0x837a000)                                 = 0 (0x0)  
break(0x837c000)                                 = 0 (0x0)  
break(0x837e000)                                 = 0 (0x0)  
break(0x8380000)                                 = 0 (0x0)  
break(0x8382000)                                 = 0 (0x0)  
break(0x8384000)                                 = 0 (0x0)  
break(0x8386000)                                 = 0 (0x0)  
break(0x8388000)                                 = 0 (0x0)  
break(0x838a000)                                 = 0 (0x0)  
break(0x838c000)                                 = 0 (0x0)  
break(0x838e000)                                 = 0 (0x0)  
break(0x8390000)                                 = 0 (0x0)  
break(0x8392000)                                 = 0 (0x0)  
break(0x8394000)                                 = 0 (0x0)  
break(0x8396000)                                 = 0 (0x0)  
break(0x8398000)                                 = 0 (0x0)  
break(0x839a000)                                 = 0 (0x0)  
break(0x839c000)                                 = 0 (0x0)  
break(0x839e000)                                 = 0 (0x0)  
break(0x83a0000)                                 = 0 (0x0)  
break(0x83a2000)                                 = 0 (0x0)  
break(0x83a4000)                                 = 0 (0x0)  
break(0x83a6000)                                 = 0 (0x0)  
break(0x83a8000)                                 = 0 (0x0)  
break(0x83aa000)                                 = 0 (0x0)  
break(0x83ac000)                                 = 0 (0x0)  
break(0x83ae000)                                 = 0 (0x0)  
break(0x83b0000)                                 = 0 (0x0)  
break(0x83b2000)                                 = 0 (0x0)  
break(0x83b4000)                                 = 0 (0x0)  
break(0x83b6000)                                 = 0 (0x0)  
break(0x83b8000)                                 = 0 (0x0)  
break(0x83ba000)                                 = 0 (0x0)  
break(0x83bc000)                                 = 0 (0x0)  
break(0x83be000)                                 = 0 (0x0)  
break(0x83c0000)                                 = 0 (0x0)  
break(0x83c2000)                                 = 0 (0x0)  
break(0x83c4000)                                 = 0 (0x0)  
break(0x83c6000)                                 = 0 (0x0)  
break(0x83c8000)                                 = 0 (0x0)  
break(0x83ca000)                                 = 0 (0x0)  
break(0x83cc000)                                 = 0 (0x0)  
break(0x83ce000)                                 = 0 (0x0)  
break(0x83d0000)                                 = 0 (0x0)  
break(0x83d2000)                                 = 0 (0x0)  
break(0x83d4000)                                 = 0 (0x0)  
break(0x83d6000)                                 = 0 (0x0)  
break(0x83d8000)                                 = 0 (0x0)  
break(0x83da000)                                 = 0 (0x0)  
break(0x83dc000)                                 = 0 (0x0)  
break(0x83de000)                                 = 0 (0x0)  
break(0x83e0000)                                 = 0 (0x0)  
break(0x83e2000)                                 = 0 (0x0)  
break(0x83e4000)                                 = 0 (0x0)  
break(0x83e6000)                                 = 0 (0x0)  
break(0x83e8000)                                 = 0 (0x0)  
break(0x83ea000)                                 = 0 (0x0)  
break(0x83ec000)                                 = 0 (0x0)  
break(0x83ee000)                                 = 0 (0x0)  
break(0x83f0000)                                 = 0 (0x0)  
break(0x83f2000)                                 = 0 (0x0)  
break(0x83f4000)                                 = 0 (0x0)  
break(0x83f6000)                                 = 0 (0x0)  
break(0x83f8000)                                 = 0 (0x0)  
break(0x83fa000)                                 = 0 (0x0)  
break(0x83fc000)                                 = 0 (0x0)  
break(0x83fe000)                                 = 0 (0x0)  
break(0x8400000)                                 = 0 (0x0)  
break(0x8402000)                                 = 0 (0x0)  
break(0x8404000)                                 = 0 (0x0)  
break(0x8406000)                                 = 0 (0x0)  
break(0x8408000)                                 = 0 (0x0)  
break(0x840a000)                                 = 0 (0x0)  
break(0x840c000)                                 = 0 (0x0)  
break(0x840e000)                                 = 0 (0x0)  
break(0x8410000)                                 = 0 (0x0)  
break(0x8412000)                                 = 0 (0x0)  
break(0x8414000)                                 = 0 (0x0)  
break(0x8416000)                                 = 0 (0x0)  
break(0x8418000)                                 = 0 (0x0)  
break(0x841a000)                                 = 0 (0x0)  
break(0x841c000)                                 = 0 (0x0)  
break(0x841e000)                                 = 0 (0x0)  
break(0x8420000)                                 = 0 (0x0)  
break(0x8422000)                                 = 0 (0x0)  
break(0x8424000)                                 = 0 (0x0)  
break(0x8426000)                                 = 0 (0x0)  
break(0x8428000)                                 = 0 (0x0)  
break(0x842a000)                                 = 0 (0x0)  
break(0x842c000)                                 = 0 (0x0)  
break(0x842e000)                                 = 0 (0x0)  
break(0x8430000)                                 = 0 (0x0)  
break(0x8432000)                                 = 0 (0x0)  
break(0x8434000)                                 = 0 (0x0)  
break(0x8436000)                                 = 0 (0x0)  
break(0x8438000)                                 = 0 (0x0)  
break(0x843a000)                                 = 0 (0x0)  
break(0x843c000)                                 = 0 (0x0)  
break(0x843e000)                                 = 0 (0x0)  
break(0x8440000)                                 = 0 (0x0)  
break(0x8442000)                                 = 0 (0x0)  
break(0x8444000)                                 = 0 (0x0)  
break(0x8446000)                                 = 0 (0x0)  
break(0x8448000)                                 = 0 (0x0)  
break(0x844a000)                                 = 0 (0x0)  
break(0x844c000)                                 = 0 (0x0)  
break(0x844e000)                                 = 0 (0x0)  
break(0x8450000)                                 = 0 (0x0)  
break(0x8452000)                                 = 0 (0x0)  
break(0x8454000)                                 = 0 (0x0)  
break(0x8456000)                                 = 0 (0x0)  
break(0x8458000)                                 = 0 (0x0)  
break(0x845a000)                                 = 0 (0x0)  
break(0x845c000)                                 = 0 (0x0)  
break(0x845e000)                                 = 0 (0x0)  
break(0x8460000)                                 = 0 (0x0)  
break(0x8462000)                                 = 0 (0x0)  
break(0x8464000)                                 = 0 (0x0)  
break(0x8466000)                                 = 0 (0x0)  
break(0x8468000)                                 = 0 (0x0)  
break(0x846a000)                                 = 0 (0x0)  
break(0x846c000)                                 = 0 (0x0)  
break(0x846e000)                                 = 0 (0x0)  
break(0x8470000)                                 = 0 (0x0)  
break(0x8472000)                                 = 0 (0x0)  
break(0x8474000)                                 = 0 (0x0)  
break(0x8476000)                                 = 0 (0x0)  
break(0x8478000)                                 = 0 (0x0)  
break(0x847a000)                                 = 0 (0x0)  
break(0x847c000)                                 = 0 (0x0)  
break(0x847e000)                                 = 0 (0x0)  
break(0x8480000)                                 = 0 (0x0)  
break(0x8482000)                                 = 0 (0x0)  
break(0x8484000)                                 = 0 (0x0)  
break(0x8486000)                                 = 0 (0x0)  
break(0x8488000)                                 = 0 (0x0)  
break(0x848a000)                                 = 0 (0x0)  
break(0x848c000)                                 = 0 (0x0)  
break(0x848e000)                                 = 0 (0x0)  
break(0x8490000)                                 = 0 (0x0)  
break(0x8492000)                                 = 0 (0x0)  
break(0x8494000)                                 = 0 (0x0)  
break(0x8496000)                                 = 0 (0x0)  
break(0x8498000)                                 = 0 (0x0)  
break(0x849a000)                                 = 0 (0x0)  
break(0x849c000)                                 = 0 (0x0)  
break(0x849e000)                                 = 0 (0x0)  
break(0x84a0000)                                 = 0 (0x0)  
break(0x84a2000)                                 = 0 (0x0)  
break(0x84a4000)                                 = 0 (0x0)  
break(0x84a6000)                                 = 0 (0x0)  
break(0x84a8000)                                 = 0 (0x0)  
break(0x84a9000)                                 = 0 (0x0)  
open("/usr/local/lib/ImageMagick/config/type.xml",0x0,05032071400)  
= 3 (0x3)  
lseek(3,0x0,SEEK_END)                            = 701  
(0x2bd)  
mmap(0x0,701,(0x1)PROT_READ,(0x2)MAP_PRIVATE,3,0x0) =  
681164800 (0x2899c000)  
munmap(0x2899c000,0x2bd)                         = 0 (0x0)  
close(3)                                         = 0 (0x0)  
break(0x84ab000)                                 = 0 (0x0)  
open("/usr/local/share/ImageMagick/config/type.xml",0x0,027757723450)  
ERR#2 'No such file or directory'  
open("/usr/local/share/doc/ImageMagick-6.2.5/type.xml",0x0,027757723450)  
ERR#2 'No such file or directory'  
open("/usr/local/share/ImageMagick-6.2.5/type.xml",0x0,027757723450)  
ERR#2 'No such file or directory'  
open("/root/.magick/type.xml",0x0,027757723450)  ERR#2 'No  
such file or directory'  
open("type.xml",0x0,027757723450)                ERR#2 'No  
such file or directory'  
stat("/usr/local/lib/ImageMagick/config/type.xml",0xbfbf7650)  
= 0 (0x0)  
open("/usr/local/lib/ImageMagick/config/type-ghostscript.xml",0x0,05027024635)  
= 3 (0x3)  
lseek(3,0x0,SEEK_END)                            = 11262  
(0x2bfe)  
mmap(0x0,11262,(0x1)PROT_READ,(0x2)MAP_PRIVATE,3,0x0) =  
681164800 (0x2899c000)  
munmap(0x2899c000,0x2bfe)                        = 0 (0x0)  
close(3)                                         = 0 (0x0)  
break(0x84ad000)                                 = 0 (0x0)  
break(0x84af000)                                 = 0 (0x0)  
break(0x84b0000)                                 = 0 (0x0)  
issetugid()                                      = 0 (0x0)  
getuid()                                         = 0 (0x0)  
phpwrite(2,0xbfbfe6c4,3)                                 =  
3 (0x3)  
 in free():write(2,0x28381e6b,11)                                 
= 11 (0xb)  
 error: write(2,0x28381d6b,8)                            =  
8 (0x8)  
junk pointer, too high to make sense  
write(2,0x28381e88,37)                           = 37  
(0x25)  
sigprocmask(0x3,0xbfbfb618,0x0)                  = 0 (0x0)  
getpid()                                         = 5988  
(0x1764)  
kill(0x1764,0x6)                                 = 0 (0x0)  
SIGNAL 6 (SIGABRT)  
SIGNAL 6 (SIGABRT)  
Process stopped because of:  16  
process exit, rval = 134  
 
If you need any more information just let me know.. 
 
Greetings 
Matthew
 [2006-02-21 09:57 UTC] s dot glgoger at cybernet dot ch
i've solved the problem on my side when i compiled ImageMagick with "--enable-embeddable".

If you use FreeBSD (any version): 
edit: /usr/ports/graphics/ImageMagick/Makefile
add around line 210 (before the "post-patch:")
  CONFIGURE_ARGS+= --enable-embeddable

now apache is not core dumping anymore when issueing phpinfo();

but command-line "php -i" again shows:
Segmentation fault (core dumped)

if i disable "extension=imagick.so" php -i works fine. no coredump.

my config:
system: FreeBSD 5.4-STABLE
port: ImageMagick-6.2.5.5_1 
port: pecl-imagick-0.9.11_3
 [2006-05-10 22:08 UTC] webmaster at ooglebay dot com
I am using gentoo and was experiencing similar problems. Working on an image upload/auto resize script and it made apache segfault(after an hour of me thinking it was php or my form being dumb!lol). 

I edited the ebuild for imagemagick and added the --enable-embeddable ...then redigested the ebuild, recomipiled and it seems to be working fine now...I will file a gentoo bug and have them make that a default compile flag. 

If you devs need any debugging output from my box, let me know!

Thanks

James Porter
IT Director / Lead Developer
Ooglebay / Vericoin
 [2006-05-11 10:06 UTC] webmaster at ooglebay dot com
Update....it still segfaults for me, seems to be no problem though if using the graphicsmagick....I can't easily try imagemagick < 6, no ebuilds for 5....
 [2007-04-13 11:47 UTC] scottmac@php.net
Can you try the latest release please.
 [2007-10-15 06:50 UTC] petr at petrovich dot kiev dot ua
BUG confirmed with FreeBSD 6.2, PHP 5.4.2, ImageMagick 6.3.5, pecl-imagick-2.0.0

(gdb) bt
#0  0x285cbecb in kill () from /lib/libc.so.6
#1  0x285cbe68 in raise () from /lib/libc.so.6
#2  0x285cab78 in abort () from /lib/libc.so.6
#3  0x28567fdb in _UTF8_init () from /lib/libc.so.6
#4  0xbfbfee3c in ?? ()
#5  0x285d1dd3 in sys_nsig () from /lib/libc.so.6
#6  0x285d1cd3 in sys_nsig () from /lib/libc.so.6
#7  0x285d1df0 in sys_nsig () from /lib/libc.so.6
#8  0x00000000 in ?? ()
#9  0x285dcd80 in ?? () from /lib/libc.so.6
#10 0xbfbf9ed8 in ?? ()
#11 0x28568009 in _UTF8_init () from /lib/libc.so.6
#12 0x285dcd80 in ?? () from /lib/libc.so.6
#13 0x082a0798 in _CurrentRuneLocale ()
#14 0xbfbf9f88 in ?? ()
#15 0x28568d69 in _UTF8_init () from /lib/libc.so.6
#16 0x00000001 in ?? ()
#17 0x28ed9b20 in ?? () from /usr/local/lib/libMagick.so.10
#18 0x282c0c00 in ?? ()
#19 0xbfbf9df0 in ?? ()
#20 0x00000001 in ?? ()
#21 0x282b6600 in ?? ()
#22 0x291978e0 in ?? () from /usr/local/lib/libMagick.so.10
#23 0xbfbfc060 in ?? ()
#24 0xbfbfc060 in ?? ()
#25 0xbfbf9fa8 in ?? ()
#26 0x00000000 in ?? ()
#27 0x00000000 in ?? ()
#28 0x00001e60 in ?? ()
#29 0xbfbfc097 in ?? ()
#30 0x285ce3c8 in __error_unthreaded () from /lib/libc.so.6
Previous frame inner to this frame (corrupt stack?)
 [2009-02-06 16:35 UTC] mkoppanen@php.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-2019 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 05:01:23 2019 UTC