🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.memory
Article #5

Re: What *is* a General Protection Fault

#5
From: Torsten Hoff
Date: Mon, 25 Sep 1995 23:27
27 lines
1680 bytes
In article <4470k6$147l@navajo.gate.net>,
   stidev@news.gate.net (Solution Technology) wrote:
>That usually indicates uninitialized pointers or data.
>The debugger frequently supplies a zero initial value while
>non-debug running uses the previous contents of memory.
>

There are a few other possibilities. Check for any differences between your 
Debug and Release compiler and linker settings. Frequently, optimization is 
turned off during debugging to keep the instruction pointer from going all 
over the place as one is tracing through the code in the debugger, and it is 
turned back on to get smaller, faster code. As we all know, optimization bugs 
(and coding problems revealed by optimization) are not unheard of.

Another possibility is a different, smaller stack size for the Release link. 
The GPF you are seeing could be a result of stack overflow. By the way, what 
is the exact GPF you are seeing? There are several different kinds, and it 
might help pinpoint the problem...



Torsten Hoff
thoff@symantec.com

(The views and opinions expressed here are my own,
and should not be construed as representing those
of Symantec Corp.)
Technical Details
Message-ID: <447ohk$1nt@symiserver.symantec.com>
Path: arc1-ca.pugleaf.net!symiserver.symantec.com!THOFF
References: <446uh6$ieu@zeus.tcp.co.uk> <4470k6$147l@navajo.gate.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!symiserver.symantec.com!THOFF
From: thoff@symantec.com (Torsten Hoff)
Newsgroups: comp.os.ms-windows.programmer.memory,comp.os.ms-windows.programmer.tools.mfc,comp.lang.c++
Subject: Re: What *is* a General Protection Fault
Date: Mon, 25 Sep 95 23:27:13 GMT
Organization: Symantec Corp.
Message-ID: <447ohk$1nt@symiserver.symantec.com>
References: <446uh6$ieu@zeus.tcp.co.uk> <4470k6$147l@navajo.gate.net>
NNTP-Posting-Host: 155.64.151.223
X-Newsreader: News Xpress Version 1.0 Beta #4