malloc() errors - (some type of redirect loop?)
Maxim Dounin
mdounin at mdounin.ru
Mon Sep 13 01:45:07 MSD 2010
Hello!
On Sun, Sep 12, 2010 at 10:56:11AM -0400, gnexus wrote:
> Hi everyone,
> I am new to the mailing list and have only been using Nginx a few
> months, so please bear with me.
>
> We are currently getting MANY errors such as this:
>
> 2010/09/07 17:58:18 [emerg] 8851#0: *4086 malloc() 4294967295 bytes
> failed (12: Cannot allocate memory), client: 66.249.71.238, server:
> xxxx.net, request: "GET /robots.txt HTTP/1.1", host: "www.xxxxx.net"
[...]
> # Extracts the subdomain to a variable
> if ($host ~ "^(.*).xxxxxxxx.net") {
> set $sub $1;
> set $domain $2;
> }
You have regexp with one capture, but try to use $2.
Incorrect malloc attempts with such misconfiguration should be
fixed in 0.8.25+.
Maxim Dounin
More information about the nginx
mailing list