From owner-freebsd-current Sun Jul 29 14:59:58 2001 Delivered-To: freebsd-current@freebsd.org Received: from axl.seasidesoftware.co.za (axl.seasidesoftware.co.za [196.31.7.201]) by hub.freebsd.org (Postfix) with ESMTP id B6D1537B401; Sun, 29 Jul 2001 14:59:51 -0700 (PDT) (envelope-from sheldonh@starjuice.net) Received: from sheldonh (helo=axl.seasidesoftware.co.za) by axl.seasidesoftware.co.za with local-esmtp (Exim 3.31 #1) id 15QycH-0000fV-00; Mon, 30 Jul 2001 00:00:53 +0200 From: Sheldon Hearn To: current@FreeBSD.org Cc: jhb@FreeBSD.org Subject: Re: Help wanted: loadable SMBFS In-reply-to: Your message of "Sun, 29 Jul 2001 22:18:51 +0200." <1445.996437931@axl.seasidesoftware.co.za> Date: Mon, 30 Jul 2001 00:00:53 +0200 Message-ID: <2572.996444053@axl.seasidesoftware.co.za> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 29 Jul 2001 22:18:51 +0200, Sheldon Hearn wrote: > (kgdb) frame 11 > #11 0xc01b806f in witness_destroy (lock=0xc1366d18) > at /usr/src/sys/kern/subr_witness.c:395 > 395 STAILQ_REMOVE(&all_locks, lock, lock_object, lo_list); I got a little help from some folks on IRC who helped me with a disassembly that confirms a null pointer dereference in the STAILQ_REMOVE(). So I started walking all_locks. It's a boring process. Isn't there a faster way to find out whether lock's address is the value of an lo_list->stqe_next member of any entry in all_locks before the list-terminating NULL? Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message