From owner-freebsd-alpha Wed Jun 6 7:49:31 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 232A937B401; Wed, 6 Jun 2001 07:49:27 -0700 (PDT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id KAA05324; Wed, 6 Jun 2001 10:49:26 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.3/8.9.1) id f56EmuU34639; Wed, 6 Jun 2001 10:48:56 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <15134.17112.301087.463407@grasshopper.cs.duke.edu> Date: Wed, 6 Jun 2001 10:48:56 -0400 (EDT) To: obrien@FreeBSD.ORG Cc: Freebsd-alpha@FreeBSD.ORG Subject: Re: -current kernel still considered dangerous In-Reply-To: <20010606072708.A96129@dragon.nuxi.com> References: <20010605170234.B95616@dragon.nuxi.com> <15133.30473.480681.753965@grasshopper.cs.duke.edu> <20010605174808.F95616@dragon.nuxi.com> <20010605183942.G95616@dragon.nuxi.com> <15134.14841.825808.882824@grasshopper.cs.duke.edu> <20010606072708.A96129@dragon.nuxi.com> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org David O'Brien writes: > On Wed, Jun 06, 2001 at 10:11:05AM -0400, Andrew Gallatin wrote: > >=20 > > I just built a kernel statically & found it. >=20 > I was hoping to learn how to debug modules. Is there no way we woul= d > have found this w/o building OSF1 support statically in the kernel? I was in a hurry & I generally don't use modules on -current. You can try http://www.cs.duke.edu/~gallatin/gdbmods. It has some historical goop for 'target kcore' (which used to be required rather than 'gdb -k' on alpha) which needs to be ripped out. I'm not so sure of how well it works on -current. A typical usage is (from an x86 4.3) is: # gdbmods 0 please be patient while loaded modules are resolved gdbmods using kernel: /var/crash/kernel.0 gdbmods using core: /var/crash/vmcore.0 added symbols for module usb.ko added symbols for module clan.ko command line: gdb -k -x /tmp/mytmp.root /var/crash/kernel.0 /var/crash= /vmcore.0 GNU gdb 4.18 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and yo= u are welcome to change it and/or distribute copies of it under certain condi= tions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for deta= ils. This GDB was configured as "i386-unknown-freebsd"... IdlePTD 4091904 initial pcb at 34b860 panicstr: free: multiple frees panic messages: --- <...> 0 dumpsys () at ../../kern/kern_shutdown.c:469 <...> #10 0xc2f0d5bd in gni_map_and_lock (priv=3D0xc2f36400, rgn=3D0xc3163000= ,=20 op=3DMAPOP_REG, is_kaddr=3D0) at /usr/project/ari1/users/gallatin/clan/clan-1.3.0/freebsd/clanhw/= clan1k.c:2549 #11 0xc2f0d799 in gni_register (priv=3D0xc2f36400,=20 addr=3D0x766cfff
, len=3D10485760,= =20 do_register=3D1, enable_rdma=3D1, handle=3D0xee8a9e70, is_kaddr=3D0= , p=3D0xee8902a0) at /usr/project/ari1/users/gallatin/clan/clan-1.3.0/freebsd/clanhw/= clan1k.c:2668 #12 0xc2f0b9f8 in gni_fileioctl (fp=3D0xc2fcdfc0, cmd=3D3222554370,=20 data=3D0xee8a9eac "=FF=CFf\a", p=3D0xee8902a0) at /usr/project/ari1/users/gallatin/clan/clan-1.3.0/freebsd/clanhw/= clan1k.c:232 <...> Note that "gni_*" are functions in the module clan.ko Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message