php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56509 More than one SHM segment crashes Apache
Submitted: 2005-08-24 06:55 UTC Modified: 2005-08-24 09:40 UTC
From: forke at forke dot info Assigned:
Status: Suspended Package: APC (PECL)
PHP Version: 4.3.10 OS: Linux/SuSE 9.2
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: forke at forke dot info
New email:
PHP Version: OS:

 

 [2005-08-24 06:55 UTC] forke at forke dot info
Description:
------------
Apache-leader crashes if set more that 1 SHM segments

Reproduce code:
---------------
Server Version: Apache/2.0.54 (Unix) PHP/4.4.0 MPM: leader

APC configure options:
export CPPFLAGS="-I/usr/local/httpd-leader/include/ -DAPC_PHP4_STAT"

./configure --enable-apc --enable-apc-mmap --with-apxs=/usr/local/httpd-leader/bin/apxs --with-php-config=/usr/bin/php-config

php.ini:
extension="apc.so"
apc.num_files_hint=10000
apc.optimization=1
apc.ttl=300
apc.shm_size=32
apc.shm_segments=2
apc.mmap_file_mask=/tmp/apc.XXXXXX


Expected result:
----------------
Two 32MB SHM segments in APC cache.

Actual result:
--------------
Apache crash:
[Wed Aug 24 12:35:40 2005] [apc-error] apc_mmap: mkstemp on /tmp/apc/apc.XJ3pgc failed: Invalid argument

If apc.mmap_file_mask is set to: "" then APC start with only one SHM segment despite apc.shm_segments value.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-24 09:40 UTC] rasmus@php.net
Right, so don't do that.  It makes no sense to have multiple mmap'ed segments since there is no segment size limit.  I will eventually get around to removing the multi-segment limit.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC