httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49838] New: segmentation fault: mod_remoteip + .htaccess + Allow/Deny
Date Sat, 28 Aug 2010 14:35:37 GMT

           Summary: segmentation fault: mod_remoteip + .htaccess +
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Other Modules

I've confirmed this segmentation fault with a fresh build of 2.3.6-alpha, but
initially discovered it when using a backport of mod_remoteip for 2.2.

Here's the configure line I used for the 2.3.6-alpha build:

./configure --with-included-apr --with-mpm=prefork

To reproduce after building from scratch, change the following in the stock

# Add these lines:
<IfModule remoteip_module>
RemoteIPHeader X-Client-IP

# Allow override of "Limit" in htdocs
<Directory "/usr/local/apache2/htdocs">
    AllowOverride Limit

In the docroot, create the .htaccess file:

# The Allow/Deny can be any IP or subnet mask.  Removing the Allow/Deny
# "fixes" the crash.  "Allow from all" won't crash either.
Order allow,deny
Allow from

Start up Apache, send it requests with "X-Client-IP:" (or whatever IP)
in the request header, and watch the error log for segmentation faults.

In my testing, the crashes can sometimes be intermittent.  Freshly restarting
Apache can help encourage segfaults when the bug is being "stubborn" to

Configure bugmail:
------- 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