Mail Archives: djgpp/2000/04/18/18:08:13
On Tue, 18 Apr 2000, DAANEN Vincent wrote:
> Hi
> recently, I downloaded gcc 2.95.2 for djgpp. Some programs those
> worked fine when compiled with gcc -2.7.. or gcc 2.8..
> do not work now. They break in malloc functions
> Is there a bug in malloc of gcc 2.95.2 ?
> Is there a patch ?
This almost certainly is due to your programe overwriting buffers
allocated with malloc or call free more than once with the same pointer.
This is because of the malloc version in DJGPP v2.02 doesn't waste memory.
BTW there is a tool called YAMD available from
<http://www3.hmc.edu/~neldredge/yamd/> which helps to catch just such
bugs.
Please read the FAQ section 9.2 for more information.
Grendel.
Hi, I'm a signature virus. plz set me as your signature and help me spread
:)
- Raw text -