|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-04-10 19:25 UTC] scott at macvicar dot net
[2021-10-30 05:46 UTC] usgfssjgdddds at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 18:00:01 2025 UTC |
Description: ------------ Imagick Version 0.9.11 PHP Version 4.3.11 ImageMagick Verion: 6.2.2.3-r1 When running imagick_readimage() and the file doesn't exist the current process exits with a segmentation fault The php script execution returns nothing at all and the web server error log displays the following: error_log:[Wed Jun 22 01:08:30 2005] [notice] child pid 10438 exit signal Segmentation fault (11) currently i need to do something like if (file_exists($image)) { $handle = imagick_readimage( $image ); } Reproduce code: --------------- $handle = imagick_readimage( $image ) ; if ( imagick_iserror( $handle ) ) { $reason = imagick_failedreason( $handle ) ; $description = imagick_faileddescription( $handle ) ; print "handle failed!<BR>\nReason: $reason<BR>\nDescription: $description<BR>\n" ; exit ; } Expected result: ---------------- no segfault.... normal script completion Actual result: -------------- (gdb) run -X -k start -D PHP4 -D SSL -D DOC Starting program: /usr/sbin/apache2 -X -k start -D PHP4 -D SSL -D DOC (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 19402)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 19402)] 0xb78a1ea2 in _efree () from /usr/lib/apache2/ extramodules/libphp4.so (gdb) bt #0 0xb78a1ea2 in _efree () from /usr/lib/apache2/ extramodules/libphp4.so #1 0xb64b4390 in ListMagicInfo () from /usr/lib/ libMagick.so.6 #2 0xb6bbf39a in xsltSetGenericErrorFunc () from /usr/ lib/libxslt.so.1 (gdb)