mod_substitute memory problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We are having a problem where a bad regex in mod_substitute goes into an endless loop and keeps allocating more memory, until all of the memory on the server is used up. At that point, telnet is frozen, new telnet sessions can not be created, and the only option is to reboot the server. Our setup is Red hat Linux 2.4.21-47.E running on top of VMWare.

Some of these "bad" regexes, have very subtle errors, we test them in "regex buddy" before trying them out on the apache server, and still create problem regexes.

Some of the problems are less subtle, the following (less subtle) example keeps finding /css/ and replacing it in a loop forever.

    AddOutputFilterByType SUBSTITUTE text/html
    Substitute "s|href=\"/css/|href=\"/css/test2/|i"

We tried the RLimitMem directive, but it seems to have no effect on mod_substitute.

Does anyone know a way to limit the amount of memory that mod_substitute can allocate?



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux