www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/01/27/12:15:14

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: malloc/free crash
Date: 27 Jan 2003 17:03:16 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 13
Message-ID: <b13ook$e33$1@nets3.rz.RWTH-Aachen.DE>
References: <3E3560E0 DOT 3070200 AT tutopia DOT com>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1043686996 14435 137.226.32.75 (27 Jan 2003 17:03:16 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 27 Jan 2003 17:03:16 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

fru <elfrucool AT tutopia DOT com> wrote:
> I have runtime problems with malloc and free functions, simple:
> when I use malloc/free several times, there is a moment when my
> program crashes and display a message: page segmentation fault at .....

This almost certainly means you did something wrong with the pointers
returned by one or more of your malloc() calls.  See the DJGPP FAQ,
issue #9.2: Programs that crash in `malloc' or `free'.

I definitely recommend YAMD for findin this kind of bug.  Give it a try.
-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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