From: [EMAIL PROTECTED] Operating system: Solaris 9 PHP version: 5.2.0RC4 PHP Bug Type: Reproducible crash Bug description: "pear upgrade-all" crashes in parse_url (SIGBUS)
Description: ------------ After installing PHP 5.2.0RC4 I started pear upgrade-all to update my PEAR packages, but this crashes after "Will upgrade mail" with SIGBUS. The backtrace shows that something in parsing a URL fails (parse_url crashes) Interesting is that upgrading "mail" with "pear upgrade mail" works and after that no BUS error happens anymore (because no more packages needed an upgrade). PHP is compiled with ZTS, because webserver plugin is multithreaded, so CLI is also multithread-enabled. Reproduce code: --------------- # pear upgrade-all Will upgrade mail Bus Error (core dumped) Actual result: -------------- (gdb) bt #0 _zend_mm_alloc_int (heap=0x5c7a88, size=6) at /pangaea/install/php-5.2.0RC4/Zend/zend_alloc.c:1090 #1 0x002a2ef0 in _estrndup (s=0x6 <Address 0x6 out of bounds>, length=5) at /pangaea/install/php-5.2.0RC4/Zend/zend_alloc.c:1761 #2 0x002c2a88 in add_assoc_string_ex (arg=0xc08198, key=0x508a08 "scheme", key_len=7, str=0x8f6860 "/mail", duplicate=1) at /pangaea/install/php-5.2.0RC4/Zend/zend_API.c:1030 #3 0x00220ac4 in zif_parse_url (ht=12613968, return_value=0xc08198, return_value_ptr=0x0, this_ptr=0x0, return_value_used=1, tsrm_ls=0x5c4f80) at /pangaea/install/php-5.2.0RC4/ext/standard/url.c:389 #4 0x002e0f3c in zend_do_fcall_common_helper_SPEC (execute_data=0xffbf6338, tsrm_ls=0x5c4f80) at zend_vm_execute.h:200 #5 0x002e0618 in execute (op_array=0x862338, tsrm_ls=0x5c4f80) at zend_vm_execute.h:92 #6 0x002e093c in zend_do_fcall_common_helper_SPEC (execute_data=0xffbf72a8, tsrm_ls=0x5c4f80) at zend_vm_execute.h:234 #7 0x002e0618 in execute (op_array=0xb69128, tsrm_ls=0x5c4f80) at zend_vm_execute.h:92 #8 0x002e093c in zend_do_fcall_common_helper_SPEC (execute_data=0xffbf7e90, tsrm_ls=0x5c4f80) at zend_vm_execute.h:234 #9 0x002e0618 in execute (op_array=0xbb8f30, tsrm_ls=0x5c4f80) at zend_vm_execute.h:92 #10 0x002e093c in zend_do_fcall_common_helper_SPEC (execute_data=0xffbf9ca0, tsrm_ls=0x5c4f80) at zend_vm_execute.h:234 #11 0x002e0618 in execute (op_array=0xa13118, tsrm_ls=0x5c4f80) at zend_vm_execute.h:92 #12 0x002e093c in zend_do_fcall_common_helper_SPEC (execute_data=0xffbfc898, tsrm_ls=0x5c4f80) at zend_vm_execute.h:234 #13 0x002e0618 in execute (op_array=0x95c468, tsrm_ls=0x5c4f80) at zend_vm_execute.h:92 #14 0x002e093c in zend_do_fcall_common_helper_SPEC (execute_data=0xffbfcd08, tsrm_ls=0x5c4f80) at zend_vm_execute.h:234 #15 0x002e0618 in execute (op_array=0x961bc8, tsrm_ls=0x5c4f80) at zend_vm_execute.h:92 #16 0x002e093c in zend_do_fcall_common_helper_SPEC (execute_data=0xffbff348, tsrm_ls=0x5c4f80) at zend_vm_execute.h:234 #17 0x002e0618 in execute (op_array=0x5db848, tsrm_ls=0x5c4f80) at zend_vm_execute.h:92 #18 0x002c0ecc in zend_execute_scripts (type=8, tsrm_ls=0x5c4f80, retval=0x0, file_count=3) at /pangaea/install/php-5.2.0RC4/Zend/zend.c:1096 #19 0x00273d84 in php_execute_script (primary_file=0xffbffbc8, tsrm_ls=0x5c4f80) at /pangaea/install/php-5.2.0RC4/main/main.c:1759 #20 0x0034a3e4 in main (argc=13, argv=0xffbffc64) at /pangaea/install/php-5.2.0RC4/sapi/cli/php_cli.c:1102 -- Edit bug report at http://bugs.php.net/?id=38837&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38837&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38837&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38837&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38837&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38837&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38837&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38837&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38837&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38837&r=support Expected behavior: http://bugs.php.net/fix.php?id=38837&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38837&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38837&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38837&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38837&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38837&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38837&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38837&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38837&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38837&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38837&r=mysqlcfg