[squid-users] squid-3.5.0.2-20141031-r13657 crashes

James Harper james at ejbdigital.com.au
Sun Nov 30 20:44:20 UTC 2014


I've been getting squid crashes with squid-3.5.0.2-20141031-r13657. Basically I think my cache got corrupt - started seeing TCP_SWAPFAIL_MISS and md5 mismatches.
Config is cache_dir ufs /usr/local/squid/var/cache/squid 102400 16 256

It's possible that at one point I might have started 2 instances of squid running at once... could that cause corruption?

And if it happens again, what sort of things should I collect to better diagnose the problem? As I see it there are two problems:
1. that the cache got corrupt in the first place
2. that a corrupt cache can crash squid

Unfortunately I did the stupid thing and deleted the cache without taking a copy for post-mortem... the best I can do is:

[31072.428922] squid[6317]: segfault at 58 ip 000000000061a6f9 sp 00007fff8b9e2d40 error 4 in squid[400000+4e9000]
[31654.707792] squid[6329]: segfault at 58 ip 000000000061a6f9 sp 00007fff54358fe0 error 4 in squid[400000+4e9000]
[31783.399832] squid[6465]: segfault at 58 ip 000000000061a6f9 sp 00007fff82af0aa0 error 4 in squid[400000+4e9000]
[31984.470507] squid[6509]: segfault at 58 ip 000000000061a6f9 sp 00007fff028a6640 error 4 in squid[400000+4e9000]
[32178.270298] squid[6576]: segfault at 58 ip 000000000061a6f9 sp 00007fffe64a07e0 error 4 in squid[400000+4e9000]
[32789.635935] squid[6626]: segfault at 58 ip 000000000061a6f9 sp 00007ffff6932960 error 4 in squid[400000+4e9000]

addr2line -e /usr/local/squid/sbin/squid 000000000061a6f9
/usr/local/src/squid-3.5.0.2-20141031-r13657/src/store.cc:962

James




More information about the squid-users mailing list