https://bugs.freedesktop.org/show_bug.cgi?id=40423
--- Comment #19 from Michel Dänzer michel@daenzer.net 2011-09-29 04:07:25 PDT --- (In reply to comment #17)
Looking at the Valgrind error from comment 15, it suggests that _mesa_make_extension_string (extensions.c:912) makes the assumption that it's safe to read 4 bytes from a string and that assumption fails as the string is empty with just 1 byte allocated (and set to 0) by calloc.
Indeed, looks like a bug in gcc/glibc. Note that current Mesa Git works around this by rounding up the allocation sizes to multiples of four bytes.