From owner-freebsd-hackers Thu Aug 26 23: 0:18 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from relay.ucb.crimea.ua (relay.ucb.crimea.ua [212.110.138.1]) by hub.freebsd.org (Postfix) with ESMTP id A04BC152F9 for ; Thu, 26 Aug 1999 22:58:59 -0700 (PDT) (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.9.3/8.9.3/UCB) id IAA12817; Fri, 27 Aug 1999 08:57:13 +0300 (EEST) (envelope-from ru) Date: Fri, 27 Aug 1999 08:57:12 +0300 From: Ruslan Ermilov To: Amit Singh Cc: hackers@FreeBSD.ORG Subject: Re: Examining kernel core dump: gd_curpcb Message-ID: <19990827085712.A90665@relay.ucb.crimea.ua> Mail-Followup-To: Amit Singh , hackers@FreeBSD.ORG References: <199908262018.QAA08160@aura.research.bell-labs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <199908262018.QAA08160@aura.research.bell-labs.com>; from Amit Singh on Thu, Aug 26, 1999 at 04:18:33PM -0400 X-Operating-System: FreeBSD 3.2-STABLE i386 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This has been fixed with the following commit: luoqi 1999/05/24 12:31:19 PDT Modified files: (Branch: RELENG_3) gnu/usr.bin/binutils/gdb/i386 freebsd-nat.c kvm-fbsd.c Log: Back out changes don't belong to the 3.x branch. Revision Changes Path 1.21.2.2 +3 -1 src/gnu/usr.bin/binutils/gdb/i386/freebsd-nat.c 1.17.2.2 +12 -73 src/gnu/usr.bin/binutils/gdb/i386/kvm-fbsd.c On Thu, Aug 26, 1999 at 04:18:33PM -0400, Amit Singh wrote: > > The kernel (a hacked 3.2-RELEASE) dumps core (courtesy a panic), > and upon a subsequent boot, the following happens: > > # cd /usr/src/sys/compile/FOOKERNEL > # gdb -k > GNU gdb 4.18 > ... > (kgdb) symbol-file kernel.debug > Reading symbols from kernel.debug...done. > (kgdb) exec-file /var/crash/kernel.0 > (kgdb) core-file /var/crash/vmcore.0 > IdlePTD 4294967295 > kernel symbol `gd_curpcb' not found. > > gd_curpcb is (apparently) not referenced in either of the kernel, > kernel.debug or vmcore files. It is however referenced in > /usr/libexec/elf/gdb though. > > Next, a "grep gd_curpcb **/*" in the GNU source for gdb-4.18 > yields no match. The file src/gnu/usr.bin/binutils/i386/kvm-fbsd.c > does contain the following: > > curpcb = kvtophys(cfd, ksym_lookup ("gd_curpcb") + prv_start); > > The question is: where is this symbol defined so that gdb can > look it up successfully? > > Regards > Amit Singh Cheers, -- Ruslan Ermilov Sysadmin and DBA of the ru@ucb.crimea.ua United Commercial Bank, ru@FreeBSD.org FreeBSD committer, +380.652.247.647 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message