httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 59842] New: Undefined symbol ap_get_useragent_host causes server to crash when performing graceful restart.
Date Mon, 11 Jul 2016 18:54:25 GMT

            Bug ID: 59842
           Summary: Undefined symbol ap_get_useragent_host causes server
                    to crash when performing graceful restart.
           Product: Apache httpd-2
           Version: 2.4.23
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_access_compat

It appears that a change in 2.4.19 in mod_access_compat.c:279, which changes
the call of ap_get_remote_host to use ap_get_useragent_host causes an undefined
symbol (ap_get_useragent_host) failure when doing a graceful reload of apache2.
A full server restart works without issue, but the graceful causes the server
to crash.

I first experienced this issue last night after an upgrade to 2.4.20 from
2.4.16 in which the server crashed and did not resume after log rotation. I
have also tried to use 2.4.23 which has this issue as well, and looked through
other reported bugs and could not find a duplicate.

I have recompiled mod_access_compat.c after changing the line in question back
to the pre 2.4.19 changes and have not had any issue with graceful reloading.
However, I know that is a short-term fix and there may be a larger issue with
as to why the newer call of ap_get_useragent_host is undefined.

Here's the line from my error.log:
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on
line 2 of /etc/apache2/mods-enabled/access_compat.load: Cannot load
/usr/lib/apache2/modules/ into server:
/usr/lib/apache2/modules/ undefined symbol:

And the mod_access_compat.load file to show there's not really a syntax error
# Depends: authn_core
LoadModule access_compat_module /usr/lib/apache2/modules/

Also discovered at least one other person suffering the same issue from this
Server Fault article (I replied with my experience and solution):

Happy to help in any way I can.

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message