From: Hans-Bernhard Broeker 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: 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 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.