Welcome! Log In Create A New Profile

Advanced

Re: malloc() errors - (some type of redirect loop?)

Maxim Dounin
September 12, 2010 05:50PM
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

malloc() errors - (some type of redirect loop?)

gnexus September 12, 2010 10:56AM

Re: malloc() errors - (some type of redirect loop?)

Maxim Dounin September 12, 2010 05:50PM

Re: malloc() errors - (some type of redirect loop?)

gnexus September 13, 2010 08:32AM

Re: malloc() errors - (some type of redirect loop?)

gnexus September 13, 2010 09:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 152
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready