php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57200 With PHP fastcgi processes running, cannot run php CLI with apc.enable_cli on
Submitted: 2006-08-28 14:22 UTC Modified: 2011-09-18 13:08 UTC
From: Jared dot Williams1 at ntlworld dot com Assigned:
Status: No Feedback Package: APC (PECL)
PHP Version: 5_1 CVS-2006-08-28 OS: Windows 2000
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: Jared dot Williams1 at ntlworld dot com
New email:
PHP Version: OS:

 

 [2006-08-28 14:22 UTC] Jared dot Williams1 at ntlworld dot com
Description:
------------
Using 5.1.6 & APC 3.0.11-dev.

With PHP fastcgi processes active, cannot run PHP cli if apc.enable_cli is On.

Follow transcript, shows 3 processes running, a simple cli failing, killing the 3 process, and the same cli command running successfully. 
Note: still crashes on shutdown, see http://pecl.php.net/bugs/bug.php?id=8574


E:\php-5.1.6-Win32>pslist php-
Process information for WIN2KS:

Name         Pid Pri Thd  Hnd    Mem     User Time   Kernel Time   Elapsed Time
php-cgi     1996   8   3   47   6696   0:00:00.140   0:00:00.060    0:00:03.765
php-cgi      880   8   2   44   6216   0:00:00.140   0:00:00.030    0:00:03.755
php-cgi     1764   8   2   46   6216   0:00:00.110   0:00:00.040    0:00:03.725

E:\php-5.1.6-Win32>php -r "echo phpversion(), chr(10), phpversion('apc');"
[Mon Aug 28 19:18:58 2006] [apc-error] apc_shm_create: shmget(0, 31457280,658) failed: No such file or directory. It is possible that the chosen
egment size is higher than the operation system allows. Linux has usually a default limit of 32MB per segment.

E:\php-5.1.6-Win32>pskill php-cgi
3 processes named php-cgi killed.

E:\php-5.1.6-Win32>php -r "echo phpversion(), chr(10), phpversion('apc');"
5.1.6
3.0.11-dev
E:\php-5.1.6-Win32>


Reproduce code:
---------------
php -r "echo phpversion(), chr(10), phpversion('apc');"

Expected result:
----------------
5.1.6
3.0.11-dev


Actual result:
--------------
[Mon Aug 28 19:11:36 2006] [apc-error] apc_shm_create: shmget(0, 31457280,658) failed: No such file or directory. It is possible that the chosen SHM s
egment size is higher than the operation system allows. Linux has usually a default limit of 32MB per segment.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-07-28 17:55 UTC] razvan dot pop at gmail dot com
I can reproduce the same issue on Win XP, with:
PHP 5.2.2 - without FastCGI
APC 3.0.15-dev
Apache 2.2.4 

When PHP+Apache+APC processes run, the PHP cli gives this:
[Sun Jul 29 00:49:37 2007] [apc-error] apc_shm_create: shmget(0, 134217728, 658)
 failed: Result too large. It is possible that the chosen SHM segment size is hi
gher than the operation system allows. Linux has usually a default limit of 32MB
 per segment.
 [2009-09-24 22:37 UTC] kalle@php.net
Can you please try an updated version of PHP and APC to see if this issue have been solved?

Either by SVN or the newest APC version available from:
http://downloads.php.net/pierre/
 [2010-06-30 16:15 UTC] ben at llamaslayers dot net
I got the same error:
[Wed Jun 30 15:06:30 2010] [apc-error] apc_shm_create: shmget(0, 134217728, 658) failed: No such file or directory. It is possible that the chosen SHM segment size is higher than the operation system allows. Linux has usually a default limit of 32MB per segment.

Windows XP SP3
XAMPP 1.7.3
PHP 5.3.1
APC 3.1.3p1

This only happened until I shut down Apache.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 06:01:29 2024 UTC