Mail Archives: djgpp/1999/09/06/12:00:15
Peter Restall (pete AT restall DOT net) wrote:
> On Thu, 2 Sep 1999 11:10:02 +0300 (IDT), Eli replied:
> > If you cannot figure this out, please post a complete short program
> > that can be compiled and debugged, and which exhibits this behavior.
> > Then someone will probably find the problem.
> That might be kinda hard. I'm making a 3D engine, and I've got a couple of
> hundred kilobytes of source.
So what? Not all of those are going to be used in the minimal program
that still shows the bug. Actually, odds are rather high that you'll
find the error yourself, while cutting the program down to the
'necessary' pieces. Just have a careful look at each program line that
turns out to kill the bug, if you remove that line.
Another hint: get yourself 'Checker-gcc' for linux, and send your
program through it. That special version of gcc is quite good at
detecting any kind of overwriting memory that shouldn't be touched
(buffer over/underflow), or reads of uninitialized memory.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -