Date: Thu, 17 Jul 2003 21:57:50 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: peter DOT claessens AT psy DOT kuleuven DOT ac DOT be Message-Id: <2110-Thu17Jul2003215749+0300-eliz@elta.co.il> X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: <3F16D946.3060302@psy.kuleuven.ac.be> (message from Peter Claessens on Thu, 17 Jul 2003 19:13:42 +0200) Subject: Re: malloc/free blues - for Peter Claessens References: <3F156434 DOT 3000508 AT psy DOT kuleuven DOT ac DOT be> <3F16A652 DOT 24B6FEA5 AT psy DOT kuleuven DOT ac DOT be> <08da01c34c6b$be890bd0$0600000a AT broadpark DOT no> <7458-Thu17Jul2003175053+0300-eliz AT elta DOT co DOT il> <3f16bdbc DOT sandmann AT clio DOT rice DOT edu> <3F16D946 DOT 3060302 AT psy DOT kuleuven DOT ac DOT be> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Thu, 17 Jul 2003 19:13:42 +0200 > From: Peter Claessens > > General Protection Fault at eip=000c11f7 > eax=6d657270 ebx=002396d0 ecx=002399b8 edx=6d657274 esi=002399b8 edi=00000012 EAX and EDX look like ASCII text. I'd look at the disassembly near EIP=000c11f7, find where in memory did the value of EAX come, and then display 20 or so bytes around that memory address as if it were a string. The text you will see might ring a bell--e.g., you might see some text that your program puts into some variable. > Next is a page fault here but it often gets reported as general > protection fault! That is normal: when the segment limit is close to 4GB, bad addresses cannot page fault since almost any address is within limits.