php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59685 apc crashes on apache shutdown (includes stacktrace)
Submitted: 2011-03-24 12:54 UTC Modified: 2012-03-08 11:15 UTC
From: raulsalitrero at gmail dot com Assigned: pajoye (profile)
Status: Closed Package: APC (PECL)
PHP Version: Trunk SVN-2011-03-24 (dev) OS: windows xp sp3 (32bit)
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:
Package:
Bug Type:
Summary:
From: raulsalitrero at gmail dot com
New email:
PHP Version: OS:

 

 [2011-03-24 12:54 UTC] raulsalitrero at gmail dot com
Description:
------------
start and then stop apache.

using php as a module using mod_php.
compiled using vc9

apache/2.2.17

apache crashes

Reproduce code:
---------------
using apache as a service.

net start apache
net stop apache



Expected result:
----------------
apache shutdowns normally

Actual result:
--------------
apache crashes while trying to release ntdll.dll
around:

void apc_windows_cs_destroy(apc_windows_cs_rwlock_t *lock)
{
    pRtlDeleteResource(lock);
--> FreeLibrary(ntdll);
    return;
}

backtrace generated using vs2005:

 	ntdll.dll!7c921465() 	
 	[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]	
 	ntdll.dll!7c9348c2() 	
>	php_apc.dll!apc_windows_cs_destroy(_RTL_RWLOCK * lock=0x03a200a8)  Line 85	
 	php_apc.dll!apc_cache_destroy(apc_cache_t * cache=0x03620820, void * * * tsrm_ls=0x018337f0)  Line 320	
 	php_apc.dll!apc_module_shutdown(void * * * tsrm_ls=0x018337f0)  Line 891	
 	php_apc.dll!zm_shutdown_apc(int type=1, int module_number=64, void * * * tsrm_ls=0x018337f0)  Line 373 + 0x6 bytes	
 	php5ts.dll!module_destructor(_zend_module_entry * module=0x018fd078)  Line 2098 + 0xc bytes	
 	php5ts.dll!zend_hash_apply_deleter(_hashtable * ht=0x00000000, bucket * p=0x00000000)  Line 614 + 0x6 bytes	
 	php5ts.dll!zend_hash_graceful_reverse_destroy(_hashtable * ht=0x0263cfe0)  Line 650	
 	php5ts.dll!zend_shutdown(void * * * tsrm_ls=0x018337f0)  Line 761	
 	php5ts.dll!php_module_shutdown(void * * * tsrm_ls=0x018337f0)  Line 2151	
 	php5ts.dll!php_module_shutdown_wrapper(_sapi_module_struct * sapi_globals=0x01137098)  Line 2120 + 0x6 bytes	
 	php5apache2_2.dll!php_apache_child_shutdown(void * tmp=0x00000000)  Line 399 + 0xb bytes	
 	libapr-1.dll!apr_pool_destroy(apr_pool_t * pool=0x00734070)  Line 779 + 0x1a bytes	
 	libhttpd.dll!child_main(apr_pool_t * pconf=0x00730060)  Line 1209	
 	libhttpd.dll!ap_mpm_run(apr_pool_t * _pconf=0x00730060, apr_pool_t * plog=0x00766128, server_rec * s=0x00775150)  Line 1708	
 	httpd.exe!main(int argc=3, const char * const * argv=0x006833a8)  Line 739 + 0xc bytes	
 	httpd.exe!__tmainCRTStartup()  Line 586 + 0x17 bytes	
 	kernel32.dll!7c817077() 	


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-08 11:15 UTC] pajoye@php.net
-Status: Assigned +Status: Closed
 [2012-03-08 11:15 UTC] pajoye@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/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 23 06:01:35 2024 UTC