From owner-freebsd-current@FreeBSD.ORG Mon Feb 23 05:37:12 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F273E16A4CE for ; Mon, 23 Feb 2004 05:37:11 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A4C643D1D for ; Mon, 23 Feb 2004 05:37:11 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.11/8.12.11) with ESMTP id i1NDb3Qv006814; Mon, 23 Feb 2004 14:37:09 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Jiri Mikulas From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 23 Feb 2004 14:33:15 +0100." <403A011B.9090007@mikulas.com> Date: Mon, 23 Feb 2004 14:37:03 +0100 Message-ID: <6813.1077543423@critter.freebsd.dk> cc: current@freebsd.org Subject: Re: PANIC named - trap.c X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 13:37:12 -0000 In message <403A011B.9090007@mikulas.com>, Jiri Mikulas writes: >Hello >i have FreeBSD 5.2-CURRENT #0: Mon Feb 23 02:17:13 CET 2004 >and i got this panic with chrooted bind9 from ports >bind8 from userland works fine >any ideas why ?:) >thanks for reply Try this patch (NB: cut&pasted, apply by hand): Index: kern_conf.c =================================================================== RCS file: /home/ncvs/src/sys/kern/kern_conf.c,v retrieving revision 1.147 diff -u -r1.147 kern_conf.c --- kern_conf.c 23 Feb 2004 08:42:55 -0000 1.147 +++ kern_conf.c 23 Feb 2004 13:36:17 -0000 @@ -235,7 +235,7 @@ struct cdevsw * devsw(dev_t dev) { - if (dev->si_devsw != NULL) + if (dev != NODEV && dev->si_devsw != NULL) return (dev->si_devsw); return (&dead_cdevsw); } -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.