Re: [PHP-DEV] Fatal error with current CVS php4/pear, inc. segfault
This is a reply to an older mail from me. About two weeks later, latest CVS still gives me the same Fatal Errors: Installing PHP SAPI module Installing shared extensions: /home/mfischer/php4/lib/php/extensions/debug-non-zts-20020429/ Installing PHP CLI binary:/home/mfischer/php4/bin/ Installing PEAR environment: /home/mfischer/php4/lib/php/ [PEAR] Archive_Tar- installed: 0.9 [PEAR] Console_Getopt - installed: 1.0 [PEAR] PEAR - installed: 1.0b2 Fatal error: Call to undefined function: 136306756() in /home/mfischer/isrc/cvs/php4/pear/PEAR.php on line 641 /home/mfischer/isrc/cvs/php4/pear/PEAR.php(641) : Fatal error - Call to undefined function: 136306756() [PEAR] DB - installed: 1.3 [PEAR] HTTP - installed: 1.2 [PEAR] Mail - installed: 1.0.1 [PEAR] Net_SMTP - installed: 1.0 [PEAR] Net_Socket - installed: 1.0.1 [PEAR] XML_Parser - installed: 1.0 [PEAR] XML_RPC- installed: 1.0.4 Fatal error: Call to undefined function: 136307804() in /home/mfischer/isrc/cvs/php4/pear/PEAR.php on line 641 /home/mfischer/isrc/cvs/php4/pear/PEAR.php(641) : Fatal error - Call to undefined function: 136307804() Installing build environment: /home/mfischer/php4/lib/php/build/ Installing header files: /home/mfischer/php4/include/php/ Installing helper programs: /home/mfischer/php4/bin/ program: phpize program: php-config program: phpextdist The rest of the mail applies. The numbers seem to vary from 'make install' to 'make install'. The used software packages are: automake (GNU automake) 1.4-p6 Autoconf version 2.13 ltmain.sh (GNU libtool) 1.4 (1.920 2001/04/24 23:26:18) bison (GNU Bison) 1.50 (anything else needed?) Any ideas ? - Markus On Fri, Nov 08, 2002 at 10:37:22PM +0100, Markus Fischer wrote : Current CVS upon installing gives me: PHP 4.3.0-dev (cli) (built: Nov 8 2002 21:56:15) Copyright (c) 1997-2002 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies $ make install Installing PHP SAPI module Installing shared extensions: /home/mfischer/php4/lib/php/extensions/no-debug-non-zts-20020429/ Installing PHP CLI binary:/home/mfischer/php4/bin/ Installing PEAR environment: /home/mfischer/php4/lib/php/ [PEAR] Archive_Tar- installed: 0.9 [PEAR] Console_Getopt - installed: 1.0 [PEAR] PEAR - installed: 1.0b1 Fatal error: Call to undefined function: 136152012() in /home/mfischer/isrc/cvs/php4/pear/PEAR.php on line 641 [PEAR] DB - installed: 1.3 [PEAR] HTTP - installed: 1.2 [PEAR] Mail - installed: 1.0.1 [PEAR] Net_SMTP - installed: 1.0 [PEAR] Net_Socket - installed: 1.0.1 [PEAR] XML_Parser - installed: 1.0 [PEAR] XML_RPC- installed: 1.0.4 Fatal error: Call to undefined function: 136152676() in /home/mfischer/isrc/cvs/php4/pear/PEAR.php on line 641 Installing build environment: /home/mfischer/php4/lib/php/build/ Installing header files: /home/mfischer/php4/include/php/ Installing helper programs: /home/mfischer/php4/bin/ program: phpize program: php-config Line 641 is [...] 640:if (method_exists($objref, $destructor)) { 641:$objref-$destructor(); 642:break; 643:} else { [...] Putting the line echo get_class($objref), -$destructor, \n; before 641 gives Installing PHP SAPI module Installing shared extensions: /home/mfischer/php4/lib/php/extensions/no-debug-non-zts-20020429/ Installing PHP CLI binary:/home/mfischer/php4/bin/ Installing PEAR environment: /home/mfischer/php4/lib/php/ [PEAR] Archive_Tar- installed: 0.9 [PEAR] Console_Getopt - installed: 1.0 [PEAR] PEAR - installed: 1.0b1 pear_config-_pear Fatal error: Call to undefined function: -_pear() in /home/mfischer/isrc/cvs/php4/pear/PEAR.php on line 642 [PEAR] DB - installed: 1.3 [PEAR] HTTP - installed: 1.2 [PEAR] Mail - installed: 1.0.1 [PEAR] Net_SMTP - installed: 1.0 [PEAR] Net_Socket - installed: 1.0.1 [PEAR] XML_Parser - installed: 1.0 [PEAR] XML_RPC- installed: 1.0.4 pear_config-_pear Fatal error: Call to undefined function: -_pear() in /home/mfischer/isrc/cvs/php4/pear/PEAR.php on line 642 Installing build environment: /home/mfischer/php4/lib/php/build/ Installing header files: /home/mfischer/php4/include/php/ Installing helper programs: /home/mfischer/php4/bin/ program: phpize program: php-config Now, if I change echo get_class($objref), -$destructor, \n; to echo get_class($objref), $destructor, \n; I can even reproduce a segfault: (gdb) r /home/mfischer/isrc/cvs/php4/pear/install-pear.php /home/mfischer/isrc/cvs/php4/pear/packages/*.tar Program received signal SIGSEGV, Segmentation fault. 0x081295eb in
[PHP-DEV] Fatal error with current CVS php4/pear, inc. segfault
Current CVS upon installing gives me: PHP 4.3.0-dev (cli) (built: Nov 8 2002 21:56:15) Copyright (c) 1997-2002 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies $ make install Installing PHP SAPI module Installing shared extensions: /home/mfischer/php4/lib/php/extensions/no-debug-non-zts-20020429/ Installing PHP CLI binary:/home/mfischer/php4/bin/ Installing PEAR environment: /home/mfischer/php4/lib/php/ [PEAR] Archive_Tar- installed: 0.9 [PEAR] Console_Getopt - installed: 1.0 [PEAR] PEAR - installed: 1.0b1 Fatal error: Call to undefined function: 136152012() in /home/mfischer/isrc/cvs/php4/pear/PEAR.php on line 641 [PEAR] DB - installed: 1.3 [PEAR] HTTP - installed: 1.2 [PEAR] Mail - installed: 1.0.1 [PEAR] Net_SMTP - installed: 1.0 [PEAR] Net_Socket - installed: 1.0.1 [PEAR] XML_Parser - installed: 1.0 [PEAR] XML_RPC- installed: 1.0.4 Fatal error: Call to undefined function: 136152676() in /home/mfischer/isrc/cvs/php4/pear/PEAR.php on line 641 Installing build environment: /home/mfischer/php4/lib/php/build/ Installing header files: /home/mfischer/php4/include/php/ Installing helper programs: /home/mfischer/php4/bin/ program: phpize program: php-config Line 641 is [...] 640:if (method_exists($objref, $destructor)) { 641:$objref-$destructor(); 642:break; 643:} else { [...] Putting the line echo get_class($objref), -$destructor, \n; before 641 gives Installing PHP SAPI module Installing shared extensions: /home/mfischer/php4/lib/php/extensions/no-debug-non-zts-20020429/ Installing PHP CLI binary:/home/mfischer/php4/bin/ Installing PEAR environment: /home/mfischer/php4/lib/php/ [PEAR] Archive_Tar- installed: 0.9 [PEAR] Console_Getopt - installed: 1.0 [PEAR] PEAR - installed: 1.0b1 pear_config-_pear Fatal error: Call to undefined function: -_pear() in /home/mfischer/isrc/cvs/php4/pear/PEAR.php on line 642 [PEAR] DB - installed: 1.3 [PEAR] HTTP - installed: 1.2 [PEAR] Mail - installed: 1.0.1 [PEAR] Net_SMTP - installed: 1.0 [PEAR] Net_Socket - installed: 1.0.1 [PEAR] XML_Parser - installed: 1.0 [PEAR] XML_RPC- installed: 1.0.4 pear_config-_pear Fatal error: Call to undefined function: -_pear() in /home/mfischer/isrc/cvs/php4/pear/PEAR.php on line 642 Installing build environment: /home/mfischer/php4/lib/php/build/ Installing header files: /home/mfischer/php4/include/php/ Installing helper programs: /home/mfischer/php4/bin/ program: phpize program: php-config Now, if I change echo get_class($objref), -$destructor, \n; to echo get_class($objref), $destructor, \n; I can even reproduce a segfault: (gdb) r /home/mfischer/isrc/cvs/php4/pear/install-pear.php /home/mfischer/isrc/cvs/php4/pear/packages/*.tar Program received signal SIGSEGV, Segmentation fault. 0x081295eb in zend_hash_index_update_or_next_insert (ht=0x831e4f8, h=1, pData=0xbfffe7a0, nDataSize=4, pDest=0x0, flag=1) at /home/mfischer/isrc/cvs/php4/Zend/zend_hash.c:377 377 p = ht-arBuckets[nIndex]; (gdb) bt full #0 0x081295eb in zend_hash_index_update_or_next_insert (ht=0x831e4f8, h=1, pData=0xbfffe7a0, nDataSize=4, pDest=0x0, flag=1) at /home/mfischer/isrc/cvs/php4/Zend/zend_hash.c:377 ht = (HashTable *) 0x831e4f8 nDataSize = 4 flag = 1 nIndex = 0 p = (Bucket *) 0xbfffe7a0 #1 0x0812bdae in zif_each (ht=1, return_value=0x8341d8c, this_ptr=0x0, return_value_used=1) at /home/mfischer/isrc/cvs/php4/Zend/zend_builtin_functions.c:365 return_value = (zval *) 0x8341d8c array = (zval **) 0x81d3474 entry = (zval *) 0x8341d8c entry_ptr = (zval **) 0x830b8e8 tmp = (zval *) 0xbfffe7a0 string_key = 0x1 Address 0x1 out of bounds num_key = 136270088 inserted_pointer = (zval **) 0x81f6560 target_hash = (HashTable *) 0x81fcf64 #2 0x0813593a in execute (op_array=0x81f51b0) at /home/mfischer/isrc/cvs/php4/Zend/zend_execute.c:1597 original_return_value = (zval **) 0x81f5108 return_value_used = 1 execute_data = {opline = 0x81f6548, function_state = {function_symbol_table = 0x82e1a2c, function = 0x81a7bc0, reserved = {0x8125419, 0x81dad64, 0x16, 0xb13c}}, fbc = 0x0, ce = 0x0, object = {ptr = 0x0}, Ts = 0xbfffe7c4, original_in_execution = 0 '\0', op_array = 0x81f51b0, prev_execute_data = 0xb0f8} #3 0x0811f623 in call_user_function_ex (function_table=0x81a68c8, object_pp=0x0, function_name=0x81fcc04, retval_ptr_ptr=0xb178, param_count=0, params=0x832ade4, no_separation=1, symbol_table=0x0) at /home/mfischer/isrc/cvs/php4/Zend/zend_execute_API.c:561 function_name = (zval *) 0x0 i = 0 original_return_value = (zval **) 0xbfffd608 calling_symbol_table = (HashTable *)