[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] __free: assertion s == q failed



m0n0 wrote:


Anyway, how would you try to find the caller?

You might have a look in the AHCC sources (see signature).
common/ahcm.c
You must replace every malloc with a call that accepts
a unique identifier (xmalloc() or XA_alloc()).
This identifier can be used in debug messages.
Also very usefull for identifying leaked memory.

Docu: http://members.chello.nl/h.robbers/ahcm.txt
(The source there are outdated, but should work)

--
Groeten; Regards.
Henk Robbers. http://members.chello.nl/h.robbers
Interactive disassembler: TT-Digger;  http://digger.atari.org
A Home Cooked C compiler:      AHCC;  http://ahcc.atari.org