Date: Thu, 11 Jul 1996 18:11:34 +0200 (IST) From: Eli Zaretskii To: Oberhumer Markus Cc: djgpp-workers Subject: Re: gdb crashes if environment too big In-Reply-To: <199607111355.PAA21159@c210.edvz.uni-linz.ac.at> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 11 Jul 1996, Oberhumer Markus wrote: > Recently I've changed my environment (about 6000 from 8192 bytes used), > and now I'm encountering a bug when starting gdb or fsdb. [snip] > Call frame traceback EIPs: > 0x00018c85 ___dj_movedata+33 > 0x00011696 _v2loadimage+1106, line 145 of v2load.c Seems like a bug in v2load.c to me. If you debug an unstabbed COFF image, it assumes (on line 91) that stubinfo.minkeep is 4KB (a left-over from v1.x?), allocates DOS memory for that many bytes, then boldly goes on to move the environment block into that DOS buffer. If the above analysis is correct, you should not see such problems when you debug a stubbed .exe program (gdb cannot do this currently, but other debuggers can). Can you see if running fsdb on a stubbed executable avoids such problems?