php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57520 APC segfaults after ~12 hours
Submitted: 2007-02-12 12:27 UTC Modified: 2007-12-26 18:01 UTC
From: oremj at mozilla dot com Assigned:
Status: Duplicate Package: APC (PECL)
PHP Version: 4.3.9 OS: RHEL 4
Private report: No CVE-ID: None
 [2007-02-12 12:27 UTC] oremj at mozilla dot com
Description:
------------
After around 12 hours APC starts segfaulting every httpd process.

[Mon Feb 12 02:21:26 2007] [notice] child pid 21131 exit signal Segmentation fault (11), possible coredump in /tmp
[Mon Feb 12 02:21:27 2007] [notice] child pid 21095 exit signal Segmentation fault (11), possible coredump in /tmp
[Mon Feb 12 02:21:27 2007] [notice] child pid 21100 exit signal Segmentation fault (11), possible coredump in /tmp
[Mon Feb 12 02:21:27 2007] [notice] child pid 21127 exit signal Segmentation fault (11), possible coredump in /tmp
[Mon Feb 12 02:21:27 2007] [notice] child pid 21129 exit signal Segmentation fault (11), possible coredump in /tmp

When I run gdb on the core dump I get

(gdb) bt
#0  sma_allocate (shmaddr=0xb7d91000, size=Variable "size" is not available.
) at /tmp/pear/cache/APC-3.0.12p2/apc_sma.c:157
#1  0x005aa16e in apc_sma_malloc (n=84) at /tmp/pear/cache/APC-3.0.12p2/apc_sma.c:358
#2  0x005a5df0 in apc_copy_op_array (dst=0x0, src=0x87e95bc, allocate=0x5aa127 <apc_sma_malloc>,
    deallocate=0x5aa2cd <apc_sma_free>) at /tmp/pear/cache/APC-3.0.12p2/apc_compile.c:1078
#3  0x005a7742 in my_compile_file (h=0xbfeef7e0, type=2) at /tmp/pear/cache/APC-3.0.12p2/apc_main.c:402
#4  0x010468e2 in zend_execute_scripts () from /etc/httpd/modules/libphp4.so
#5  0x01019679 in php_execute_script () from /etc/httpd/modules/libphp4.so
#6  0x00000000 in ?? ()


Any ideas what could be going on here?


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-12 21:51 UTC] shire@php.net
Are you running out of memory, how large is your memory segment (apc.shm_size ini option), and what does the statistics look like in the apc.php console (this comes with apc, is the memory usage significant)?
 [2007-02-13 09:21 UTC] gopalv82 at yahoo dot com
3.0.13 is just getting out of the door - so please try running the CVS head of APC, that has code to error out when a memory corruption is likely - rather than crash out like this after corruption.

I might be able to rush out a fix before the release happens.
 [2007-12-26 18:01 UTC] rasmus@php.net
This bug looks similar to a few others and we believe this is now fixed in APC-3.0.16
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Nov 11 09:01:28 2024 UTC