delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/01/12:46:38

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Runtime mystery
Date: 1 Nov 2000 17:40:59 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 28
Message-ID: <8tpkjb$rfi$1@nets3.rz.RWTH-Aachen.DE>
References: <OE2s4nLLW94lJ7tUUQD00003408 AT hotmail DOT com> <003001c0435b$3e965b60$1e806f83 AT quns DOT cam DOT ac DOT uk> <OE34F58tP9DLf4bg5Xm000008cc AT hotmail DOT com>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 973100459 28146 137.226.32.75 (1 Nov 2000 17:40:59 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 1 Nov 2000 17:40:59 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Tom Hutto <huttothomas AT hotmail DOT com> wrote:

> intellegent questions :-(  Furthermore, if I could duplicate the problem
> in a small program then I could fix it myself, nicht war?

Depends on now much expertise in debugging you have. Actually, part of
the point in asking bug reports to be self-contained is that a
significant fraction of reports will be found even before the problem
reaches the newsgroup. Often, the bug will sort of stand out like a
sore thumb once you've started tracking it down to the minimal
program.  It's a bit like that old saying of giving a man a fishing
rod, instead of just a fish.

The other purpose is that it's a whole lot easier to debug the
program, for the real experts around here, if it's a small program.

> When the act of loading a program into the debugger fixes a runtime
> problem, is the 'fix' usually due to changed memory alignment due to the
> fact that the target is loaded into a different place in memory?

Not alignment, as such. But the random garbage that the program finds
in uninitialized variables it uses will be different. Most of the
time, _that's_ the reason of a bug that vanishes if you run in a
debugger.

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019