From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 6 17:25:40 2011 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 818701065672; Thu, 6 Oct 2011 17:25:40 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 479458FC15; Thu, 6 Oct 2011 17:25:40 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:b9fd:2f11:cd06:1a6]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 788EF4AC1C; Thu, 6 Oct 2011 21:25:39 +0400 (MSD) Date: Thu, 6 Oct 2011 21:25:29 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <155347808.20111006212529@serebryakov.spb.ru> To: Andriy Gapon In-Reply-To: <4E8DDE4B.4040608@FreeBSD.org> References: <1034127827.20111006205103@serebryakov.spb.ru> <4E8DDE4B.4040608@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: hackers@FreeBSD.org Subject: Re: how to debug RB_TREE for memory corruption? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2011 17:25:40 -0000 Hello, Andriy. You wrote 6 =EE=EA=F2=FF=E1=F0=FF 2011 =E3., 20:58:51: >> Any hints how to debug such strange situation? > A trivial check first - does the element on which you call RB_DELETE actu= ally > belong to the tree in question? Yep, I've checked it after sending message. Doesn't belong. Logic bug earlier... Sorry for noise on list :) --=20 // Black Lion AKA Lev Serebryakov