Bug #68173 [Com]: SIGSEV cURLing over SSL

From: Date: Mon, 22 Jun 2015 17:26:32 +0000
Subject: Bug #68173 [Com]: SIGSEV cURLing over SSL
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193765@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68173&edit=1 ID: 68173 Comment by: pegasus at vaultwiki dot org Reported by: pegasus at vaultwiki dot org Summary: SIGSEV cURLing over SSL Status: Feedback Type: Bug Package: Reproducible crash Operating System: Centos 6 64-bit PHP Version: master-Git-2014-10-07 (Git) Block user comment: N Private report: N New Comment: My understanding is that this issue was already fixed. I have not encountered this segfault since updating to a new commit some time in November. Previous Comments: ------------------------------------------------------------------------ [2015-06-22 13:57:35] kalle@php.net Can you post a simple script to reproduce and try to reproduce it with 7.0.0 Alpha 1? ------------------------------------------------------------------------ [2014-10-07 06:44:55] pegasus at vaultwiki dot org Description: ------------ The backtrace shows a failure in libcurl.so. However, there is no SIGSEV under PHP 5.6, and multiple versions of OpenSSL yielded the same results. Expected result: ---------------- No crash. Actual result: -------------- #0 0x00000032cc61ee22 in ?? () from /usr/lib64/libcurl.so.4 #1 0x00000032cc6222f0 in Curl_close () from /usr/lib64/libcurl.so.4 #2 0x00000000005f2ed3 in _php_curl_close_ex (ch=0x7f239390ec80) at /root/php-src/ext/curl/interface.c:3164 #3 0x00000000005f3232 in _php_curl_close (rsrc=0x7f239382e680) at /root/php-src/ext/curl/interface.c:3217 #4 0x00000000009a8527 in zend_resource_dtor (res=0x7f239382e680) at /root/php-src/Zend/zend_list.c:72 #5 0x00000000009a89b4 in list_entry_destructor (zv=0x7fff36f67b90) at /root/php-src/Zend/zend_list.c:170 #6 0x00000000009a4dc8 in _zend_hash_del_el_ex (ht=0x14d6368, idx=75, p=0x7f239391c960, prev=0x0) at /root/php-src/Zend/zend_hash.c:638 #7 0x00000000009a56ed in zend_hash_index_del (ht=0x14d6368, h=129) at /root/php-src/Zend/zend_hash.c:871 #8 0x00000000009a84d3 in _zend_list_free (res=0x7f239382e680) at /root/php-src/Zend/zend_list.c:59 #9 0x000000000098f221 in _zval_dtor_func_for_ptr (p=0x7f239382e680, __zend_filename=0xf5ffa8 "/root/php-src/Zend/zend_objects.c", __zend_lineno=61) at /root/php-src/Zend/zend_variables.c:132 #10 0x0000000000977501 in i_zval_ptr_dtor (zval_ptr=0x7f239399d050, __zend_filename=0xf5ffa8 "/root/php-src/Zend/zend_objects.c", __zend_lineno=61) at /root/php-src/Zend/zend_execute.h:59 #11 0x0000000000978b8f in _zval_ptr_dtor (zval_ptr=0x7f239399d050, __zend_filename=0xf5ffa8 "/root/php-src/Zend/zend_objects.c", __zend_lineno=61) at /root/php-src/Zend/zend_execute_API.c:489 #12 0x00000000009caace in zend_object_std_dtor (object=0x7f239399d000) at /root/php-src/Zend/zend_objects.c:61 #13 0x00000000009d186b in zend_objects_store_del (object=0x7f239399d000) at /root/php-src/Zend/zend_objects_API.c:181 #14 0x000000000098f20b in _zval_dtor_func_for_ptr (p=0x7f239399d000, __zend_filename=0xf5b968 "/root/php-src/Zend/zend_variables.c", __zend_lineno=296) at /root/php-src/Zend/zend_variables.c:124 #15 0x0000000000977501 in i_zval_ptr_dtor (zval_ptr=0x7f23939961d0, __zend_filename=0xf5b968 "/root/php-src/Zend/zend_variables.c", __zend_lineno=296) at /root/php-src/Zend/zend_execute.h:59 #16 0x0000000000978b8f in _zval_ptr_dtor (zval_ptr=0x7f23939961d0, __zend_filename=0xf5b968 "/root/php-src/Zend/zend_variables.c", __zend_lineno=296) at /root/php-src/Zend/zend_execute_API.c:489 #17 0x000000000098f86b in _zval_ptr_dtor_wrapper (zval_ptr=0x7f23939961d0) at /root/php-src/Zend/zend_variables.c:296 #18 0x00000000009a57ef in zend_hash_destroy (ht=0x7f23939bf848) at /root/php-src/Zend/zend_hash.c:896 #19 0x000000000098f192 in _zval_dtor_func_for_ptr (p=0x7f23939bf840, __zend_filename=0xb07540 "/root/php-src/ext/curl/interface.c", __zend_lineno=3178) at /root/php-src/Zend/zend_variables.c:108 #20 0x0000000000977501 in i_zval_ptr_dtor (zval_ptr=0x7f23939a36e0, __zend_filename=0xb07540 "/root/php-src/ext/curl/interface.c", __zend_lineno=3178) at /root/php-src/Zend/zend_execute.h:59 #21 0x0000000000978b8f in _zval_ptr_dtor (zval_ptr=0x7f23939a36e0, __zend_filename=0xb07540 "/root/php-src/ext/curl/interface.c", __zend_lineno=3178) at /root/php-src/Zend/zend_execute_API.c:489 #22 0x00000000005f3017 in _php_curl_close_ex (ch=0x7f239390ec80) at /root/php-src/ext/curl/interface.c:3178 #23 0x00000000005f3232 in _php_curl_close (rsrc=0x7f239382e680) at /root/php-src/ext/curl/interface.c:3217 #24 0x00000000009a8527 in zend_resource_dtor (res=0x7f239382e680) at /root/php-src/Zend/zend_list.c:72 #25 0x00000000009a8b1c in zend_close_rsrc (zv=0x7f239391c970) at /root/php-src/Zend/zend_list.c:214 #26 0x00000000009a61ba in zend_hash_reverse_apply (ht=0x14d6368, apply_func=0x9a8aee <zend_close_rsrc>) at /root/php-src/Zend/zend_hash.c:1126 #27 0x00000000009a8b42 in zend_close_rsrc_list (ht=0x14d6368) at /root/php-src/Zend/zend_list.c:222 #28 0x00000000009785d1 in shutdown_executor () at /root/php-src/Zend/zend_execute_API.c:334 #29 0x0000000000991832 in zend_deactivate () at /root/php-src/Zend/zend.c:900 #30 0x00000000009036f7 in php_request_shutdown (dummy=0x0) at /root/php-src/main/main.c:1859 #31 0x0000000000a62b99 in main (argc=8, argv=0x7fff36f6a9b8) at /root/php-src/sapi/fpm/fpm/fpm_main.c:1976 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68173&edit=1

« previous php.bugs (#193765) next »