You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Chris Cooper <c....@ecu.edu.au> on 1999/02/16 10:55:31 UTC

mod_rewrite/3905: httpd core dumps when RewriteRule used

>Number:         3905
>Category:       mod_rewrite
>Synopsis:       httpd core dumps when RewriteRule used
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Feb 16 02:00:01 PST 1999
>Last-Modified:
>Originator:     c.cooper@ecu.edu.au
>Organization:
apache
>Release:        1.3.4
>Environment:
IBM AIX 4.2.1.0, gcc 2.8.1
>Description:
Version 1.3.4 of Apache runs fine with clone of new httpd.conf file.
Version 1.3.4 core dumps when a virtual server containing RewriteRule directives is accessed.

httpd.conf info:
  ServerName www-ows.ecu.edu.au
  RewriteEngine On
  RewriteMap ows_hosts rnd:/web/dev/vhosts/www-ows/apps/ows_hosts.txt
  RewriteRule ^/?(.*) http://${ows_hosts:dynamic}/$1 [P]

Accessing http://www-ows.ecu.edu.au/ will generate a core dump.
Comment out the RewriteMap & RewriteRule - the server runs fine.

Have another virtual server with same problem, but the rewrite rule is not from the base directory.
It also core dumps upon any access matching that virtual server name.

Mod_rewrite was enabled via ./configure --enable-module=rewrite
Also tried compiling with and without --enable-shared=rewrite

Contents of error_log:
httpd: [Tue Feb 16 17:40:43 1999] [notice] child pid 50650 exit signal Segmentation fault (11)
>How-To-Repeat:

>Fix:
Would be -nice- to have a trusted httpd binary pre-compiled (for AIX 4.2.x) with ALL optional modules included ...
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]