Date: Thu, 17 Jul 2003 06:29:29 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-Id: <3405-Thu17Jul2003062928+0300-eliz@elta.co.il> X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <3F159AC9.4010402@student.kuleuven.ac.be> (message from Peter Claessens on Wed, 16 Jul 2003 20:34:49 +0200) Subject: Re: malloc/free blues References: <3F156434 DOT 3000508 AT psy DOT kuleuven DOT ac DOT be> <3F159AC9 DOT 4010402 AT student 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: Wed, 16 Jul 2003 20:34:49 +0200 > From: Peter Claessens > > Page fault at eip=000c0df0, error=0006 > eax=001c2028 ebx=003f501c ecx=003f501c edx=00161298 esi=0043702c edi=00000013 > ebp=003a1038 esp=003a102c program=C:\SRC\DOTS2002\DOTREAD.EXE > cs: sel=00af base=839b6000 limit=ffffafff > ds: sel=00b7 base=839b6000 limit=ffffafff > es: sel=00b7 base=839b6000 limit=ffffafff > fs: sel=00c7 base=00000000 limit=0010ffff > gs: sel=00c7 base=00000000 limit=0010ffff > ss: sel=00b7 base=839b6000 limit=ffffafff > App stack: [003a2000..002a2000] Exceptn stack: [00167318..001653d8] > > Call frame traceback EIPs: > 0x000c0df0 free+168, file malloc.c Looks indeed as a heap corruption. What does GDB print if you invoke it on your program, like this: gdb dotread.exe and then type this at GDB's prompt: x/i 0x000c0df0 ?