[squid-users] Squid 2.5.7 crashing

From: Ralf Hildebrandt <[email protected]>
Date: Sat, 29 Jan 2005 14:13:17 +0100

Today, squid started exiting/crashing with this message on stdout:

squid: util.c:612: xstrndup: Assertion `n' failed.

and was restarted immediately afterwards, since I'm running it under
daemontools' supervise.

This is squid 2.5.7-5 from Debian/testing.

These crashes repeated in rapid succession, several times (my scripts send
mail on each restart):

2005/01/29 13:29:01| CACHEMGR: <unknown>@127.0.0.1 requesting 'store_io'
2005/01/29 13:29:37| Starting Squid Cache version 2.5.STABLE7 for i386-debian-linux-gnu...
2005/01/29 13:29:37| Process ID 7910
2005/01/29 13:29:37| With 4096 file descriptors available
2005/01/29 13:29:37| Performing DNS Tests...
2005/01/29 13:29:37| Successful DNS name lookup tests...
2005/01/29 13:29:37| DNS Socket created at 0.0.0.0, port 32900, FD 5
2005/01/29 13:29:37| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2005/01/29 13:29:37| User-Agent logging is disabled.
2005/01/29 13:29:37| Referer logging is disabled.
2005/01/29 13:29:37| Unlinkd pipe opened on FD 10
2005/01/29 13:29:37| Swap maxSize 32768000 KB, estimated 4096000 objects
2005/01/29 13:29:37| Target number of buckets: 204800
2005/01/29 13:29:37| Using 262144 Store buckets
2005/01/29 13:29:37| Max Mem size: 131072 KB
2005/01/29 13:29:37| Max Swap size: 32768000 KB
2005/01/29 13:29:37| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2005/01/29 13:29:37| Rebuilding storage in /squid-cache0 (DIRTY)
2005/01/29 13:29:37| Rebuilding storage in /squid-cache1 (DIRTY)
2005/01/29 13:29:37| Using Least Load store dir selection
2005/01/29 13:29:37| Current Directory is /var/service/squid
2005/01/29 13:29:37| Loaded Icons.
2005/01/29 13:29:38| Accepting HTTP connections at 0.0.0.0, port 888, FD 15.
2005/01/29 13:29:38| Accepting ICP messages at 0.0.0.0, port 3130, FD 17.
2005/01/29 13:29:38| Accepting HTCP messages on port 4827, FD 18.
2005/01/29 13:29:38| Accepting SNMP messages on port 3401, FD 19.
2005/01/29 13:29:38| WCCP Disabled.
2005/01/29 13:29:38| Ready to serve requests.
2005/01/29 13:29:38| Configuring Sibling spiderboy.charite.de/888/3130
2005/01/29 13:29:38| Configuring Sibling spiderman.charite.de/888/3130
2005/01/29 13:29:38| Store rebuilding is 0.4% complete

2005/01/29 13:29:52| Starting Squid Cache version 2.5.STABLE7 for i386-debian-linux-gnu...
2005/01/29 13:29:52| Process ID 7925
2005/01/29 13:29:52| With 4096 file descriptors available
2005/01/29 13:29:52| Performing DNS Tests...
2005/01/29 13:29:52| Successful DNS name lookup tests...

# grep "Starting Squid Cache" cache.log
2005/01/29 13:29:37| Starting Squid Cache version 2.5.STABLE7 for i386-debian-linux-gnu...
2005/01/29 13:29:52| Starting Squid Cache version 2.5.STABLE7 for i386-debian-linux-gnu...
2005/01/29 13:30:26| Starting Squid Cache version 2.5.STABLE7 for i386-debian-linux-gnu...
2005/01/29 13:30:33| Starting Squid Cache version 2.5.STABLE7 for i386-debian-linux-gnu...
2005/01/29 13:31:03| Starting Squid Cache version 2.5.STABLE7 for i386-debian-linux-gnu...
2005/01/29 13:31:09| Starting Squid Cache version 2.5.STABLE7 for i386-debian-linux-gnu...
2005/01/29 13:31:26| Starting Squid Cache version 2.5.STABLE7 for i386-debian-linux-gnu...
<I logged in here>
2005/01/29 13:51:20| Starting Squid Cache version 2.5.STABLE7 for i386-debian-linux-gnu...
2005/01/29 13:54:49| Starting Squid Cache version 2.5.STABLE7 for i386-debian-linux-gnu...

I then stopped squid, nuked the cache directories and restarted squid after
that. It seems to work fine now.

-- 
_________________________________________________
  Charit� - Universit�tsmedizin Berlin
_________________________________________________
  Ralf Hildebrandt
   i.A. des IT-Zentrum | Netzwerkdienste
   Stabsstelle des Klinikumsvorstandes
   Campus Benjamin Franklin
   Hindenburgdamm 30 | Berlin
   Tel. +49 30 450 570155 | Fax +49 30 450 570962
   Ralf.Hildebrandt@charite.de
   http://www.charite.de
Received on Sat Jan 29 2005 - 06:13:20 MST

This archive was generated by hypermail pre-2.1.9 : Mon Mar 07 2005 - 12:59:36 MST