[squid-users] FATAL: xmalloc: Unable to allocate 61440 bytes!

From: Florin Andrei <florin@dont-contact.us>
Date: 26 Mar 2001 10:55:38 -0800

My proxy crashed with this error:

##########################################
FATAL: xmalloc: Unable to allocate 61440 bytes!
Squid Cache (Version 2.4.PRE-STABLE): Terminated abnormally.
(bla-bla)
2001/03/26 10:37:37| storeDirWriteCleanLogs: Starting...
##########################################

I'm running 2.4.PRE-STABLE-20010226 with this patch:

##########################################
zoul 3# cat dns.c.patch
--- src/dns.c.orig Tue Mar 20 14:54:03 2001
+++ src/dns.c Tue Mar 20 14:54:36 2001
@@ -98,6 +98,7 @@
            fatal("DNS servers not responding for 3 minutes");
        debug(34, 1) ("dnsSubmit: queue overload, rejecting %s\n",
lookup);
        callback(data, "$fail temporary network problem, pleas retry
later");
+ return;
     }
     first_warn = 0;
     helperSubmit(dnsservers, buf, callback, data);
zoul 4#
##########################################

Before applying the patch, i got lots of "assertion failed" in the DNS
code.
Before it crashed, i got these messages:

##########################################
2001/03/26 08:54:36| WARNING: All dnsserver processes are busy.
2001/03/26 08:54:36| WARNING: 32 pending requests queued

2001/03/26 10:34:27| WARNING: All redirector processes are busy.
2001/03/26 10:34:27| WARNING: 32 pending requests queued
##########################################

So both redirectors and dnsservers are very busy.

-- 
Florin Andrei
Received on Mon Mar 26 2001 - 11:56:26 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:58:52 MST