php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64116 Child always exited
Submitted: 2013-01-31 16:42 UTC Modified: 2016-11-18 21:19 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: unexplained at gmail dot com Assigned:
Status: Wont fix Package: APC (PECL)
PHP Version: 5.3.21 OS: FreeBSD 9.1 x64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
47 + 14 = ?
Subscribe to this entry?

 
 [2013-01-31 16:42 UTC] unexplained at gmail dot com
Description:
------------
PHP 5.3.21 installed from ports
pecl-APC installed from ports with mmap support
nginx 1.2.6

APC config

;/usr/local/share/doc/APC/INSTALL
apc.enabled=1
apc.shm_segments=3

; I would try 32M per WP install, go from there
apc.shm_size=32M

; Relative to approx cached PHP files,
apc.num_files_hint=1024

; Relative to approx WP size W/ APC Object Cache Backend,
apc.user_entries_hint=4096

apc.ttl=0
apc.use_request_time=1
apc.user_ttl=0
apc.gc_ttl=3600
apc.cache_by_default=1
apc.filters    
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.file_update_protection=2
apc.enable_cli=0
apc.max_file_size=5M

;This should be used when you are finished with PHP file changes.
;As you must clear the APC cache to recompile already cached files.
;If you are still developing, set this to 1.
apc.stat=0

apc.stat_ctime=0
apc.canonicalize=1
apc.write_lock=1
apc.report_autofilter=0
apc.rfc1867=0
apc.rfc1867_prefix =upload_
apc.rfc1867_name=APC_UPLOAD_PROGRESS
apc.rfc1867_freq=0
apc.rfc1867_ttl=3600

;This MUST be 0, WP can have errors otherwise!
;apc.include_once_override=0

apc.lazy_classes=0
apc.lazy_functions=0
apc.coredump_unmap=0
apc.file_md5=0
apc.preload_path

the php-fpm child always exited when big php scripts executed (try phpmyadmin latest git https://github.com/phpmyadmin/phpmyadmin )
[31-Jan-2013 16:34:48.958035] DEBUG: pid 88357, fpm_event_loop(), line 411: event module triggered 2 events
[31-Jan-2013 16:34:48.958597] DEBUG: pid 88357, fpm_got_signal(), line 72: received SIGCHLD
[31-Jan-2013 16:34:48.958619] WARNING: pid 88357, fpm_children_bury(), line 252: [pool www] child 88487 exited with code 1 after 266.078062 seconds from start
[31-Jan-2013 16:34:48.959206] NOTICE: pid 88357, fpm_children_make(), line 421: [pool www] child 88789 started


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-01-31 16:46 UTC] unexplained at gmail dot com
when APC disabled, php-fpm just working fine.
 [2013-01-31 16:55 UTC] unexplained at gmail dot com
More detailed log after compiling with apc debug :

[31-Jan-2013 16:54:31.613847] WARNING: pid 95272, fpm_stdio_child_said(), line 166: [pool www] child 95331 said into stderr: "NOTICE: sapi_cgi_log_message(), line 690: PHP message: PHP Notice:  Unknown: 1. h->opened_path=[/local/www/phpmyadmin/index.php]  h->filename=[/local/www/phpmyadmin/index.php]"
[31-Jan-2013 16:54:31.613867] WARNING: pid 95272, fpm_stdio_child_said(), line 166: [pool www] child 95331 said into stderr: " in Unknown on line 0"
[31-Jan-2013 16:54:31.613876] DEBUG: pid 95272, fpm_event_loop(), line 411: event module triggered 1 events
[31-Jan-2013 16:54:31.613996] WARNING: pid 95272, fpm_stdio_child_said(), line 166: [pool www] child 95331 said into stderr: "NOTICE: sapi_cgi_log_message(), line 690: PHP message: PHP Notice:  Unknown: apc_cache_find [-1661764946]"
[31-Jan-2013 16:54:31.614006] WARNING: pid 95272, fpm_stdio_child_said(), line 166: [pool www] child 95331 said into stderr: " in Unknown on line 0"
[31-Jan-2013 16:54:31.614013] DEBUG: pid 95272, fpm_event_loop(), line 411: event module triggered 1 events
[31-Jan-2013 16:54:31.614953] DEBUG: pid 95272, fpm_event_loop(), line 411: event module triggered 2 events
[31-Jan-2013 16:54:31.615557] DEBUG: pid 95272, fpm_got_signal(), line 72: received SIGCHLD
[31-Jan-2013 16:54:31.615579] WARNING: pid 95272, fpm_children_bury(), line 252: [pool www] child 95331 exited with code 1 after 26.240101 seconds from start
[31-Jan-2013 16:54:31.616229] NOTICE: pid 95272, fpm_children_make(), line 421: [pool www] child 95332 started
[31-Jan-2013 16:54:31.616253] DEBUG: pid 95272, fpm_event_loop(), line 411: event module triggered 1 events
[31-Jan-2013 16:54:31.902715] DEBUG: pid 95272, fpm_pctl_perform_idle_server_maintenance(), line 379: [pool ww
 [2013-01-31 16:59 UTC] rasmus@php.net
Which APC version is in ports?
 [2013-01-31 17:09 UTC] unexplained at gmail dot com
3.1.14, reverting back to 3.1.13 works fine. Addendum to above, i am compiling with IPC shm memory support.
 [2013-01-31 17:12 UTC] rasmus@php.net
Yeah, we have gotten a couple of reports of issues with 3.1.14 now. I should pull 
it from pecl.
 [2013-02-18 23:34 UTC] gopalv@php.net
Reviewing the patches between 3.1.13 and 3.1.14 for possible regressions.
 [2016-11-18 21:19 UTC] kalle@php.net
-Status: Open +Status: Wont fix
 [2016-11-18 21:19 UTC] kalle@php.net
APC is no longer supported in favor of opcache that comes bundled with PHP, if you wish to use the user cache, then look at PECL/APCu.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 23:01:29 2024 UTC