httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37043] - mod_rewrite causing Apache child looping
Date Wed, 12 Oct 2005 16:22:39 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37043>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37043


nd@perlig.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




------- Additional Comments From nd@perlig.de  2005-10-12 18:22 -------
(In reply to comment #7)
> Here are the rewriting rules :

(PLEASE attach the log next time...)
Anyway, here are your CPU consumers:

> RewriteRule ^grenier/page-([0-9]*)-(.+)*\.html$     /grenier/details.php?
[...]

(.+)* is not an infinite loop, but it can take a long, long time (depeding on
the input millions of years ;-). Especially when the input does NOT match.
The plus and the asterisk each try to get the same input and figuring out which
one of them takes which of the nothing they can match takes that long.

> Moreover, I notice that the problem seems to happen only when the requested URL 
> contains the '(' character

According to the backtrace it should also happen if any PHP file is requested.
(instead of .html). In general, any input that doesn't match (the longer the
input the exponential longer it takes to not match it).

There nothing we can do about it here, except suggesting a good book about
regular expressions. Sorry.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message