On Fri, Apr 05, 2002 at 09:08:30AM -0800, Keith Mervine wrote: > When you get the following bug... > > [*****] BUG: Attempt to recycle invalid memory of size 19. > [*****] BUG: venus.cs.teiher.gr > > What exactly is this telling me and how can I stop this from happening?
That you're trying to free a block of 19 bytes containing 'venus.cs.teiher.gr'... except something stomped on that memory so it won't be freed. When you request memory with alloc_mem() or str_dup(), a magic token is placed in the block. When you free it, free_mem() looks for that magic token and complains if it is not there. In short, you have an overflow, where the item -before- this one asked for memory (say 100 bytes), and then used more than it asked for, stomping on the magic token.

