php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67089 Segmentation fault
Submitted: 2014-04-16 19:43 UTC Modified: -
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: kasztelix at gmail dot com Assigned:
Status: Closed Package: pecl_http (PECL)
PHP Version: 5.5.11 OS: Ubuntu 12.04
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.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kasztelix at gmail dot com
New email:
PHP Version: OS:

 

 [2014-04-16 19:43 UTC] kasztelix at gmail dot com
Description:
------------
Segmentation fault occurs when trying to unit test a class that is using pecl_http v2.

Test script:
---------------
See the repo: https://github.com/iwankgb/threads/tree/95c4021937ed2965d01382b0f2ee2000b92a04c9.

Running unit tests with: ./bin/phpunit -c config

Actual result:
--------------
Backtrace:
#0  0x0000000000a5ad9b in zend_objects_store_put (object=0x29460b0, dtor=0, free_storage=0x7f3815d8e61b <php_http_message_body_object_free>, 
    clone=0, tsrm_ls=0x29f70f8) at /home/maciek/php-5.5.11/Zend/zend_objects_API.c:112
112		if (EG(objects_store).free_list_head != -1) {
(gdb) bt
#0  0x0000000000a5ad9b in zend_objects_store_put (object=0x29460b0, dtor=0, free_storage=0x7f3815d8e61b <php_http_message_body_object_free>, 
    clone=0, tsrm_ls=0x29f70f8) at /home/maciek/php-5.5.11/Zend/zend_objects_API.c:112
#1  0x00007f3815d8e529 in php_http_message_body_object_new_ex (ce=0x2762e90, body=0x297a700, ptr=0x29f7138, tsrm_ls=0x29f70f8)
    at /home/maciek/pecl_http-2.0.5/php_http_message_body.c:588
#2  0x00007f3815d9d253 in php_http_new (ovp=0x0, ce=0x2762e90, create=0x7f3815d8e46d <php_http_message_body_object_new_ex>, parent_ce=0x0, 
    intern_ptr=0x297a700, obj_ptr=0x29f7138, tsrm_ls=0x29f70f8) at /home/maciek/pecl_http-2.0.5/php_http_object.c:49
#3  0x00007f3815d939ce in php_http_message_object_init_body_object (obj=0x29f70f8) at /home/maciek/pecl_http-2.0.5/php_http_message.c:790
#4  0x00007f3815d94ff1 in zim_HttpMessage_getBody (ht=0, return_value=0x298e600, return_value_ptr=0x0, this_ptr=0x29654a0, 
    return_value_used=1, tsrm_ls=0x2521d10) at /home/maciek/pecl_http-2.0.5/php_http_message.c:1061
#5  0x0000000000a64657 in zend_do_fcall_common_helper_SPEC (execute_data=0x7f381eb17e20, tsrm_ls=0x2521d10)
    at /home/maciek/php-5.5.11/Zend/zend_vm_execute.h:550
#6  0x0000000000a650eb in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (execute_data=0x7f381eb17e20, tsrm_ls=0x2521d10)
    at /home/maciek/php-5.5.11/Zend/zend_vm_execute.h:685
#7  0x0000000000a63987 in execute_ex (execute_data=0x7f381eb17e20, tsrm_ls=0x2521d10) at /home/maciek/php-5.5.11/Zend/zend_vm_execute.h:363
#8  0x0000000000a63a6c in zend_execute (op_array=0x7f3815a4a1d8, tsrm_ls=0x2521d10) at /home/maciek/php-5.5.11/Zend/zend_vm_execute.h:388
#9  0x0000000000a06cbe in zend_call_function (fci=0x7ffff9f9dc90, fci_cache=0x7ffff9f9dc60, tsrm_ls=0x2521d10)
    at /home/maciek/php-5.5.11/Zend/zend_execute_API.c:939
#10 0x0000000000780464 in zim_reflection_method_invokeArgs (ht=2, return_value=0x28dbaa0, return_value_ptr=0x0, this_ptr=0x7f38158ff4b8, 
    return_value_used=1, tsrm_ls=0x2521d10) at /home/maciek/php-5.5.11/ext/reflection/php_reflection.c:3015
#11 0x0000000000a64657 in zend_do_fcall_common_helper_SPEC (execute_data=0x7f381eb15db8, tsrm_ls=0x2521d10)
    at /home/maciek/php-5.5.11/Zend/zend_vm_execute.h:550
#12 0x0000000000a650eb in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (execute_data=0x7f381eb15db8, tsrm_ls=0x2521d10)
    at /home/maciek/php-5.5.11/Zend/zend_vm_execute.h:685
#13 0x0000000000a63987 in execute_ex (execute_data=0x7f381eb15db8, tsrm_ls=0x2521d10) at /home/maciek/php-5.5.11/Zend/zend_vm_execute.h:363
#14 0x0000000000a63a6c in zend_execute (op_array=0x7f381eb48e78, tsrm_ls=0x2521d10) at /home/maciek/php-5.5.11/Zend/zend_vm_execute.h:388
#15 0x0000000000a1d913 in zend_execute_scripts (type=8, tsrm_ls=0x2521d10, retval=0x0, file_count=3)
    at /home/maciek/php-5.5.11/Zend/zend.c:1316
#16 0x000000000095e712 in php_execute_script (primary_file=0x7ffff9fa0340, tsrm_ls=0x2521d10) at /home/maciek/php-5.5.11/main/main.c:2506
#17 0x0000000000adebd1 in do_cli (argc=4, argv=0x2521be0, tsrm_ls=0x2521d10) at /home/maciek/php-5.5.11/sapi/cli/php_cli.c:994
#18 0x0000000000ae0208 in main (argc=4, argv=0x2521be0) at /home/maciek/php-5.5.11/sapi/cli/php_cli.c:1378

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-04-22 10:22 UTC] mike@php.net
Automatic comment on behalf of mike
Revision: http://git.php.net/?p=pecl/http/pecl_http.git;a=commit;h=1b43287170541e6276f1e1676921125b04a0baf4
Log: fix bug #67089 	Segmentation fault (TSRM)
 [2014-04-22 10:22 UTC] mike@php.net
-Status: Open +Status: Closed
 [2014-04-23 14:51 UTC] mike@php.net
Automatic comment on behalf of mike
Revision: http://git.php.net/?p=pecl/http/pecl_http.git;a=commit;h=1b43287170541e6276f1e1676921125b04a0baf4
Log: fix bug #67089 	Segmentation fault (TSRM)
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Oct 03 06:05:53 2022 UTC