https://bz.apache.org/bugzilla/show_bug.cgi?id=58488

            Bug ID: 58488
           Summary: Stoped PHP-FPM pool in multi-pool system with
                    comunication over UDS exhausts connection and causes
                    mod_proxy_fcgi crash
           Product: Apache httpd-2
           Version: 2.4.9
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy_fcgi
          Assignee: [email protected]
          Reporter: [email protected]

In a multi-pool PHP-FPM when one of the PHP-FPM pools is stopped, but apache
continues processing requests towards the pool, the pools of others
applications begins to fails.

In all the application's pools communication is realized over UDS.

There are registered segmentation faults in Apache logs.

[Tue Oct 06 12:52:14.272956 2015] [core:notice] [pid 8563:tid 140096632240128]
AH00052: child pid 13967 exit signal Segmentation fault (11)

Also the /var/log/messages show segfaults.

Oct  6 12:21:30 phcaeproma01 kernel: httpd[13647]: segfault at 55 ip
00007f6ac91aaab2 sp 00007f6ac17fa860 error 6 in
mod_proxy_fcgi.so[7f6ac91a8000+4000]

This direction, corresponds to:

addr2line -e /opt/apache-2.4/modules/mod_proxy.so -fCi 0x6AB2
ap_proxy_connection_create
/home/software/php/httpd-2.4.9/modules/proxy/proxy_util.c:2790

Line 2790 in proxy_util.c correspons to:

    ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(00962)
                 "%s: connection complete to %pI (%s)",
                 proxy_function, backend_addr, conn->hostname);

This line, make be sanitized in similar form to bug
https://bz.apache.org/bugzilla/show_bug.cgi?id=56858

But the source of error, i think, is the stablishment of the connection, when
connections are UDS, it seems to me, that mod_proxy_fcgi does not detect that
the PHP-FPM pool is closed and continues making connections instead of return a
503 or similar error condition. The UDS file is present, but nobody hear the
request, and the connections are continuosly creating until some condition
causes no more connections can be created, and the above ap_log_error receives
a null connection.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to