https://bz.apache.org/bugzilla/show_bug.cgi?id=65627
Bug ID: 65627 Summary: apache httpd segfault on child exit Product: Apache httpd-2 Version: 2.4.49 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P2 Component: Core Assignee: bugs@httpd.apache.org Reporter: bz.apache....@acmondor.ca Target Milestone: --- Created attachment 38061 --> https://bz.apache.org/bugzilla/attachment.cgi?id=38061&action=edit Patch to prevent the segfault. This is to report a bug found on Gentoo and the fix for it. The original bug reported on Gentoo was "www-servers/apache-2.4.49: segfault on (almost) every request" (https://bugs.gentoo.org/816258). Testing revealed it seems to be specific to the use of mpm-itk, however there may be other senarios as well. And a review of the segfault traceback (see the above mentioned gentoo bug report) and the changes between 2.4.48 and 2.4.49 identified code changes in server/connection.c as the reason for the segfault. With those changes ap_lingering_close() attempts to pass a NULL pointer to apr_socket_close() when mpm-itk is in use, but there may be other senarios as well. The changes between 2.4.48 and 2.4.49 in server/connection.c where introduced by this revision: https://svn.apache.org/viewvc?view=revision&revision=1891721 The fix for this bug (see attached patch file) is to avoid calling apr_socket_close() with a NULL like the previous code did. This bug was found in 2.4.49, but is still present in 2.4.51 and that is were the fix was tested. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org For additional commands, e-mail: bugs-h...@httpd.apache.org