From owner-freebsd-current Thu Oct 17 11:40:52 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA20111 for current-outgoing; Thu, 17 Oct 1996 11:40:52 -0700 (PDT) Received: from critter.tfs.com ([140.145.230.177]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id LAA20067; Thu, 17 Oct 1996 11:40:27 -0700 (PDT) Received: from critter.tfs.com (localhost.tfs.com [127.0.0.1]) by critter.tfs.com (8.7.5/8.7.3) with ESMTP id UAA04107; Thu, 17 Oct 1996 20:39:12 +0200 (MET DST) To: Nate Williams cc: Keith Mitchell , current@freebsd.org Subject: Re: Weirdness in current In-reply-to: Your message of "Thu, 17 Oct 1996 12:05:15 MDT." <199610171805.MAA19142@rocky.mt.sri.com> Date: Thu, 17 Oct 1996 20:39:12 +0200 Message-ID: <4105.845577552@critter.tfs.com> From: Poul-Henning Kamp Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In message <199610171805.MAA19142@rocky.mt.sri.com>, Nate Williams writes: >> > Where is it dumping core? >> >> I checked my program again and did find a small bug in it that would cause >> it to reference an array out of bounds. Its amazing that compiling in the >> math library would fix this and the dynamic/static executable made a >> difference. ;-) And at that only on output redirection. Go Figure. ;->> > >Stack corruption bugs are a *bugger* to find. The program has a >completely different 'memory' allocation setup when used static >vs. shared libraries due to mmap() usage in the shlib loader. > >In any case, we're glad everything's working now. :) I don't know of any reliable & simple way to catch that kind of bug. I once made a gross hack on a Pyramid, such that checksum of the stack was made at every function call and record written to file at the return recording match/nomatch. Crude but it worked :-) -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@ref.tfs.com TRW Financial Systems, Inc. Future will arrive by its own means, progress not so.