From owner-freebsd-questions Thu Mar 9 15:12:55 2000 Delivered-To: freebsd-questions@freebsd.org Received: from servidor1.cursosvirtuales.com.ar (www.cursosvirtuales.com.ar [200.10.104.198]) by hub.freebsd.org (Postfix) with ESMTP id 6F0D037B803 for ; Thu, 9 Mar 2000 15:12:43 -0800 (PST) (envelope-from fpscha@servidor1.cursosvirtuales.com.ar) Received: (from fpscha@localhost) by servidor1.cursosvirtuales.com.ar (8.9.3/8.9.3) id UAA13438; Thu, 9 Mar 2000 20:29:30 -0300 (ART) Received: from ns2.via-net-works.net.ar (ns2.via-net-works.net.ar [200.10.100.11]) by servidor1.cursosvirtuales.com.ar (8.9.3/8.9.3) with ESMTP id TAA13321 for ; Thu, 9 Mar 2000 19:48:09 -0300 (ART) Received: from Recabarren.UUCP (uucp@localhost) by ns2.via-net-works.net.ar (8.9.3/8.9.3) with UUCP id TAA06628; Thu, 9 Mar 2000 19:26:06 -0300 (GMT) Received: (from fpscha@localhost) by localhost.schapachnik.com.ar (8.9.3/8.8.5) id TAA00381; Thu, 9 Mar 2000 19:25:47 -0300 (ART) Message-Id: <200003092225.TAA00381@localhost.schapachnik.com.ar> Subject: Re: Debugging kernel In-Reply-To: <20000309165255.P62624@strontium.scientia.demon.co.uk> from Ben Smithurst at "Mar 9, 0 04:52:55 pm" To: ben@scientia.demon.co.uk (Ben Smithurst) Date: Thu, 9 Mar 2000 19:25:47 -0300 (ART) Cc: fernando@cursosvirtuales.com.ar, freebsd-questions@freebsd.org From: "Fernando P. Schapachnik" X-OS: FreeBSD 3.4 - http://www.freebsd.org X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG En un mensaje anterior Ben Smithurst escribió: > config -g FOO > cd ../../compile/FOO > make depend > make > cp kernel kernel.debug > strip -g kernel > make install > > Doesn't the FAQ say this? Anyway, then you can "make install" to get the No it doesn´t. It says that make after config -g will produce both kernels. I´ll send a PR about this as soon as I get it to work. > stripped kernel installed. If it panics again, then, > > cd /var/crash > gdb -k > > at gdb prompt, (n is the suffix of the newest dump) > > exec-file kernel.n > core-file vmcore.n > symbol-file /sys/compile/FOO/kernel.debug Look what happened: [103]Recabarren:/var/crash>l total 78892 drwxr-xr-x 2 root wheel 512 9 mar 19:19 ./ drwxr-xr-x 20 root wheel 512 7 mar 23:05 ../ -rw-r--r-- 1 root wheel 2 9 mar 19:15 bounds -rw-r--r-- 1 root wheel 2284153 9 mar 19:15 kernel.2 -rwxr-xr-x 1 root wheel 11323875 9 mar 16:29 kernel.debug* -rw-r--r-- 1 root wheel 729 9 mar 19:19 typescript -rw------- 1 root wheel 67108864 9 mar 19:15 vmcore.2 [104]Recabarren:/var/crash>gdb -k GNU gdb 4.18 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-freebsd". (kgdb) exec-file kernel.2 (kgdb) core-file vmcore.2 kernel symbol `IdlePTD' not found. (kgdb) where No stack. (kgdb) symbol-file kernel.debug Reading symbols from kernel.debug...done. (kgdb) where No stack. Any clues? Thanks for your help anyway. Fernando P. Schapachnik fernando@schapachnik.com.ar To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message