Z-Push-contrib
Z-Push-contrib copied to clipboard
FreeBSD: php-fpm `child exited on signal 11 (SIGSEGV)`
Hi!
I keep getting crashes, though I don't know if it's a bug or a misconfiguration in PHP-FPM, NGINX or Z-Push. I'm on FreeBSD in a jail.
The line I keep getting in my PHP-FPM logs is:
[04-Jan-2016 20:49:43.599789] WARNING: pid 23055, fpm_children_bury(), line 252: [pool www] child 23173 exited on signal 11 (SIGSEGV) after 363.538588 seconds from start
Here is an excerpt of one of my logs:
=> /var/log/php-fpm.log <==
[04-Jan-2016 20:49:42.207965] DEBUG: pid 23055, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool www] currently 1 active children, 0 spare children
[04-Jan-2016 20:49:43.250049] DEBUG: pid 23055, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool www] currently 1 active children, 0 spare children
==> /var/log/z-push/z-push.log <==
04/01/2016 20:49:43 [23173] [ INFO] [[email protected]] ExportChangesDiff->InitializeExporter(): Found '1' changes for 'f342e2c2'
04/01/2016 20:49:43 [23173] [DEBUG] [[email protected]] SyncCollections->CheckForChanges(): Using ChangesSink but found relevant changes on regular export
04/01/2016 20:49:43 [23173] [DEBUG] [[email protected]] WBXMLEncoder->startWBXML() type: vnd.ms-sync.wbxml
04/01/2016 20:49:43 [23173] [DEBUG] [[email protected]] WBXMLEncoder->endTag() WBXML output completed
04/01/2016 20:49:43 [23173] [DEBUG] [[email protected]] Flushing 27, headers already sent? no
04/01/2016 20:49:43 [23173] [DEBUG] [[email protected]] BackendIMAP->close_connection(): disconnected from IMAP server
04/01/2016 20:49:43 [23173] [DEBUG] [[email protected]] FileStateMachine->SetState() written 747 bytes on file: '/usr/local/lib/z-push/k/7/vra7la9o317nf6lq0hsookk77k-bs-1451321984'
04/01/2016 20:49:43 [23173] [DEBUG] [[email protected]] LoopDetection->ProcessLoopDetectionTerminate()
04/01/2016 20:49:43 [23173] [DEBUG] [[email protected]] Memory usage information: 5529808/6029312 - Execution time: 3.0348 - HTTP responde code: 200
04/01/2016 20:49:43 [23173] [DEBUG] [[email protected]] -------- End
==> /var/log/php-fpm.log <==
[04-Jan-2016 20:49:43.599647] DEBUG: pid 23055, fpm_got_signal(), line 76: received SIGCHLD
[04-Jan-2016 20:49:43.599789] WARNING: pid 23055, fpm_children_bury(), line 252: [pool www] child 23173 exited on signal 11 (SIGSEGV) after 363.538588 seconds from start
[04-Jan-2016 20:49:43.602016] NOTICE: pid 23055, fpm_children_make(), line 421: [pool www] child 23233 started
[04-Jan-2016 20:49:43.602138] DEBUG: pid 23055, fpm_event_loop(), line 419: event module triggered 1 events
[04-Jan-2016 20:49:44.273536] DEBUG: pid 23055, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool www] currently 0 active children, 1 spare children
[04-Jan-2016 20:49:45.299640] DEBUG: pid 23055, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool www] currently 0 active children, 1 spare children
Any hint is appreciated!
Maybe try to reorder your php extensions in /usr/local/etc/php/extensions.ini . I created a gist with my script to do this: https://gist.github.com/Takika/dfabd00a5a9182f7a482
Hi @Takika Thank you very much! I might have resolved some of my problems with your script, thank you!
But lines 27 to 29 have dangerous line breaks in them
@Takika do you mind if I add a note in the INSTALL file pointing to your gist?
If you use Redis as a session handler then it has to be called before Session I think.
@fmbiete Sure, of course :) @bax- : I tested the session+redis, the current order is working.