#21710 [Com]: Make install fail with memory fault

From: Date: Tue, 22 Apr 2003 16:37:19 +0000
Subject: #21710 [Com]: Make install fail with memory fault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38070@lists.php.net to get a copy of this message
ID: 21710 Comment by: tstoev at neark dot org Reported By: xavi at ebi dot ac dot uk Status: No Feedback Bug Type: Compile Failure Operating System: OSF1 V5.1 alpha PHP Version: 4.3.0 New Comment: I have experienced this bug too. It happens when you try to install pear. Here is what happens: 1) make install-pear Installing PEAR environment: /usr/local/lib/php/ sh: 81882 Memory fault - core dumped *** Exit 139 Stop. *** Exit 1 Stop. Here is what I find out from the core file: --snip-- Welcome to the Ladebug Debugger Version 65 (built Apr 4 2001 for Compaq Tru64 UNIX) ------------------ object file name: sapi/cli/php core file name: core Reading symbolic information ...done Core file produced from executable 'php' Thread 1 terminated at PC 0x1200edd80 by signal SEGV (ladebug) where >0 0x1200edd80 in php_strspn(s1=0x140081a18[Ladebug Warning: String is too long to display. Only the first $maxstrlen (128) chara cters are shown.]="This class provides handling of tar files in PHP.\nIt supports creating, listing, extracting and adding to tar files.\nGzip suppor", s2=0x140455fd8=" \t", s1_end=0x240081ad9=(null), s2_end=0x240455fda=(null)) "/usr/users/home/tstoev/download s/php-4.3.1/ext/standard/string.c":1305 #1 0x1200e9788 in php_spn_common_handler(ht=2, return_value=0x14007fa58, this_ptr=0x0, return_value_used=1, behavior=0) "/usr/use rs/home/tstoev/downloads/php-4.3.1/ext/standard/string.c":241 #2 0x1200e986c in zif_strspn(ht=2, return_value=0x14007fa58, this_ptr=0x0, return_value_used=1) "/usr/users/home/tstoev/downloads /php-4.3.1/ext/standard/string.c":258 #3 0x1201a3670 in execute(op_array=0x140429758) "/usr/users/home/tstoev/downloads/php-4.3.1/Zend/zend_execute.c":1596 #4 0x1201a3934 in execute(op_array=0x140114258) "/usr/users/home/tstoev/downloads/php-4.3.1/Zend/zend_execute.c":1640 #5 0x12017eaf0 in call_user_function_ex(function_table=0x1403e6930, object_pp=0x140080988, function_name=0x14007f798, retval_ptr_ ptr=0x11ffeacd0, param_count=2, params=0x140455df8, no_separation=1, symbol_table=0x0) "/usr/users/home/tstoev/downloads/php-4.3.1 /Zend/zend_execute_API.c":557 #6 0x12017e130 in call_user_function(function_table=0x140068220, object_pp=0x140080988, function_name=0x14007f798, retval_ptr=0x1 40080158, param_count=2, params=0x11ffead80) "/usr/users/home/tstoev/downloads/php-4.3.1/Zend/zend_execute_API.c":399 #7 0x12011d8e0 in xml_call_handler(parser=0x140080918, handler=0x14007f798, argc=2, argv=0x11ffead80) "/usr/users/home/tstoev/dow nloads/php-4.3.1/ext/xml/xml.c":377 #8 0x12011ea94 in _xml_endElementHandler(userData=0x140080918, name=0x140456d2a="description") "/usr/users/home/tstoev/downloads/ php-4.3.1/ext/xml/xml.c":730 #9 0x1201249d0 in doContent(parser=0x14010e100, startTagLevel=0, enc=0x140037290, s=0x140457387[Ladebug Warning: String is too lo ng to display. Only the first $maxstrlen (128) characters are shown.]="</description>\n <license>PHP License</license>\n <mainta iners>\n <maintainer>\n <user>vblavet</user>\n <role>lead</ro", end=0x1404578b7="", nextPtr=0x0) "/usr/users/home/tst oev/downloads/php-4.3.1/ext/xml/expat/xmlparse.c":1739 #10 0x120123d88 in contentProcessor(parser=0x14010e100, start=0x140457255[Ladebug Warning: String is too long to display. Only the first $maxstrlen (128) characters are shown.]="<package version=\"1.0\">\n <name>Archive_Tar</name>\n <summary>Tar file managem ent class</summary>\n <description>This class prov", end=0x1404578b7="", endPtr=0x0) "/usr/users/home/tstoev/downloads/php-4.3.1/ ext/xml/expat/xmlparse.c":1349 #11 0x120127b8c in doProlog(parser=0x14010e100, enc=0x140037290, s=0x140457255[Ladebug Warning: String is too long to display. Onl y the first $maxstrlen (128) characters are shown.]="<package version=\"1.0\">\n <name>Archive_Tar</name>\n <summary>Tar file ma nagement class</summary>\n <description>This class prov", end=0x1404578b7="", tok=29, next=0x140457255[Ladebug Warning: String is too long to display. Only the first $maxstrlen (128) characters are shown.]="<package version=\"1.0\">\n <name>Archive_Tar</name >\n <summary>Tar file management class</summary>\n <description>This class prov", nextPtr=0x0) "/usr/users/home/tstoev/downloads /php-4.3.1/ext/xml/expat/xmlparse.c":2687 #12 0x120126848 in prologProcessor(parser=0x14010e100, s=0x140457200[Ladebug Warning: String is too long to display. Only the firs t $maxstrlen (128) characters are shown.]="<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n<!DOCTYPE package SYSTEM \"package.dt d\">\n<package version=\"1.0\">\n <name>Archive_Tar", end=0x1404578b7="", nextPtr=0x0) "/usr/users/home/tstoev/downloads/php-4.3. 1/ext/xml/expat/xmlparse.c":2523 #13 0x1201267c8 in prologInitProcessor(parser=0x14010e100, s=0x140457200[Ladebug Warning: String is too long to display. Only the first $maxstrlen (128) characters are shown.]="<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n<!DOCTYPE package SYSTEM \"packag e.dtd\">\n<package version=\"1.0\">\n <name>Archive_Tar", end=0x1404578b7="", nextPtr=0x0) "/usr/users/home/tstoev/downloads/php- 4.3.1/ext/xml/expat/xmlparse.c":2512 #14 0x120123810 in php_XML_ParseBuffer(parser=0x14010e100, len=1719, isFinal=1) "/usr/users/home/tstoev/downloads/php-4.3.1/ext/xm l/expat/xmlparse.c":1150 #15 0x120123760 in php_XML_Parse(parser=0x14010e100, s=0x140432018[Ladebug Warning: String is too long to display. Only the first $maxstrlen (128) characters are shown.]="<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n<!DOCTYPE package SYSTEM \"package.dtd\ ">\n<package version=\"1.0\">\n <name>Archive_Tar", len=1719, isFinal=1) "/usr/users/home/tstoev/downloads/php-4.3.1/ext/xml/expa t/xmlparse.c":1140 #16 0x120120f50 in zif_xml_parse(ht=3, return_value=0x140080118, this_ptr=0x0, return_value_used=1) "/usr/users/home/tstoev/downlo ads/php-4.3.1/ext/xml/xml.c":1340 #17 0x1201a3670 in execute(op_array=0x140114558) "/usr/users/home/tstoev/downloads/php-4.3.1/Zend/zend_execute.c":1596 #18 0x1201a3934 in execute(op_array=0x140114498) "/usr/users/home/tstoev/downloads/php-4.3.1/Zend/zend_execute.c":1640 #19 0x1201a3934 in execute(op_array=0x14017bf58) "/usr/users/home/tstoev/downloads/php-4.3.1/Zend/zend_execute.c":1640 #20 0x1201a3934 in execute(op_array=0x14010c098) "/usr/users/home/tstoev/downloads/php-4.3.1/Zend/zend_execute.c":1640 #21 0x12018b8f4 in zend_execute_scripts(type=8, retval=0x0, file_count=3) "/usr/users/home/tstoev/downloads/php-4.3.1/Zend/zend.c" :864 #22 0x12014c4a0 in php_execute_script(primary_file=0x11fffbd00) "/usr/users/home/tstoev/downloads/php-4.3.1/main/main.c":1573 #23 0x1201a8340 in main(argc=7, argv=0x11fffc018) "/usr/users/home/tstoev/downloads/php-4.3.1/sapi/cli/php_cli.c":746 #24 0x12003e538 in __start(0x300000000, 0x0, 0x140455fdb, 0x240455fda, 0x1404ae001, 0x1000000c1) in sapi/cli/php (ladebug) --snip-- From what I can tell it has something to do with the XML parser that parses the XML files that handle the installation. Let me know if you need anymore info. Previous Comments: ------------------------------------------------------------------------ [2003-01-31 13:49:38] sniper@php.net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. ------------------------------------------------------------------------ [2003-01-17 09:38:29] iliaa@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. Could you please supply a backtrace. ------------------------------------------------------------------------ [2003-01-17 07:02:37] xavi at ebi dot ac dot uk I am trying to install the php under a True64 cluster. We have an apache web server (1.3.26) running on it an a mysql server. I try to install last version of php-4.3.0: ./configure --with-mysql --with-apxs=/path_to_apxs --prefix=install_path --with-config-file-path=path_file make make install the last command fails with the following message: >> Installing shared extensions: /ebi/www/php/lib/php/extensions/no-debug-non-zts-20020429/ Installing PEAR environment: /ebi/www/php/lib/php/ sh: 1943471 Memory fault - core dumped *** Exit 139 Stop. *** Exit 1 << I try to download the last snapshot from: http://snaps.php.net/ download: php4-STABLE-200301171230.tar.gz but it gives me the same message. Is it a bug? or could it be fixed? Thanks for your help, Xavi ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21710&edit=1

« previous php.bugs (#38070) next »