From: benjcarson at digitaljunkies dot ca Operating system: Debian Linux PHP version: 5CVS-2005-04-21 (dev) PHP Bug Type: Reproducible crash Bug description: install-pear.php segfaults
Description: ------------ The latest (2005-04-21) CVS HEAD and snaps are segfaulting while executing install-pear.php during make install. Here's a backtrace: #0 0x407b8e84 in mallopt () from /lib/tls/libc.so.6 #1 0x407b7dcb in free () from /lib/tls/libc.so.6 #2 0x0818a692 in _efree (ptr=0x832951c) at /usr/src/php5-200504211030/Zend/zend_alloc.c:308 #3 0x081a4f38 in zend_hash_destroy (ht=0x83c1b50) at /usr/src/php5-200504211030/Zend/zend_hash.c:519 #4 0x081977b7 in destroy_zend_class (pce=0x10652d38) at /usr/src/php5-200504211030/Zend/zend_opcode.c:161 #5 0x081a4e16 in zend_hash_del_key_or_index (ht=0x826f3d8, arKey=0x84e0390 "pear_registry", nKeyLength=14, h=3284853093, flag=0) at /usr/src/php5-200504211030/Zend/zend_hash.c:490 #6 0x081a540d in zend_hash_reverse_apply (ht=0x826f3d8, apply_func=0x8193f20 <is_not_internal_class>) at /usr/src/php5-200504211030/Zend/zend_hash.c:736 #7 0x0819461c in shutdown_executor () at /usr/src/php5-200504211030/Zend/zend_execute_API.c:264 #8 0x0819e6d5 in zend_deactivate () at /usr/src/php5-200504211030/Zend/zend.c:823 #9 0x08166db6 in php_request_shutdown (dummy=0x0) at /usr/src/php5-200504211030/main/main.c:1217 #10 0x0820ecc0 in main (argc=2, argv=0xbffffa04) at /usr/src/php5-200504211030/sapi/cli/php_cli.c:1057 I've tried to narrow down the test case a little bit, see the reproduce code below. Reproduce code: --------------- <?php // Put this file in php-src/pear/ include "PEAR.php"; class Foo extends PEAR { } ?> Expected result: ---------------- [no output] Actual result: -------------- Segmentation Fault -- Edit bug report at http://bugs.php.net/?id=32794&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32794&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32794&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32794&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32794&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32794&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32794&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32794&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32794&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32794&r=support Expected behavior: http://bugs.php.net/fix.php?id=32794&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32794&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32794&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32794&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32794&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32794&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32794&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32794&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32794&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32794&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32794&r=mysqlcfg