php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49145 php command line segmentation fault
Submitted: 2009-08-03 21:41 UTC Modified: 2009-10-08 18:46 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: dhathorn at uchicago dot edu Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 5.3SVN-2009-08-03 (snap) OS: Linux (RedHat RHEL4)
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dhathorn at uchicago dot edu
New email:
PHP Version: OS:

 

 [2009-08-03 21:41 UTC] dhathorn at uchicago dot edu
Description:
------------
PHP builds and installs alright, but seg faults when installing a pear 
channel.  

Reproduce code:
---------------
~/local/php/bin/pear install channel://pear.php.net/XML_Feed_Parser-1.0.0RC1


Expected result:
----------------
successful pear install

Actual result:
--------------
Backtrace:

#0  0x008c924c in ASN1_STRING_free () from /lib/libcrypto.so.4
#1  0x008c1f31 in ASN1_primitive_free () from /lib/libcrypto.so.4
#2  0x008c1f8a in ASN1_primitive_free () from /lib/libcrypto.so.4
#3  0x008c201d in ASN1_primitive_free () from /lib/libcrypto.so.4
#4  0x008c225d in ASN1_template_free () from /lib/libcrypto.so.4
#5  0x008c2183 in ASN1_primitive_free () from /lib/libcrypto.so.4
#6  0x008c225d in ASN1_template_free () from /lib/libcrypto.so.4
#7  0x008c2183 in ASN1_primitive_free () from /lib/libcrypto.so.4
#8  0x008c2293 in ASN1_item_free () from /lib/libcrypto.so.4
#9  0x008bd3d1 in X509_free () from /lib/libcrypto.so.4
#10 0x008a800b in sk_pop_free () from /lib/libcrypto.so.4
#11 0x00943767 in ssl_sess_cert_free () from /lib/libssl.so.4
#12 0x009444d9 in SSL_SESSION_free () from /lib/libssl.so.4
#13 0x0094227b in SSL_free () from /lib/libssl.so.4
#14 0x080d0e41 in php_openssl_sockop_close (stream=0xb7f1ef24, 
close_handle=1)     at /home/dhathorn/src/php-5.3-
200908031430/ext/openssl/xp_ssl.c:254
#15 0x082f6a6b in _php_stream_free (stream=0xb7f1ef24, 
close_options=11)
    at /home/dhathorn/src/php-5.3-
200908031430/main/streams/streams.c:356
#16 0x082f7142 in stream_resource_regular_dtor (rsrc=0x51)
    at /home/dhathorn/src/php-5.3-
200908031430/main/streams/streams.c:1426
#17 0x08336a81 in list_entry_destructor (ptr=0xb7897958) at 
/home/dhathorn/src/php-5.3-200908031430/Zend/zend_list.c:184
#18 0x08334351 in zend_hash_del_key_or_index (ht=0x8808c24, arKey=0x0, 
nKeyLength=0, h=113, flag=1)
    at /home/dhathorn/src/php-5.3-200908031430/Zend/zend_hash.c:497
#19 0x0833681c in _zend_list_delete (id=113) at 
/home/dhathorn/src/php-5.3-200908031430/Zend/zend_list.c:58
#20 0x0831e0d1 in _zval_ptr_dtor (zval_ptr=0xb78e0dfc)
    at /home/dhathorn/src/php-5.3-
200908031430/Zend/zend_variables.h:35
#21 0x08335928 in zend_hash_clean (ht=0xb7b891e0) at 
/home/dhathorn/src/php-5.3-200908031430/Zend/zend_hash.c:552
#22 0x0834807f in zend_leave_helper_SPEC (execute_data=0xb7c8afd0)
    at /home/dhathorn/src/php-5.3-
200908031430/Zend/zend_vm_execute.h:208
#23 0x08347cf0 in execute (op_array=0xb7bf61b8) at 
/home/dhathorn/src/php-5.3-200908031430/Zend/zend_vm_execute.h:104
#24 0x0832b9e7 in zend_execute_scripts (type=8, retval=0x0, 
file_count=3)
    at /home/dhathorn/src/php-5.3-200908031430/Zend/zend.c:1188
#25 0x082e52b7 in php_execute_script (primary_file=0xbfe2d350)
    at /home/dhathorn/src/php-5.3-200908031430/main/main.c:2212
#26 0x083a23d8 in main (argc=22, argv=0xbfe2d444) at 
/home/dhathorn/src/php-5.3-200908031430/sapi/cli/php_cli.c:1188
(gdb) frame 23
#23 0x08347cf0 in execute (op_array=0xb7bf61b8) at 
/home/dhathorn/src/php-5.3-200908031430/Zend/zend_vm_execute.h:104
104                     if ((ret = EX(opline)->handler(execute_data 
TSRMLS_CC)) > 0) {


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-03 22:02 UTC] jani@php.net
And what is your openssl version?
 [2009-08-03 22:44 UTC] dhathorn at uchicago dot edu
OpenSSL 0.9.7a Feb 19 2003
 [2009-08-10 15:22 UTC] dhathorn at uchicago dot edu
Is there any further information that I can provide or anything else I 
can do to help resolve this?
 [2009-10-07 04:31 UTC] dhathorn at uchicago dot edu
Upgrading the following rpms:

MySQL-client-standard-5.0.27-0.rhel4.i386.rpm
MySQL-devel-standard-5.0.27-0.rhel4.i386.rpm
MySQL-shared-standard-5.0.27-0.rhel4.i386.rpm

to:

MySQL-client-community-5.0.84-0.rhel4.i386.rpm
MySQL-devel-community-5.0.84-0.rhel4.i386.rpm
MySQL-shared-community-5.0.84-0.rhel4.i386.rpm

...made this issue go away.
 [2009-10-08 14:45 UTC] jani@php.net
So there's no point in keeping this open. Are you sure nothing else was updated since you had the issue..? :)
 [2009-10-08 18:46 UTC] dhathorn at uchicago dot edu
Indeed, nothing else was updated.
 [2010-03-26 21:27 UTC] holger dot dippel at umassd dot edu
No kidding.

I had compiled PHP 5.3.2 from the source on RedHat AS 2.6.9 with a general linux MySQL server/client 5.0.27 on the same machine.

pear install and pecl would abort with a Segmentation Fault.

Upgraded to MySQL 5.1.45 server/client (nothing else changed), reconfigured/recompiled PHP, and pear/pecl works like a charm.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 17:01:33 2025 UTC