From owner-freebsd-hackers Mon Sep 9 20:21:53 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 756EB37B400 for ; Mon, 9 Sep 2002 20:21:50 -0700 (PDT) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB14543E3B for ; Mon, 9 Sep 2002 20:21:19 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 68F5D8130F; Tue, 10 Sep 2002 12:50:14 +0930 (CST) Date: Tue, 10 Sep 2002 12:50:14 +0930 From: Greg 'groggy' Lehey To: Terry Lambert Cc: Stacy Millions , hackers@FreeBSD.org Subject: Re: I climb the mountain seeking wisdom Message-ID: <20020910032014.GG20691@wantadilla.lemis.com> References: <3D78F291.8010005@millions.ca> <20020908064449.GG46846@wantadilla.lemis.com> <3D7D212E.6030601@millions.ca> <20020910021732.GB20691@wantadilla.lemis.com> <3D7D639A.99E034EC@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D7D639A.99E034EC@mindspring.com> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Monday, 9 September 2002 at 20:14:34 -0700, Terry Lambert wrote: > Greg 'groggy' Lehey wrote: >> There will always be situations where the debugger can't catch the >> problem in time. Then it's up to you to guess and put a breakpoint >> just before it freezes; this can be an interative process. The method >> requiring the least thought is to single step over function calls >> until the system freezes. Then you know which function it happened >> in. Reboot, set a breakpoint in that function, and repeat. > > Dumping a bunch of printf's in, with "Here 1\n", "Here 2\n", and so > on will find this problem a lot faster than an equivalent number of > reboots. 8-). That depends on how well you use each tool. Greg -- See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message