Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Oct 1996 20:39:12 +0200
From:      Poul-Henning Kamp <phk@critter.tfs.com>
To:        Nate Williams <nate@mt.sri.com>
Cc:        Keith Mitchell <kmitch@unix.guru.org>, current@freebsd.org
Subject:   Re: Weirdness in current 
Message-ID:  <4105.845577552@critter.tfs.com>
In-Reply-To: Your message of "Thu, 17 Oct 1996 12:05:15 MDT." <199610171805.MAA19142@rocky.mt.sri.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4105.845577552>