Re: *** glibc detected *** munmap_chunk(): invalid pointer: 0xb7f1a470 ***
It's interesting to come across this thread.
I've been having a similar problem with an application I've been developing. I haven't submitted a bug report because I haven't been able to trim it down to a usefully small example, and I couldn't be sure that it wasn't my own bug!
For what it's worth the problem seemed to be triggered by a call to glBindFramebuffer().