delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/01/31/00:15:44

From: Charles Sandmann <sandmann AT new-orleans DOT NeoSoft DOT com>
Subject: Re: malloc bug?
To: enrico AT max DOT tiac DOT net (Cuthalion / Sliced Bread)
Date: Mon, 30 Jan 1995 20:56:42 -0600 (CST)
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

> 	I don't see how this could be a "that's my fault" crash, but I've 
> enough faith in DJGPP to think that there is some way I am missing.  Can 
> anyone tell me what I may be doing wrong to get this sort of crash?  If 
> not, is something wrong with DJGPP's malloc()?

These sorts of crashes are almost always caused by overwriting a memory
block you allocated.  It messes up the control data structures which
may not be noticed until a malloc many, many statements later which
happens to be in the same memory block size.  I would suggest a debug
malloc library, but I can't find mine right now :-(

- Raw text -


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