php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59823 apc_shm_create: shmget - failed
Submitted: 2011-06-20 05:46 UTC Modified: 2011-06-27 15:40 UTC
From: mcs at sunwave dot net Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.3.6 OS: FreeBSD 7.3 - AMD64 kernel
Private report: No CVE-ID: None
 [2011-06-20 05:46 UTC] mcs at sunwave dot net
Description:
------------
PHP Fatal error:  PHP Startup: apc_shm_create: shmget(0, 134217728, 914) failed: Cannot allocate memory. 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. in Unknown on line 0

PHP Fatal error:  PHP Startup: apc_shm_attach: shmat failed: in Unknown on line 0
[Mon Jun 20 00:00:02 2011] [notice] seg fault or similar nasty error detected in the parent process

----

[localhost ~]$ sysctl kern.ipc.shmmax
kern.ipc.shmmax: 134217728

----

Ever since http://pecl.php.net/bugs/bug.php?id=22688 was fixed, every Sunday at 12am PST the server does a graceful restart of apache. When it does, the error above shows.

I've always had shared memory set to 128mb since installing FreeBSD - I've never had an issue until the latest patch.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-06-27 15:40 UTC] mcs at sunwave dot net
Upgrading to FreeBSD 7.4 solved this issue.
 [2016-10-16 22:36 UTC] jusys dot linas at gmail dot com
On php70w-fpm from remirepo on centos, if installed yum install php70w-pecl-apcu, and it have the same error as listed here. But then as well i have php70w-pear installed. And after I do pear upgrade, my php-fpm starts up and all those errors are gone. :-)
 [2016-10-16 22:37 UTC] jusys dot linas at gmail dot com
On php70w-fpm from remirepo on centos, if installed yum install php70w-pecl-apcu, and it have the same error as listed here. But then as well i have php70w-pear installed. And after I do pear upgrade, my php-fpm starts up and all those errors are gone. :-)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 12:01:30 2024 UTC