Mail Archives: djgpp/1998/03/30/08:30:32
Kevin S. (serpent2 AT ix DOT netcom DOT com) wrote:
: I was wondering if someone could help me with the following problem:
: debugger, I've discovered that the program stops dead at the end of
: the first phase, right at the return call to the main function. The
: error being reported is a SIGSEGV one, which I really don't understand
Very likely that somehow you're trashing the stack. This can happen by
(for example) writing beyond (or before) the bounds of an array. When
the stack gets damaged the chances are good that the address to return
to in the calling function gets stepped on. When that happens the return
will go off into the weeds.
Fred
--
-------------------------------------------------------------------------------
.---- Fred Smith /
( /__ ,__. __ __ / __ : /
/ / / /__) / / /__) .+' Home: fredex AT fcshome DOT stoneham DOT ma DOT us
/ / (__ (___ (__(_ (___ / :__ 781-438-5471
-------------------------------- Jude 1:24,25 ---------------------------------
- Raw text -