Compiling on SuSE 10+ (glibc detected invalid pointer during free)

Posted on May 15, 2007 by ZDima.
Categories: C & C++.

I was trying compile code on SuSE 10.1 and get following error:

*** glibc detected *** free(): invalid pointer: 0×081c80f0 ***

The solution to move forward is to disable a new feature of GLIBC to verify pointers before free the memory. There is an environment variable MALLOC_CHECK_ that has following recognizable values:

0 — Do not generate an error message, and do not kill the program
1 — Generate an error message, but do not kill the program
2 — Do not generate an error message, but kill the program
3 — Generate an error message and kill the program

[Source]

no comments yet.

Leave a comment

Names and email addresses are required (email addresses aren't displayed), url's are optional.

Comments may contain the following xhtml tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>