Thursday, October 14, 2010

Easy way to get glibc's "free(): invalid pointer" message

I agonized over this error for a while, because there was no obvious problem:

*** glibc detected *** ./test: free(): invalid pointer: 0x0921964c ***
... [memory dump]