delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/01/13:10:32

From: axlq AT unicorn DOT us DOT com (to comp.os.msdos.djgpp)
Newsgroups: comp.os.msdos.djgpp
Subject: Solved! (Re: Pentium "General Protection Fault")
Date: 1 Sep 1999 15:23:01 GMT
Organization: a2i network
Message-ID: <7qjgcl$hmt$1@samba.rahul.net>
References: <7qhbnp$3rp$1 AT samba DOT rahul DOT net> <7qja6k$gi4$1 AT samba DOT rahul DOT net>
NNTP-Posting-Host: waltz.rahul.net
NNTP-Posting-User: unicorn
Lines: 18
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Problem solved!  Thanks Eli, who told me about symify, and thanks
Michael, who shared his identical experience, and the solution:

From: Michael Bukin <M DOT A DOT Bukin AT inp DOT nsk DOT su>
Date: 01 Sep 1999 21:13:35 +0700

I recall that I had similar problem while porting one application.
Implementation of malloc in djgpp-2.02 defines global array "freelist"
which keeps some internal state of malloc.  If you have the same
global symbol in your code, your program may crash when malloc
dereference this array.

One solution is to replace all references to global symbol "freelist"
in your code with something else, or make "freelist" static.  If you
don't have global symbol "freelist", then, IIRC, there are other
global symbols defined in malloc.

[snip]

- Raw text -


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