php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68173 SIGSEV cURLing over SSL
Submitted: 2014-10-07 06:44 UTC Modified: 2015-07-05 04:22 UTC
From: pegasus at vaultwiki dot org Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: master-Git-2014-10-07 (Git) OS: Centos 6 64-bit
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pegasus at vaultwiki dot org
New email:
PHP Version: OS:

 

 [2014-10-07 06:44 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-06-22 13:57 UTC] kalle@php.net
-Status: Open +Status: Feedback
 [2015-06-22 13:57 UTC] kalle@php.net
Can you post a simple script to reproduce and try to reproduce it with 7.0.0 Alpha 1?
 [2015-06-22 17:26 UTC] pegasus at vaultwiki dot org
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.
 [2015-07-05 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue May 17 08:05:45 2022 UTC