From: damon AT WRONG DOT redshift DOT com (Damon Casale) Newsgroups: comp.os.msdos.djgpp Subject: Re: GP fault on a new -- why? Date: Thu, 22 Feb 2001 05:38:53 GMT Organization: Posted via Supernews, http://www.supernews.com Message-ID: <3a94a56b.86152342@news.redshift.com> References: X-Newsreader: Forte Free Agent 1.11/32.235 X-Complaints-To: newsabuse AT supernews DOT com Lines: 20 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Wed, 21 Feb 2001 19:13:58 +0200 (IST), Eli Zaretskii wrote: >On Wed, 21 Feb 2001, Damon Casale wrote: > >> The routine I had written which exhibited this problem was a recursive >> add-to-linked-list function. > >Problems with deeply recursive functions are indeed one of the possible >causes for crashes inside CWSDPMI. If your recursion is so deep that it >overflows the 512K stack, you can overwrite crucial data structures in >the DJGPP exception handlers and get such crashes. I tried setting _stklen to 1 meg, but that didn't seem to help. Maybe I didn't do that right. *shrugs* Damon Casale, damon AT WRONG DOT redshift DOT com (remove the obvious) "Warning: Playing 'Jenga' with your stack may be hazardous to your health."