delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/01/31/04:40:36

Date: Tue, 31 Jan 1995 15:27:06 +0900
From: Stephen Turnbull <turnbull AT shako DOT sk DOT tsukuba DOT ac DOT jp>
To: sandmann AT new-orleans DOT NeoSoft DOT com
Cc: enrico AT max DOT tiac DOT net, djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: malloc bug?

   From: Charles Sandmann <sandmann AT new-orleans DOT NeoSoft DOT com>

   > 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 :-(

Isn't there one in the LGPL parts of DJGPP?  I know there's been
traffic about it in the past, try Eli's FAQ.  If it's not there, try
the archives search on my server.  I don't have time today or tomorrow.

-- 
Stephen Turnbull  /  Yaseppochi-gumi  <turnbull AT shako DOT sk DOT tsukuba DOT ac DOT jp>
http://turnbull.sk.tsukuba.ac.jp/   anon FTP: turnbull.sk.tsukuba.ac.jp
Check out Kansai-WWW, too ---------> http://pclsp2.kuicr.kyoto-u.ac.jp/

- Raw text -


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