From owner-freebsd-current@FreeBSD.ORG Fri Sep 17 05:45:37 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 668EA16A4CE; Fri, 17 Sep 2004 05:45:37 +0000 (GMT) Received: from neo.redjade.org (neo.redjade.org [219.254.21.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9C7043D2D; Fri, 17 Sep 2004 05:45:36 +0000 (GMT) (envelope-from ssw@neo.redjade.org) Received: from neo.redjade.org (localhost [127.0.0.1]) by neo.redjade.org (8.13.1/8.13.1) with ESMTP id i8H5jbe1056500; Fri, 17 Sep 2004 14:45:37 +0900 (KST) (envelope-from ssw@neo.redjade.org) Received: (from ssw@localhost) by neo.redjade.org (8.13.1/8.13.1/Submit) id i8H5jW7A056499; Fri, 17 Sep 2004 14:45:32 +0900 (KST) (envelope-from ssw) Date: Fri, 17 Sep 2004 14:45:32 +0900 From: Sangwoo Shim To: FUJIMOTO Kou Message-ID: <20040917054532.GA56420@neo.redjade.org> References: <4146C15B.3090402@j.dendai.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=euc-kr Content-Disposition: inline In-Reply-To: <4146C15B.3090402@j.dendai.ac.jp> User-Agent: Mutt/1.5.4i cc: imp@freebsd.org cc: current@freebsd.org Subject: Re: BETA4 kernel panic on boot with USB devices 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: Fri, 17 Sep 2004 05:45:37 -0000 On Tue, Sep 14, 2004 at 07:00:59PM +0900, FUJIMOTO Kou wrote: > Hi, > > I found 5.3-BETA4 kernel hangs on boot sequence. [snip] > after this message, kernel panic occurs. I've seen this, too. (though I'm using 6.0-CURRENT of today.) odin:~ $ uname -a FreeBSD odin 6.0-CURRENT FreeBSD 6.0-CURRENT #1: Fri Sep 17 13:32:39 KST 2004 root@odin:/usr/obj/usr/src/sys/ODIN i386 odin:~ $ I'm using usb keyboard with 2-port usb hub. (HHK lite2, maybe same as FUJIMOTO-san's. ;-)) The following is the tr output in the DDB. (hand-writen) instruction ptr. 0x8:0xc04c6b73 kobj_delete() device_delete_child() usb_disconnect_port() uhub_detach() device_detach() device_delete_child() usb_disconnect_port() uhub_explore() usb_discover() usb_event_thread() fork_exit() fork_trampoline() Grepped output of instruction pointer. odin:/usr/obj/usr/src/sys/ODIN $ nm kernel.debug | grep c04c6b c04c6b68 T kobj_delete odin:/usr/obj/usr/src/sys/ODIN $ kgdb output. (kgdb) l *0xc04c6b73 0xc04c6b73 is in kobj_delete (/usr/src/sys/kern/subr_kobj.c:323). 318 } 319 320 void 321 kobj_delete(kobj_t obj, struct malloc_type *mtype) 322 { 323 kobj_class_t cls = obj->ops->cls; 324 int refs; 325 326 /* 327 * Consider freeing the compiled method table for the class (kgdb) fr 24 #24 0xc04c23dc in device_delete_child (dev=0x0, child=0xc1ffba00) at /usr/src/sys/kern/subr_bus.c:1489 1489 kobj_delete((kobj_t) child, M_BUS); (kgdb) p *child $3 = {ops = 0x0, link = {tqe_next = 0x0, tqe_prev = 0xc1ffbd98}, devlink = { tqe_next = 0x0, tqe_prev = 0xc1ffbd8c}, parent = 0xc1ffbd80, children = { tqh_first = 0x0, tqh_last = 0xc1ffba18}, driver = 0x0, devclass = 0x0, unit = -1, nameunit = 0x0, desc = 0x0, busy = 0, state = DS_NOTPRESENT, devflags = 0, flags = 53, order = 0 '\0', pad = 0 '\0', ivars = 0xc1d2fdc0, softc = 0x0, sysctl_ctx = {tqh_first = 0xc1a40870, tqh_last = 0xc1a72784}, sysctl_tree = 0x0} This panic is 100% reproducible if I unplug the keyboard. Or, boot with the keyboard plugged. (As FUJIMOTO-san said, USB keyboard and mouse are detached and reattached in boot sequence.) Regards, Sangwoo