php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65292 When using APC, Apache is deadlocked.
Submitted: 2013-07-19 07:07 UTC Modified: 2016-11-18 21:08 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: naoto dot kawaura dot sf at hitachi-solutions dot com Assigned:
Status: Wont fix Package: APC (PECL)
PHP Version: Irrelevant OS: Windows
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-07-19 07:07 UTC] naoto dot kawaura dot sf at hitachi-solutions dot com
Description:
------------
When using APC, Apache is deadlocked.

findings:
API that causes deadlock is LockFileEx() and UnlockFileEx() in apc_fcntl_win32.c .

environment:
PHP 5.3.5 (VC6), APC 3.1.6 (VC6), Apache 2.2, Windows Server 2003 ~, 
multi cpu or hyper-thread 

Expected result:
----------------
APC dosen't cause deadlock.

Actual result:
--------------
APC causes deadlock.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-07-25 21:11 UTC] mattficken@php.net
You should try upgrading to at least php 5.3.25+. 5.3.5 is 3+ years old. A lot of improvements and new features have been added (mainly to 5.4 and 5.5 but also 5.3).

Really, you should upgrade to php 5.4 or 5.5 (unfortunately, that also requires upgrading to Windows 2008, 2008r2, 2012, 7, etc...).


PHP 5.3 is now in the End of Life cycle, so only critical security bugs will be fixed (see https://wiki.php.net/rfc/php53eol).

APC works with 5.4. With 5.5, APC is deprecated in favor of Opcache (formerly Zend Optimizer+), though APCu can also be used alongside Opcache.
 [2016-11-18 21:08 UTC] kalle@php.net
-Status: Open +Status: Wont fix
 [2016-11-18 21:08 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-2020 The PHP Group
All rights reserved.
Last updated: Sun Nov 29 01:01:25 2020 UTC