www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steev Hise <st...@datamassage.com>
Subject mod_rewrite/6204: rewrite rules in .htaccess files cause a segmentation fault.
Date Sat, 17 Jun 2000 23:15:16 GMT

>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
>Originator:     steev@datamassage.com
>Release:        1.3.12
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)
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
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 


 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@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!     ]

View raw message