php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68309 Random crash on shutdown
Submitted: 2014-10-27 12:17 UTC Modified: 2021-12-26 04:22 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: Danack at basereality dot com Assigned: cmb (profile)
Status: No Feedback Package: CGI/CLI related
PHP Version: 5.6.2 OS: Centos 6.4
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2014-10-27 12:17 UTC] Danack at basereality dot com
Description:
------------
I realise this might be impossible to debug, but I've been seeing a 'random' crash in PHP 5.6.2 when there is a fatal error in a script.

I haven't been able to reproduce it in a simple script however it was captured in a valgrind run.

Possibly related to any of 63481, 64827, 64896, 68121.

Expected result:
----------------
No crash.

Actual result:
--------------
The output from the script when run through valgrind is:

PHP Catchable fatal error:  Argument 1 passed to BaseReality\ViewModel\SiteViewModel::getDisplayableNote() must be an instance of BaseReality\Content\Note, instance of BaseReality\DisplayableContent\DisplayableNote given in /home/intahwebz/intahwebz/src/BaseReality/ViewModel/SiteViewModel.php on line 120


==7433== Invalid read of size 1
==7433==    at 0x68F449: _free_function (php_reflection.c:274)
==7433==    by 0x68F509: reflection_free_objects_storage (php_reflection.c:298)
==7433==    by 0x839D26: zend_objects_store_del_ref_by_handle_ex (zend_objects_API.c:226)
==7433==    by 0x839D5D: zend_objects_store_del_ref (zend_objects_API.c:178)
==7433==    by 0x7F8CAF: _zval_ptr_dtor (zend_variables.h:35)
==7433==    by 0x817E9A: zend_hash_destroy (zend_hash.c:548)
==7433==    by 0x808056: _zval_dtor_func (zend_variables.c:45)
==7433==    by 0x7F8CAF: _zval_ptr_dtor (zend_variables.h:35)
==7433==    by 0x8334C6: zend_object_std_dtor (zend_objects.c:54)
==7433==    by 0x8334F8: zend_objects_free_object_storage (zend_objects.c:137)
==7433==    by 0x839D26: zend_objects_store_del_ref_by_handle_ex (zend_objects_API.c:226)
==7433==    by 0x839D5D: zend_objects_store_del_ref (zend_objects_API.c:178)
==7433==  Address 0x16f060c0 is 0 bytes inside a block of size 248 free'd
==7433==    at 0x4C273F0: free (vg_replace_malloc.c:446)
==7433==    by 0x817ACD: zend_hash_bucket_delete (zend_hash.c:185)
==7433==    by 0x817BF5: zend_hash_reverse_apply (zend_hash.c:733)
==7433==    by 0x128D7E10: zend_accel_fast_shutdown (ZendAccelerator.c:2352)
==7433==    by 0x128DC0FF: accel_deactivate (ZendAccelerator.c:2385)
==7433==    by 0x7FC610: zend_llist_apply (zend_llist.c:191)
==7433==    by 0x7FB8E7: shutdown_executor (zend_execute_API.c:246)
==7433==    by 0x809732: zend_deactivate (zend.c:963)
==7433==    by 0x79C130: php_request_shutdown (main.c:1884)
==7433==    by 0x8B9DBE: do_cli (php_cli.c:1177)
==7433==    by 0x8BB6CC: main (php_cli.c:1378)
==7433== 
zend_mm_heap corrupted


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-11-01 14:45 UTC] laruence@php.net
are you able to consistently reproduce it in your box?
 [2021-12-14 13:56 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-12-14 13:56 UTC] cmb@php.net
Is this still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-12-26 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: Mon Aug 08 23:03:37 2022 UTC