ID:               32794
 Updated by:       [EMAIL PROTECTED]
-Summary:          install-pear.php segfaults
 Reported By:      benjcarson at digitaljunkies dot ca
-Status:           Open
+Status:           Critical
 Bug Type:         Reproducible crash
 Operating System: Debian Linux
 PHP Version:      5CVS-2005-04-21 (dev)


Previous Comments:
------------------------------------------------------------------------

[2005-04-21 23:02:52] benjcarson at digitaljunkies dot ca

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 this bug report at http://bugs.php.net/?id=32794&edit=1

Reply via email to