From:             shawn at digitalpoint dot com
Operating system: SuSE Linux Enterprise 9.3
PHP version:      5.1.6
PHP Bug Type:     cURL related
Bug description:  https URLs with curl causes segfault

Description:
------------
Configure line:

'./configure' '--with-config-file-path=/etc' '--with-
libdir=lib64' '--with-apxs2=/usr/sbin/apxs2' '--with-zlib' '--
with-mysql' '--with-gd' '--with-png-dir' '--with-freetype-dir' 
'--with-jpeg-dir' '--with-curl' '--enable-exif' '--enable-
mbstring' '--with-openssl'

Updated everything that I could think of that could be 
related...  libcurl/7.15.5 OpenSSL/0.9.8d zlib/1.2.1

Reproduce code:
---------------
<?php
        $curl = curl_init('https://www.apple.com/');
        $response = curl_exec($curl);
?>

Expected result:
----------------
Not a segfault.

Actual result:
--------------
#0  0x0000002a9766dd0f in sk_pop_free () from /usr/local/
ssl/lib/libcrypto.so.0.9.8
#1  0x0000002a976a1844 in X509_VERIFY_PARAM_free () from /
usr/local/ssl/lib/libcrypto.so.0.9.8
#2  0x0000002a9749af4f in SSL_CTX_free () from /usr/local/
ssl/lib/libssl.so.0.9.8
#3  0x0000002a9795f1dc in Curl_ossl_close (conn=0x84f890) at 
ssluse.c:724
#4  0x0000002a9796e047 in Curl_ssl_close (conn=<value 
optimized out>) at sslgen.c:381
#5  0x0000002a979580fd in Curl_disconnect (conn=0x84f890) at 
url.c:1634
#6  0x0000002a97958468 in ConnectionKillOne (data=0x844430) 
at url.c:1835
#7  0x0000002a9795d75e in Curl_close (data=0x844430) at 
url.c:203
#8  0x0000002a979673ae in curl_easy_cleanup (curl=0x150) at 
easy.c:485
#9  0x0000002a967af773 in _php_curl_close (rsrc=<value 
optimized out>) at /root/software_source/php-5.1.6/ext/curl/
interface.c:1750
#10 0x0000002a969739cd in list_entry_destructor (ptr=<value 
optimized out>) at /root/software_source/php-5.1.6/Zend/
zend_list.c:179
#11 0x0000002a96971b44 in zend_hash_del_key_or_index 
(ht=0x2a96da2ec8, arKey=<value optimized out>, 
nKeyLength=<value optimized out>, h=9, flag=<value optimized 
out>) at /root/software_source/php-5.1.6/Zend/zend_hash.c:
492
#12 0x0000002a96973c5e in _zend_list_delete (id=9) at /root/
software_source/php-5.1.6/Zend/zend_list.c:58
#13 0x0000002a967aa754 in zif_curl_close (ht=<value 
optimized out>, return_value=0x8cb258, 
return_value_ptr=<value optimized out>, this_ptr=<value 
optimized out>, return_value_used=<value optimized out>)
    at /root/software_source/php-5.1.6/ext/curl/interface.c:
1735
#14 0x0000002a9698617a in zend_do_fcall_common_helper_SPEC 
(execute_data=0x7fbfffb750) at zend_vm_execute.h:200
#15 0x0000002a969d845d in execute (op_array=0x8cc378) at 
zend_vm_execute.h:92
#16 0x0000002a96985cbe in zend_do_fcall_common_helper_SPEC 
(execute_data=0x7fbfffb980) at zend_vm_execute.h:234
#17 0x0000002a969d845d in execute (op_array=0x8cacb8) at 
zend_vm_execute.h:92
#18 0x0000002a96985cbe in zend_do_fcall_common_helper_SPEC 
(execute_data=0x7fbfffbd70) at zend_vm_execute.h:234
#19 0x0000002a969d845d in execute (op_array=0x8adc68) at 
zend_vm_execute.h:92
#20 0x0000002a96966ece in zend_execute_scripts (type=8, 
retval=0x0, file_count=3) at /root/software_source/
php-5.1.6/Zend/zend.c:1109
#21 0x0000002a9692acc9 in php_execute_script 
(primary_file=0x7fbfffe2c0) at /root/software_source/
php-5.1.6/main/main.c:1737
#22 0x0000002a969d8e66 in php_handler (r=0x7a9ee0) at /root/
software_source/php-5.1.6/sapi/apache2handler/
sapi_apache2.c:586
#23 0x0000000000427111 in ap_run_handler ()
#24 0x000000000042a0a9 in ap_invoke_handler ()
#25 0x0000000000424fce in ap_process_request ()
#26 0x000000000041ff58 in ap_process_http_connection ()
#27 0x00000000004312d1 in ap_run_process_connection ()
#28 0x00000000004313e2 in ap_process_connection ()
#29 0x0000000000425fe5 in child_main ()
#30 0x00000000004261a9 in make_child ()
#31 0x0000000000426294 in startup_children ()
#32 0x000000000042694b in ap_mpm_run ()
#33 0x000000000042c9bf in main ()

-- 
Edit bug report at http://bugs.php.net/?id=39182&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39182&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39182&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39182&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39182&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39182&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39182&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39182&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39182&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39182&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39182&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39182&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39182&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39182&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39182&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39182&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39182&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39182&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39182&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39182&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39182&r=mysqlcfg

Reply via email to