From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <1B2326AB-19A1-4C73-9BA6-0033FA0191F8@ar.aichi-u.ac.jp> References: <7ED1969C-3B1B-4FE4-8E2D-5B486E636E26@ar.aichi-u.ac.jp> <1B2326AB-19A1-4C73-9BA6-0033FA0191F8@ar.aichi-u.ac.jp> Date: Wed, 12 Aug 2009 07:59:31 -0700 Message-ID: Subject: Re: [9fans] validateaddress From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 447d009c-ead5-11e9-9d60-3106f5b1d025 so strcmp is being called a lot but klook isn't. that means that klook is looping inside, which basically means the p->next pointer is pointing at itself. final script: kw mem(kw, "30X") // dumps hash table *(kw+25*4) mem(*(kw+25*4), "16X") // dumps entry for 'in' *(**(kw+25*4)\s) // should print 'in' i expect that the value printed for *(kw+25*4) in the third line will also be the third value printed by the mem on the fourth line, meaning that the hash table entry in question has a next pointer pointing at itself. assuming that is true, i think we're close to the end of what can be done. the hash table list isn't supposed to loop back on itself but it is. that means some kind of dangling pointer or other memory corruption error, which we're not likely to find retroactively. russ