|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-09-15 14:23 UTC] tony2001@php.net
[2006-09-16 07:11 UTC] thetaphi@php.net
[2006-09-17 08:03 UTC] tony2001@php.net
[2006-09-25 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 13:00:02 2025 UTC |
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