php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67907 apc crashes
Submitted: 2014-08-26 10:36 UTC Modified: 2016-11-18 21:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: dmitry at acquia dot com Assigned:
Status: Wont fix Package: APC (PECL)
PHP Version: 5.4.32 OS: windows 7 32bit
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dmitry at acquia dot com
New email:
PHP Version: OS:

 

 [2014-08-26 10:36 UTC] dmitry at acquia dot com
Description:
------------
apc crashes php on windows when php is running as an apache fcgi executable. It is not 100% reproducible but often happens when several php-cgi.exe instances are running simultaneously - i used phpmyadmin front page for tests which has multiple frames.
I made a custom build ob php_apc with debug info enabled to find code location where the crash happens:

Stack trace:

008af480 68f47de4 php_apc!apc_cache_find_slot+0x77 [c:\tmp\php_pecl\php-5.4.32-src\ext\apc-3.1.13\apc_cache.c @ 648]
008af500 68f51bc9 php_apc!apc_cache_find+0x44 [c:\tmp\php_pecl\php-5.4.32-src\ext\apc-3.1.13\apc_cache.c @ 699]
008af71c 5f7c6e67 php_apc!my_compile_file+0x1c9 [c:\tmp\php_pecl\php-5.4.32-src\ext\apc-3.1.13\apc_main.c @ 520]
WARNING: Stack unwind information not available. Following frames may be wrong.
008af7cc 5f85e33b php5ts!zend_save_lexical_state+0x207
008af840 5f814ffd php5ts!inet_ntop+0x27b
008af85c 5f84382c php5ts!execute+0x1fd
008af874 765ead55 php5ts!zend_execute_scripts+0x14c
00000000 00000000 USER32!PostThreadMessageA+0x4c

Source line:
while (*slot) {
      if(key.type == (*slot)->key.type) {  <---- it crashes here
        if(key.type == APC_CACHE_KEY_FILE) {
 
For some reason windbg didn't show me variable values but i guess that something was NULL here,



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-18 21:00 UTC] kalle@php.net
-Status: Open +Status: Wont fix
 [2016-11-18 21:00 UTC] kalle@php.net
APC is no longer supported in favor of opcache that comes bundled with PHP, if you wish to use the user cache, then look at PECL/APCu.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC