www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/20/19:47:09

Sender: nate AT cartsys DOT com
Message-ID: <37BDCEBA.194CF551@cartsys.com>
Date: Fri, 20 Aug 1999 14:55:06 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.12pre4 i586)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: free(void *) is driving me nuts!!!
References: <379E3222 DOT CA7C7283 AT go DOT ro>
Reply-To: djgpp AT delorie DOT com

Radu Georgescu aka skoola wrote:
> 
> is there any known problem with free()??
> my programm crashes sometimes and there is no crash if i'm removeing the
> free calls.
> i'm using some v2 distribution and pgcc.

Most likely, this is your bug.  Things like writing an array out of
bounds corrupt some of malloc's internal data, which can make it crash.

For debugging this, you might consider my package YAMD
(http://www.cartsys.com/eldredge/n/yamd/), or another similar tool. 
Note that YAMD should be used with DJGPP v2.02.
-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


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