From: dcasale AT my-deja DOT com Newsgroups: comp.os.msdos.djgpp Subject: Re: GP fault on a new -- why? Date: Wed, 07 Feb 2001 22:48:44 GMT Organization: Deja.com Lines: 42 Message-ID: <95sjc9$avu$1@nnrp1.deja.com> References: <95pqqk$t55$1 AT nnrp1 DOT deja DOT com> <95r92s$eb9$1 AT antares DOT lu DOT erisoft DOT se> NNTP-Posting-Host: 199.249.234.30 X-Article-Creation-Date: Wed Feb 07 22:48:44 2001 GMT X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98) X-Http-Proxy: 1.1 x54.deja.com:80 (Squid/1.1.22) for client 199.249.234.30 X-MyDeja-Info: XMYDJUIDdcasale To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <95r92s$eb9$1 AT antares DOT lu DOT erisoft DOT se>, eplmst AT lu DOT erisoft DOT se (Martin Stromberg) wrote: > dcasale AT my-deja DOT com wrote: > : Me again. I've broken my compression proggy again by trying to add > : another feature. This time, I've managed to get it to give me > : a "General Protection Fault" when I try to do a new. This is under > : straight DOS, by the way. > > : I'm building a huge (about 8000ish or so) linked list of objects (16 > : bytes per object, not including allocation overhead) for the > : purpose of sorting a huge list of files. When I'm getting towards > : the end of the list of files, I get a GPF when I try to create > : another linked list object. > > : I've tried making the stack bigger (a-la FAQ 15.9). I've tried > : increasing the CWSDPMI heap size (a-la FAQ 15.4). Neither seems to > : have helped. Whether I'm debugging the program under RHIDE or just > : running it straight, it seems to fail with the exact same error, in > : the exact same spot, on the exact same file, every time. > > : The GPF gives me esi=00000010, meaning that my stack has somehow > : wrapped around. Right? But how is that possible if I've increased > : the stack size? What else could be causing this problem? > > If you want most/best help you need to post the whole crash > dump... (Doesn't the FAQ say so somewhere?) Okay, here's all it gives me. No stack trace or anything. General Protection Fault at eip-3af9d; flags=3046 eax=00043406 ebx=000100af ecx=00af00a7 edx=0000001c esi=00af00bf edi=00000000 ebp=0004342c esp=0000227a cs=a7 ds=a7 es=af fs=bf gs=bf ss=33 error=0000 I don't know if this'll be any help, tho... Damon Casale, damon AT WRONG DOT redshift DOT com (remove the obvious) General Reality Fault. (A)bort, (R)etry, (I)gnore? Sent via Deja.com http://www.deja.com/