|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52888 Zend MM shutdown crash
Submitted: 2010-09-19 14:30 UTC Modified: 2010-09-20 14:13 UTC
From: Assigned: dmitry (profile)
Status: Closed Package: Reproducible crash
PHP Version: trunk-SVN-2010-09-19 (SVN) OS: Windows-VC9-release
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:
Bug Type:
New email:
PHP Version: OS:


 [2010-09-19 14:30 UTC]
The segments_list test seems to do not be thread safe. But it could come from something else. The crash happens after the end of the script, on shutdown.

php5ts.dll!zend_mm_shutdown(_zend_mm_heap * heap=0x024a7a00, int full_shutdown=0, int silent=0, void * * * tsrm_ls=0x001d1bb8)  Line 1570	C
php5ts.dll!shutdown_memory_manager(int silent=0, int full_shutdown=0, void * * * tsrm_ls=0x001d1bb8)  Line 2583 + 0x23 bytes	C
php5ts.dll!php_request_shutdown(void * dummy=0x00000000)  Line 1689 + 0x2d bytes	C
php.exe!main(int argc=5, char * * argv=0x001d1b10)  Line 1438 + 0x8 bytes	C
 	php.exe!__tmainCRTStartup()  Line 586 + 0x17 bytes	C

Test script:


ze2-bug-52888 (last revision 2010-09-19 23:58 UTC by

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-19 14:31 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: dmitry
 [2010-09-20 01:58 UTC]
The following patch has been added/updated:

Patch Name: ze2-bug-52888
Revision:   1284940727
 [2010-09-20 01:59 UTC]
-Assigned To: dmitry +Assigned To: Kalle
 [2010-09-20 01:59 UTC]
Added a simple patch that fixes the crash and re-assigned to me
 [2010-09-20 01:59 UTC]
-Assigned To: Kalle +Assigned To: kalle
 [2010-09-20 03:11 UTC]
-Assigned To: kalle +Assigned To: dmitry
 [2010-09-20 03:11 UTC]
Other crash, same script, this one can happen in debug mode too.

php5ts_debug.dll!zend_mm_shutdown(_zend_mm_heap * heap=0x02697d18, int full_shutdown=0, int silent=0, void * * * tsrm_ls=0x02513da8)  Line 1683 + 0x6 bytes	C
php5ts_debug.dll!shutdown_memory_manager(int silent=0, int full_shutdown=0, void * * * tsrm_ls=0x02513da8)  Line 2586 + 0x23 bytes	C
php5ts_debug.dll!php_request_shutdown(void * dummy=0x00000000)  Line 1689 + 0x4a bytes	C
php.exe!main(int argc=3, char * * argv=0x02513c90)  Line 1438 + 0xa bytes	C
php.exe!__tmainCRTStartup()  Line 586 + 0x19 bytes	C
php.exe!mainCRTStartup()  Line 403	C
 [2010-09-20 14:12 UTC]
Automatic comment from SVN on behalf of dmitry
Log: Fixed bug #52888 (Zend MM shutdown crash)
 [2010-09-20 14:13 UTC]
-Status: Assigned +Status: Closed
 [2010-09-20 14:13 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Jul 12 13:01:26 2020 UTC