[comp.unix.questions] free

kwang@sp1.csrd.uiuc.edu (Kwang-Keun Yi) (01/22/91)

Hi, I think I need a help from you all genius unix hacker on my problem.
I got the following error message from malloc_debug() saying:

	"insert: bad block size (-120) at 0x0"

I tracked down the error is caused inside free().
In my program, I use a lot memory management library routines:
malloc(), calloc(), and free().  The problem is NOT because free() tries to
free non (m|c)allocated memory block. Free() definitely tries to free
a block allocated by calloc() before.
Do you have any insight or similar experience before?

I'll be much appreciative for your any helps. Thank you!
--

Kwangkeun Yi		Center for Supercomputing R & D 
kwang@csrd.uiuc.edu	Univ. of Illinois, 305 Talbot Lab
			104 S.Wright St, Urbana, IL61801
			U.S.A.
UUCP: {uunet,convex}!uiucuxc!csrd!kwang