php.net |  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: pajoye@php.net 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
 [2010-09-19 14:30 UTC] pajoye@php.net
Description:
------------
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:
---------------
Zend/bench.php


Patches

ze2-bug-52888 (last revision 2010-09-19 23:58 UTC by kalle@php.net)

Add a Patch

Pull Requests

Add a Pull Request

History

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

Patch Name: ze2-bug-52888
Revision:   1284940727
URL:        http://bugs.php.net/patch-display.php?bug=52888&patch=ze2-bug-52888&revision=1284940727
 [2010-09-20 01:59 UTC] kalle@php.net
-Assigned To: dmitry +Assigned To: Kalle
 [2010-09-20 01:59 UTC] kalle@php.net
Added a simple patch that fixes the crash and re-assigned to me
 [2010-09-20 01:59 UTC] kalle@php.net
-Assigned To: Kalle +Assigned To: kalle
 [2010-09-20 03:11 UTC] pajoye@php.net
-Assigned To: kalle +Assigned To: dmitry
 [2010-09-20 03:11 UTC] pajoye@php.net
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] dmitry@php.net
Automatic comment from SVN on behalf of dmitry
Revision: http://svn.php.net/viewvc/?view=revision&revision=303619
Log: Fixed bug #52888 (Zend MM shutdown crash)
 [2010-09-20 14:13 UTC] dmitry@php.net
-Status: Assigned +Status: Closed
 [2010-09-20 14:13 UTC] dmitry@php.net
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
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Jun 01 14:01:27 2020 UTC