Skip to contentSkip to conversation

glibc detected - free(): invalid next size

DISCUSSION James Colannino 2 participants 2 messages Feb 18, 2006

lore
Share & tools
lore
#0 lore raw

Hey everyone. I have a quick question. What does the following runtime error mean?

*** glibc detected *** free(): invalid next size (fast): 0x0804a1c0 ***

Does this mean that the program attempted to free memory from a pointer that wasn't allocated any memory? I have a feeling that is what this means, but the message itself is cryptic.

On a related note, does anyone know of a good source that describes runtime errors such as this in detail? It would help me greatly in my debugging experience. Thanks :)

James

Signature · 2 lines
My blog: http://www.crazydrclaw.com/
My homepage: http://james.colannino.org/
#1 lore raw
Quoted 8 lines · James Colannino

Hey everyone. I have a quick question. What does the following runtime error mean?

*** glibc detected *** free(): invalid next size (fast): 0x0804a1c0 ***

Does this mean that the program attempted to free memory from a pointer
that wasn't allocated any memory? I have a feeling that is what this
means, but the message itself is cryptic.

Either the pointer passed to free() was bogus (not returned from malloc(), calloc() etc), or the heap is corrupt.

Quoted 3 lines

On a related note, does anyone know of a good source that describes runtime errors such as this in detail? It would help me greatly in my debugging experience. Thanks :)

I don't know of any documentation for allocator warnings other than the glibc source code itself.

Signature · 1 line
Glynn Clements <[email protected]>