delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/07/17/09:45:34

From: Jan Vanrie <Jan DOT Vanrie AT psy DOT kuleuven DOT ac DOT be>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: malloc/free blues - for Peter Claessens
Date: Thu, 17 Jul 2003 15:32:21 +0200
Organization: KULeuven
Lines: 66
Message-ID: <3F16A565.F77DA70E@psy.kuleuven.ac.be>
References: <3F156434 DOT 3000508 AT psy DOT kuleuven DOT ac DOT be> <uu19m75gm DOT fsf AT elta DOT co DOT il> <3F159AC9 DOT 4010402 AT student DOT kuleuven DOT ac DOT be> <3405-Thu17Jul2003062928+0300-eliz AT elta DOT co DOT il>
NNTP-Posting-Host: seven.kulnet.kuleuven.ac.be
Mime-Version: 1.0
X-Trace: naxos.belnet.be 1058448742 4687 134.58.127.12 (17 Jul 2003 13:32:22 GMT)
X-Complaints-To: abuse AT belnet DOT be
NNTP-Posting-Date: Thu, 17 Jul 2003 13:32:22 +0000 (UTC)
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
X-Accept-Language: en
Cache-Post-Path: seven.kulnet.kuleuven.ac.be!unknown AT p100pw220 DOT psy DOT kuleuven DOT ac DOT be
X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

New (sometimes other) problems after restarting the comp. Here's another
crash dump + x/i .

Page Fault at eip=000c11dd, error=0004
eax=bc040400 ebx=0045e0dc ecx=0061ade4 edx=bc1a1a4c esi=0061ade4
edi=2f010100
ebp=002667f8 esp=002667ec program=C:\SRC\DOTS2002\DOTREAD.EXE
cs: sel=00af  base=83dde000  limit=ffaf1fff
ds: sel=00b7  base=83dde000  limit=ffaf1fff
es: sel=00b7  base=83dde000  limit=ffaf1fff
fs: sel=00c7  base=00000000  limit=0010ffff
gs: sel=00c7  base=00000000  limit=0010ffff
ss: sel=00b7  base=83dde000  limit=ffaf1fff
App stack: [002677c4..001677c4]  Exceptn stack: [00167718..001657d8]

Call frame traceback EIPs:
  0x000c11dd free+245, file malloc.c
  0x0006d30e destroy_bitmap+370, file c:/djgpp/allegro/src/graphics.c,
line 1165
  0x0001a04e sequence_trial2(trial*)+3626, file
c:/src/dots2002/sequencetrial.cp
  0x0005f98a .debug_pubnames+42821, file c:/src/dots2002/exp.cpp, line 730
  0x00033809 .debug_info+613, file c:/src/dots2002/irpreter.cpp, line 1006
  0x00024d51 .debug_line+817, file c:/src/dots2002/irpreter.cpp, line 211
  0x00023d59 interprete(std::string)+391, file
c:/src/dots2002/irpreter.cpp, lin
  0x0002366a cl()+250, file c:/src/dots2002/irface.cpp, line 74
  0x0002323e irface(int)+62, file c:/src/dots2002/irface.cpp, line 22
  0x00068a3a main+4576, file c:/src/dots2002/dotread.cpp, line 157
  0x000bc758 __crt1_startup+176, file crt1.c

0X0001a04e -> 117         destroy_bitmap(fixpage);  fixpage=NULL;

x/i 0xc11dd <free+245>:     mov    0x16164c(%eax),%eax

Eli Zaretskii wrote:

> > Date: Wed, 16 Jul 2003 20:34:49 +0200
> > From: Peter Claessens <peter DOT claessens AT student DOT kuleuven DOT ac DOT be>
> >
> > 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
>
> ?

- Raw text -


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