From:             jan at horde dot org
Operating system: Linux
PHP version:      4.3.9
PHP Bug Type:     GD related
Bug description:  GD segfault in wrong library

Description:
------------
I get this backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x403e7be5 in gdImageDestroy () from /usr/lib/libgd.so.4
(gdb) bt
#0  0x403e7be5 in gdImageDestroy () from /usr/lib/libgd.so.4
#1  0x4070d991 in php_free_gd_image (rsrc=0x8779434)
    at /root/working-set/php-4.3.9/ext/gd/gd.c:310
#2  0x4084496d in list_entry_destructor (ptr=0x8779434)
    at /root/working-set/php-4.3.9/Zend/zend_list.c:177
#3  0x408435b9 in zend_hash_apply_deleter (ht=0x40a23d00, p=0x87790e4)
    at /root/working-set/php-4.3.9/Zend/zend_hash.c:611
#4  0x4084372a in zend_hash_graceful_reverse_destroy (ht=0x40a23d00)
    at /root/working-set/php-4.3.9/Zend/zend_hash.c:677
#5  0x40844adf in zend_destroy_rsrc_list (ht=0x40a23d00)
    at /root/working-set/php-4.3.9/Zend/zend_list.c:233
#6  0x40834e4d in shutdown_executor ()
    at /root/working-set/php-4.3.9/Zend/zend_execute_API.c:213
#7  0x4083e4fa in zend_deactivate ()
    at /root/working-set/php-4.3.9/Zend/zend.c:667
#8  0x40810d2f in php_request_shutdown (dummy=0x0)
    at /root/working-set/php-4.3.9/main/main.c:996
#9  0x40857ef3 in apache_php_module_main (r=0x8160c4c,
display_source_mode=0)
    at /root/working-set/php-4.3.9/sapi/apache/sapi_apache.c:60
#10 0x40858b7f in send_php (r=0x8160c4c, display_source_mode=0,
filename=0x0)
    at /root/working-set/php-4.3.9/sapi/apache/mod_php4.c:621
#11 0x40858be5 in send_parsed_php (r=0x8160c4c)
    at /root/working-set/php-4.3.9/sapi/apache/mod_php4.c:636
#12 0x08096d19 in ap_invoke_handler ()
#13 0x080adabf in process_request_internal ()
#14 0x080adb32 in ap_process_request ()
#15 0x080a4016 in child_main ()
#16 0x080a41f5 in make_child ()
#17 0x080a4376 in startup_children ()
#18 0x080a4a1d in standalone_main ()
#19 0x080a52ac in main ()
#20 0x401b37ee in __libc_start_main () from /lib/libc.so.6

when I try to call imageCreateTrueColor for a large image on a certain
system. The strange thing is that it segfaults in /usr/lib/libgd.so.4,
though the PHP version was build with the bundled GD library, and that's
what the phpinfo page shows too.


-- 
Edit bug report at http://bugs.php.net/?id=31031&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31031&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31031&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31031&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31031&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31031&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31031&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31031&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31031&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31031&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31031&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31031&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31031&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31031&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31031&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31031&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31031&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31031&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31031&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31031&r=mysqlcfg

Reply via email to