php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58113 apc_fcntl_lock failed
Submitted: 2008-03-23 17:40 UTC Modified: 2009-04-05 23:27 UTC
From: Bull-DoGy at mail dot ru Assigned:
Status: No Feedback Package: APC (PECL)
PHP Version: 3.0.17-dev OS: FreeBSD 6.3
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-03-23 17:40 UTC] Bull-DoGy at mail dot ru
Description:
------------
php-ftm.log:
Mar 24 00:10:57.957090 [NOTICE] fpm_children_make(), line 305: child 35900 (pool main) started
Mar 24 00:11:15.238317 [WARNING] fpm_stdio_child_said(), line 191: child 31880 (pool main) said into stderr: "[Mon Mar 24 00:11:15 2008] [apc-error] apc_fcntl_lock failed:"
Mar 24 00:11:15.238353 [WARNING] fpm_stdio_child_said(), line 191: child 31880 (pool main) said into stderr: " Resource deadlock avoided"
Mar 24 00:11:15.238385 [WARNING] fpm_stdio_child_said(), line 191: child 31880 (pool main) said into stderr: ""
Mar 24 00:11:15.246562 [NOTICE] fpm_got_signal(), line 70: received SIGCHLD
Mar 24 00:11:15.246626 [WARNING] fpm_children_bury(), line 229: child 31880 (pool main) exited with code 2 after 1452.272470 seconds
Mar 24 00:11:15.247123 [NOTICE] fpm_children_make(), line 305: child 35996 (pool main) started
Mar 24 00:12:24.104348 [WARNING] fpm_stdio_child_said(), line 191: child 34806 (pool main) said into stderr: "[Mon Mar 24 00:12:24 2008] [apc-error] "
Mar 24 00:12:24.104429 [WARNING] fpm_stdio_child_said(), line 191: child 34806 (pool main) said into stderr: "apc_fcntl_lock failed:"
Mar 24 00:12:24.104491 [WARNING] fpm_stdio_child_said(), line 191: child 34806 (pool main) said into stderr: " Resource deadlock avoided"
Mar 24 00:12:24.104524 [WARNING] fpm_stdio_child_said(), line 191: child 34806 (pool main) said into stderr: ""
Mar 24 00:12:24.111209 [NOTICE] fpm_got_signal(), line 70: received SIGCHLD
Mar 24 00:12:24.111280 [WARNING] fpm_children_bury(), line 229: child 34806 (pool main) exited with code 2 after 489.971231 seconds
Mar 24 00:12:24.111914 [NOTICE] fpm_children_make(), line 305: child 36180 (pool main) started

PHP Configure:
'./configure' '--prefix=/usr/local/php5.2.4' '--enable-fpm' '--enable-fastcgi' '--enable-force-cgi-redirect' '--enable-discard-path' '--with-pcre-regex' '--with-mysql=/usr' '--with-mysql-sock=/tmp/mysql.sock' '--enable-session' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--with-mm' '--with-zlib' '--with-regex=php' '--with-gd' '--with-png-dir=/usr' '--with-jpeg-dir=/usr' '--with-freetype-dir=/usr' '--with-pear'

php.ini:
[APC]
extension=apc.so
apc.enabled=1
apc.shm_segments=1
apc.shm_size=120
apc.ttl=120
apc.user_ttl=120
apc.gc_ttl=120
apc.num_files_hint=1024
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.enable_cli=1
apc.rfc1867=1
apc.localcache=1
apc.include_once_override=1
apc.stat_ctime=1


Web server: nginx
System: FreeBSD 6.3.
(before was FreeBSD 6.1)
PHP: from 5.2.1 to 5.2.5 + php-fpm patch
APC: from 3.0.12 to 3.0.17-dev

It's happens only on high load


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-24 05:50 UTC] Bull-DoGy at mail dot ru
PHP Info: http://www.nnm-club.ru/admin/pi.php 

I've also now increased memory_limit from 128M  to 256M, may be this would help
 [2008-03-25 12:46 UTC] Bull-DoGy at mail dot ru
it seems that increasing memory_limit solved this problem! Two days in row without failure under heavy load.
 [2008-03-26 14:30 UTC] Bull-DoGy at mail dot ru
today problem appeared again trying upgrade to APC (3.1.0-dev) may be this helps
 [2008-03-27 17:38 UTC] Bull-DoGy at mail dot ru
problem is still here

--------------
Additional info:
apc configure string
./configure --enable-apc-mmap --with-php-config=/usr/local/php/bin/php-config
 [2008-11-05 05:40 UTC] aarne dot salminen at gmail dot com
Also happens with 3.0.19 installed through ports. Happens right after installation, no apparent link to load. Also no matter if config has enabled 1 or 0.
 [2008-11-13 04:40 UTC] twadding at uoregon dot edu
Try recompiling your APC extension with a different "File locking" type. We had a similar problem and our now using "Spin locking" to great success.

http://emumarketing.uoregon.edu/tristan/2008/11/13/freebsd-apc-and-file-locking-kernel-panic/
 [2009-02-16 19:25 UTC] shire@php.net
(Possibly related bugs are #4769 and #9745)

Is anyone still seeing this issue on the latest release?
 [2009-02-18 22:59 UTC] shire@php.net
Can you all try the latest CVS, I just put in some fixes for dead-locks and faults that maybe are related.
 [2009-04-05 23:27 UTC] shire@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 13:01:28 2024 UTC