[squid-users] SQUID2.6STABLE12 - Assertion failure in hash.c related to DNS cache.

From: Pulu Anau <panau@dont-contact.us>
Date: Wed, 18 Apr 2007 17:35:07 -0700

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

Note: http://marc.info/?l=squid-users&m=115342544210559&w=2

I am having the exact same problem and in the same place as the message mentioned above. Unfortunately I attempted to turn the crash into a memory leak by removing the assertion that was causing the crash (assert(walker != walker->next); in lib/hash.c) and ended up with debug data that doesn’t match my cores. But, the crash just moved to another place in hash.c:

(gdb) bt
#0 0x008597a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1 0x008997a5 in raise () from /lib/tls/libc.so.6
#2 0x0089b209 in abort () from /lib/tls/libc.so.6
#3 0x00892d91 in __assert_fail () from /lib/tls/libc.so.6
#4 0x080db31c in hash_remove_link (hid=Variable "hid" is not available.
) at hash.c:281
#5 0x0807552d in idnsCallback (q=0xaf9ee38, answers=0x9b12ab8, n=2, error=0x0) at dns_internal.c:650
#6 0x08076339 in idnsGrokReply (buf=Variable "buf" is not available.
) at dns_internal.c:826
#7 0x08076543 in idnsRead (fd=6, data=0x0) at dns_internal.c:883
#8 0x08071ff8 in comm_select (msec=153) at comm_generic.c:264
#9 0x080966c1 in main (argc=2, argv=0xbfe6f8b4) at main.c:838
#10 0x00886de3 in __libc_start_main () from /lib/tls/libc.so.6
#11 0x0804ee41 in _start ()

The assertion that triggers this is (I believe, I’m far from a C programming wizard) from the same thing, searching for a key in this hash that should be there but isn’t.

Until it crashes it runs along fine, the performance is so much better than previous versions (cpu usage on the server went from 85% squid to 2%) that I’d hate to go back. This is built from the source RPM at http://people.redhat.com/stransky/squid on RHES4 both 32bit and 64bit. The patches in the RPM are almost all related to file locations.

Does anyone have any idea how I might better try and track this down? Would making/finding an external DNS resolver help?

Any help would be greatly appreciated.

Pulu


-----BEGIN PGP SIGNATURE-----
Version: 9.6.1 (Build 1012)

wsFVAwUBRia5O4WUwm1KeafEAQipNQ//UyybGLhCPrLLDNf7epVHB3WxT1a9gHY6
waA4+2HEN4V/zCBMf5RsVlrTifYgNR6g4VIc8HUZ4C6TDNVRKHAO7f450419rroR
0OB25OMuSZKITOtRfvnpjS5icCzr6bzwnViroI/kRaMP0cG3cx+4vh9A/aqfsBRp
V3kqvv2IY6wbAr/IycurYKLsvi5utkIFj2Miqq+zCcoH+U7m7/wO5SCXzwAgBiOl
wnB0ckar/QF3/x62sZ5s5tjbtXaTgZLnU+iJYWegn72VIZXOmsO1YOVAowikZm0G
VV0vFNPbYwOlDXogqFJRuUznxFnyPICNCKyUV9Mj5di/ZjbpQ9ZtdeOme19GN4DS
6BT0fKOKsYTaq0GewdSO7hX5DSrkgKr50TyZE5yKLPq51/gP2BKsBMIUvp9Y5/oK
IJ+XkDnv4awgEqbYtKgtvVL9V++GZ4f5yJfl325En3vjJfd86K4Ck/JxAUiiDNVB
LSFI+dzvnaAx71GHs2UtiqERle+7XJfqlSG+0PC81zX0gr0fUp8MuaeJ0J/NXNcj
1Ns7b3AY6rW+W0VgjqSMiHj3dxH6gk3TQzGGa1LOGHVG0hCABCBejIeE6Fj3Q97r
M88AZYrgwNOyJ1iWzWLhFb5GSkrmNqZpNHHAOgwOCMhHdqPtfKZj0aFp/NsYgEmW
qEtCdDPVv70=
=E8CF
-----END PGP SIGNATURE-----

Received on Wed Apr 18 2007 - 18:35:02 MDT

This archive was generated by hypermail pre-2.1.9 : Tue May 01 2007 - 12:00:01 MDT