Bug #68309 [NEW]: Random crash on shutdown

From: Date: Mon, 27 Oct 2014 12:17:41 +0000
Subject: Bug #68309 [NEW]: Random crash on shutdown
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188320@lists.php.net to get a copy of this message
From:             Danack at basereality dot com
Operating system: Centos 6.4
PHP version:      5.6.2
Package:          CGI/CLI related
Bug Type:         Bug
Bug description:Random crash on shutdown

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


-- 
Edit bug report at https://bugs.php.net/bug.php?id=68309&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=68309&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=68309&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=68309&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=68309&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=68309&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=68309&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=68309&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=68309&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=68309&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=68309&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=68309&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=68309&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=68309&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68309&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=68309&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=68309&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=68309&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68309&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=68309&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=68309&r=mysqlcfg



Thread (7 messages)

« previous php.bugs (#188320) next »