From owner-freebsd-current Wed Jun 4 08:53:43 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id IAA06126 for current-outgoing; Wed, 4 Jun 1997 08:53:43 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id IAA06115 for ; Wed, 4 Jun 1997 08:53:38 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id RAA02477 for current@FreeBSD.ORG; Wed, 4 Jun 1997 17:53:25 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id RAA20018; Wed, 4 Jun 1997 17:49:18 +0200 (MET DST) Message-ID: <19970604174918.CS56609@uriah.heep.sax.de> Date: Wed, 4 Jun 1997 17:49:18 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: current@FreeBSD.ORG Subject: Re: page fault References: <19970602220739.KN28267@uriah.heep.sax.de> <199706030730.KAA09291@shadows.aeon.net> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199706030730.KAA09291@shadows.aeon.net>; from mika ruohotie on Jun 3, 1997 10:30:19 +0300 Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As mika ruohotie wrote: > > I hope, after reading that stuff, you know what i mean by the above > > comment. > > yes, but i failed to get kernel -g:ed. i guess after this i'll use > the 'config -g' as default. Be careful to not accidentally load this bloated kernel into memory. :) Also, i found the time ld(1) requires to link a full -g kernel to be enormous. Normally, if i just wanna examine a core dump, i modify the Makefile to use the same cc options as before (notably the same optimization level), but add -g. NB: you gotta replace the COPTS ?= line by an absolute one. Then, i remove the .o files i wanna force to rebuild, and just rebuild this part of the kernel. After this, you can usually analyze the stacktrace. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)