Newsgroups: comp.os.msdos.djgpp From: fredex AT fcshome DOT stoneham DOT ma DOT us (Fred Smith) Subject: Re: Need help with a program. Organization: None! Message-ID: References: <351df020 DOT 4727187 AT nntp DOT ix DOT netcom DOT com> Date: Sun, 29 Mar 1998 23:39:50 GMT Lines: 21 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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 ---------------------------------