delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/06/17:35:46

From: dcasale AT my-deja DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: GP fault on a new -- why?
Date: Tue, 06 Feb 2001 21:37:26 GMT
Organization: Deja.com
Lines: 29
Message-ID: <95pqqk$t55$1@nnrp1.deja.com>
NNTP-Posting-Host: 199.249.234.30
X-Article-Creation-Date: Tue Feb 06 21:37:26 2001 GMT
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)
X-Http-Proxy: 1.1 x63.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

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?

Damon Casale, damon AT WRONG DOT redshift DOT com (remove the obvious)
"Files.  Piles of files.  Aisles of piles of files.  Miles of aisles of
piles of files.  Oh, the trials of miles of aisles of piles of files!" -
- unknown


Sent via Deja.com
http://www.deja.com/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019