linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* glibc detected - free(): invalid next size
@ 2006-02-18  4:59 James Colannino
  2006-02-18 10:14 ` Glynn Clements
  0 siblings, 1 reply; 2+ messages in thread
From: James Colannino @ 2006-02-18  4:59 UTC (permalink / raw)
  To: Linux C Programming List

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

-- 
My blog: http://www.crazydrclaw.com/
My homepage: http://james.colannino.org/



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: glibc detected - free(): invalid next size
  2006-02-18  4:59 glibc detected - free(): invalid next size James Colannino
@ 2006-02-18 10:14 ` Glynn Clements
  0 siblings, 0 replies; 2+ messages in thread
From: Glynn Clements @ 2006-02-18 10:14 UTC (permalink / raw)
  To: James Colannino; +Cc: Linux C Programming List


James Colannino wrote:

> 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.

> 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.

-- 
Glynn Clements <glynn@gclements.plus.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-02-18 10:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-18  4:59 glibc detected - free(): invalid next size James Colannino
2006-02-18 10:14 ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).