You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Steev Hise <st...@datamassage.com> on 2000/06/18 01:15:16 UTC

mod_rewrite/6204: rewrite rules in .htaccess files cause a segmentation fault.

>Number:         6204
>Category:       mod_rewrite
>Synopsis:       rewrite rules in .htaccess files cause a segmentation fault.
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sat Jun 17 16:20:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     steev@datamassage.com
>Release:        1.3.12
>Organization:
apache
>Environment:
linux 2.2.5-15

# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>Description:
rewrite rules placed in .htaccess files  that worked fine under apache 1.3.6
now don't. they cause the child httpd process to die with the following error:
[Sat Jun 17 15:57:23 2000] [notice] child pid 2131 exit signal Segmentation fault (11)

(and of course the browser reports "document contains no data".

this only seems to happen when the rewrite rule finds a match. when the url "passes through", there's no
problem.
>How-To-Repeat:
the best i can do is give you an example of the rewrite directives. which, again, work fine
under 1.3.6:

RewriteEngine   On
RewriteCond   %{HTTP_COOKIE}        !1
RewriteCond     %{HTTP_REFERER}     !^http://www.detritus.net/.*$
RewriteCond     %{HTTP_REFERER}     !^http://flotsam.detritus.net/.*$
RewriteCond     %{HTTP_REFERER}     !^http://detritus.net/.*$
RewriteRule     (.*\.mp3)           /cgi-bin/badref?request=$1 

>Fix:

>Release-Note:
>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 make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database 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!     ]