php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54356 PHP crashes in CLI
Submitted: 2011-03-23 09:54 UTC Modified: 2013-02-18 00:34 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: php-bugs at majkl578 dot cz Assigned:
Status: No Feedback Package: CGI/CLI related
PHP Version: 5.3.6 OS: Linux Debian SID
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2011-03-23 09:54 UTC] php-bugs at majkl578 dot cz
Description:
------------
PHP crashes unexpectedly in CLI mode.

Actual result:
--------------
(gdb) bt
#0  0x0831f1a5 in gc_zval_possible_root (zv=0xb4cc94b0)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_gc.c:143
#1  0x082f09f9 in _zval_ptr_dtor (zval_ptr=0xb4c41f24)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_gc.h:183
#2  0x0830d874 in zend_hash_destroy (ht=0xb4bd83e8)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_hash.c:729
#3  0x082ff056 in _zval_dtor_func (zvalue=0xb4cc241c)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_variables.c:46
#4  0x082f09c7 in _zval_ptr_dtor (zval_ptr=0xb4bd55c8)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_variables.h:35
#5  0x0830d874 in zend_hash_destroy (ht=0xb4bd4218)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_hash.c:729
#6  0x082ff056 in _zval_dtor_func (zvalue=0xb4bd322c)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_variables.c:46
#7  0x082f09c7 in _zval_ptr_dtor (zval_ptr=0xb4bdc884)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_variables.h:35
#8  0x0830d874 in zend_hash_destroy (ht=0xb4d730f8)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_hash.c:729
#9  0x082ff056 in _zval_dtor_func (zvalue=0xb4dea89c)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_variables.c:46
#10 0x082f09c7 in _zval_ptr_dtor (zval_ptr=0xb4bc6c88)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_variables.h:35
#11 0x0830d874 in zend_hash_destroy (ht=0xb4bd553c)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_hash.c:729
#12 0x08322793 in zend_object_std_dtor (object=0xb4bcf7bc)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_objects.c:45
#13 0x083227d2 in zend_objects_free_object_storage (object=0xb4bcf7bc)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_objects.c:126
#14 0x08326a6c in zend_objects_store_del_ref_by_handle_ex (
    handle=<unknown type>, handlers=0x878f380)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_objects_API.c:220
#15 0x08326aaf in zend_objects_store_del_ref (zobject=0xb4deab68)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_objects_API.c:172
#16 0x082ff099 in _zval_dtor_func (zvalue=0xb4deab68)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_variables.c:55
#17 0x082f09c7 in _zval_ptr_dtor (zval_ptr=0x99ba324)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_variables.h:35
#18 0x08327d3e in zend_leave_helper_SPEC (execute_data=0xb4c41f18)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_vm_execute.h:160
#19 0x08345ef7 in ZEND_HANDLE_EXCEPTION_SPEC_HANDLER (execute_data=0x99ba2c4)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_vm_execute.h:679
#20 0x083283e4 in execute (op_array=0x9c36db8)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_vm_execute.h:107
#21 0x082f2c52 in zend_call_function (fci=0xbf8cd06c, fci_cache=0xbf8cd090)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_execute_API.c:964
#22 0x083178e2 in zend_call_method (object_pp=0xbf8cd11c, obj_ce=0x9c33684, 
    fn_proxy=0x9c3377c, function_name=0x872dd75 "__get", function_name_len=5, 
    retval_ptr_ptr=0xbf8cd12c, param_count=1, arg1=0xb4bc72ec, arg2=0x0)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_interfaces.c:97
#23 0x08323234 in zend_std_call_getter (object=0xb4bd1cbc, member=0xb4bc72ec)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_object_handlers.c:82
#24 0x08325af1 in zend_std_read_property (object=0xb4bd1cbc, member=0xacb6184, 
    type=0)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_object_handlers.c:354
#25 0x0834945d in zend_fetch_property_address_read_helper_SPEC_CV_CONST (
    type=0, execute_data=0x99b6abc)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_vm_execute.h:23765
#26 0x083283e4 in execute (op_array=0x998199c)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend_vm_execute.h:107
#27 0x08301300 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/Zend/zend.c:1266
#28 0x082a583e in php_execute_script (primary_file=0xbf8cf65c)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/main/main.c:2296
#29 0x083a053d in main (argc=6, argv=0xbf8cf774)
    at /build/buildd-php5_5.3.6-2-i386-Xx7Se_/php5-5.3.6/sapi/cli/php_cli.c:1197


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-23 09:57 UTC] aharvey@php.net
-Status: Open +Status: Feedback
 [2011-03-23 09:57 UTC] aharvey@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.


 [2013-02-18 00:34 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 "Open". Thank you.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Dec 07 16:05:57 2022 UTC