--------------------- PatchSet 4712 Date: 2007/06/10 11:59:43 Author: amosjeffries Branch: squid3-ipv6 Tag: (none) Log: Update notes with two new segfaults. Members: NOTES-IPv6:1.1.2.37->1.1.2.38 src/access_log.cc:1.23.4.17->1.23.4.18 Index: squid3/NOTES-IPv6 =================================================================== RCS file: /cvsroot/squid-sf//squid3/Attic/NOTES-IPv6,v retrieving revision 1.1.2.37 retrieving revision 1.1.2.38 diff -u -r1.1.2.37 -r1.1.2.38 --- squid3/NOTES-IPv6 10 Jun 2007 06:57:34 -0000 1.1.2.37 +++ squid3/NOTES-IPv6 10 Jun 2007 11:59:43 -0000 1.1.2.38 @@ -1,4 +1,4 @@ -$Id: NOTES-IPv6,v 1.1.2.37 2007/06/10 06:57:34 amosjeffries Exp $ +$Id: NOTES-IPv6,v 1.1.2.38 2007/06/10 11:59:43 amosjeffries Exp $ NP: All IPv6 builds from before 6 June 2007 contain a cache corruption bug and require a full cachedir deletion and rebuild. @@ -39,6 +39,73 @@ memory between requests and squid copes with it well. +Non-Critical SegFaults (under normal mode Squid3 restarts cleanly) +PROBLEM: +CAUSE: DNS failure: host newsrss.bbc.co.uk +results from command-line check: + newsrss.bbc.co.uk is an alias for newsrss.bbc.net.uk. + newsrss.bbc.net.uk has address 212.58.240.143 + Host newsrss.bbc.net.uk not found: 2(SERVFAIL) + +Effect on Squid: + +Program received signal SIGSEGV, Segmentation fault. +0xb7d4768a in strcmp () from /lib/tls/i686/cmov/libc.so.6 +#0 0xb7d4768a in strcmp () from /lib/tls/i686/cmov/libc.so.6 +#1 0x08128ad3 in hash_lookup (hid=0x83466c8, k=0x85df090) at hash.c:191 +#2 0x0808b805 in idnsCachedLookup (key=, callback=0, data=0x85df090) at dns_internal.cc:1325 +#3 0x0808c913 in idnsALookup (name=0x85df090 "newsrss.bbc.co.uk", callback=0x80c8470 , data=0x854c084) + at dns_internal.cc:1357 +#4 0x080c82f4 in ipcache_gethostbyname (name=0x8530124 "newsrss.bbc.co.uk", flags=1) at ipcache.cc:665 +#5 0x08053747 in ACLDestinationIP::match (this=0x82d5bd0, checklist=0x856d010) at ACLDestinationIP.cc:50 +#6 0x0804f107 in ACL::checklistMatches (this=0x82d5bd0, checklist=0x856d010) at acl.cc:290 +#7 0x0804f7d0 in ACLList::matches (this=0x82c74a4, checklist=0x856d010) at acl.cc:302 +#8 0x08051721 in ACLChecklist::matchAclList (this=0x856d010, head=0x82c74a4, fast=false) at ACLChecklist.cc:287 +#9 0x0805193b in ACLChecklist::checkAccessList (this=0x856d010) at ACLChecklist.cci:45 +#10 0x080524ce in ACLChecklist::check (this=0x856d010) at ACLChecklist.cc:148 +#11 0x080da35e in peerSelectFoo (ps=0x8568d10) at peer_select.cc:300 +#12 0x08098b23 in FwdState::start (this=0x8564d38, aSelf=@0xbfe29294) at forward.cc:121 +#13 0x08098ebc in FwdState::fwdStart (client_fd=22, entry=0xb7bf05a0, request=0x8530058) at forward.cc:276 +#14 0x0807e4eb in clientReplyContext::processMiss (this=0xb7a7a06c) at client_side_reply.cc:711 +#15 0x0807ebcd in clientReplyContext::identifyStoreObject (this=0xb7a7a06c) at client_side_reply.cc:1379 +#16 0x080814ff in ClientHttpRequest::httpStart (this=0x85968e8) at client_side_request.cc:911 +#17 0x08082475 in ClientHttpRequest::doCallouts (this=0x85968e8) at client_side_request.cc:1079 +#18 0x080522c4 in ACLChecklist::checkCallback (this=0x856cf40, answer=ACCESS_ALLOWED) at ACLChecklist.cc:273 +#19 0x080524ae in ACLChecklist::check (this=0x856cf40) at ACLChecklist.cc:184 +#20 0x08081685 in ClientRequestContext::checkNoCache (this=0x85a5c70) at client_side_request.cc:859 +#21 0x080822d2 in ClientHttpRequest::doCallouts (this=0x85968e8) at client_side_request.cc:1052 +#22 0x080831c7 in ClientRequestContext::clientAccessCheckDone (this=0x85a5c70, answer=1) at client_side_request.cc:482 +#23 0x080522c4 in ACLChecklist::checkCallback (this=0x856ce70, answer=ACCESS_ALLOWED) at ACLChecklist.cc:273 +#24 0x080525d7 in ACLChecklist::check (this=0x856ce70) at ACLChecklist.cc:162 +#25 0x080816c5 in ClientRequestContext::clientAccessCheck (this=0x85a5c70) at client_side_request.cc:390 +#26 0x08081f87 in ClientHttpRequest::doCallouts (this=0x85968e8) at client_side_request.cc:1015 +#27 0x08077854 in clientProcessRequest (conn=@0xbfe29bc4, hp=, context=0xb7a9c044, method=METHOD_GET, http_ver= + {major = 1, minor = 1}) at client_side.cc:2280 +#28 0x08077d5d in clientParseRequest (conn=@0xbfe29bc4, do_next_read=@0xbfe29bcb) at client_side.cc:2402 +#29 0x08079074 in clientReadRequest (fd=22, + buf=0xb7b61008 "GET http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml HTTP/1.1\r\nHost: newsrss.bbc.co.uk\r\nUser-Ag---Type to continue, or q to quit--- +ent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20061201 Firefox/2"..., size=781, flag=COMM_OK, xerrno=0, data=0x858e640) + at client_side.cc:2493 +#30 0x0810703e in commio_call_callback (ccb=0x832100c) at comm.cc:209 +#31 0x0810706a in commio_call_callbacks () at comm.cc:219 +#32 0x081070a0 in CommDispatcher::dispatch (this=0xbfe29d70) at comm.cc:2584 + + +Another intermittent failure: + +Program received signal SIGABRT, Aborted. +#3 0x08089771 in xassert (msg=0x81501aa "false", file=0x81573b0 "IPAddress.cc", line=900) at debug.cc:569 +#4 0x08129e53 in IPAddress::NtoA (this=0x858e4a0, buf=0xbfbef891 "", blen=75, force=None) at IPAddress.cc:900 +#5 0x08070f7f in clientdbEstablished (addr=@0x858e4a0, delta=-1) at client_db.cc:153 +#6 0x08075c71 in ConnStateData::close (this=0x858e480) at client_side.cc:606 +#7 0x0810603d in commCallCloseHandlers (fd=16) at comm.cc:1472 +#8 0x0810a820 in _comm_close (fd=16, file=0x8135f8f "client_side.cc", line=2642) at comm.cc:1647 +#9 0x08071b4b in requestTimeout (fd=16, data=0x858e480) at client_side.cc:2642 +#10 0x0810ad0a in checkTimeouts () at comm.cc:2124 +#11 0x0810ae6d in CommSelectEngine::checkEvents (this=0xbfbffb4c, timeout=10) at comm.cc:2595 + + + TODO: 1.2 Migrate code to using IPAddress object over any other method of struct storage Index: squid3/src/access_log.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/access_log.cc,v retrieving revision 1.23.4.17 retrieving revision 1.23.4.18 diff -u -r1.23.4.17 -r1.23.4.18 --- squid3/src/access_log.cc 10 Jun 2007 11:01:23 -0000 1.23.4.17 +++ squid3/src/access_log.cc 10 Jun 2007 11:59:43 -0000 1.23.4.18 @@ -1,6 +1,6 @@ /* - * $Id: access_log.cc,v 1.23.4.17 2007/06/10 11:01:23 amosjeffries Exp $ + * $Id: access_log.cc,v 1.23.4.18 2007/06/10 11:59:43 amosjeffries Exp $ * * DEBUG: section 46 Access Log * AUTHOR: Duane Wessels @@ -574,8 +574,7 @@ case LFT_LOCAL_IP: if (al->request) { - snprintf(tmp,8,"LOCAL_IP"); - out = al->request->my_addr.NtoA(&tmp[8],1024); + out = al->request->my_addr.NtoA(tmp,1024); } break;