My application does offline renderings with Mesa under Mac OS X and Linux. The renderer is scripted with xml files. The current implementation use multiple contexts and create / destroy many mesa contexts during it's life. I saw that after OSMesaDestroyContext several times the memory becomes corrupted. This leads to instability in my application. I have started isolating the problem by removing all rendering code and just leaving the creation / destruction of contexts but the corruption stays. I do my stability tests with apple developer tools including libgmalloc.
I just ran valgrind on progs/osdemos/osdemo and progs/osdemos/ostest1 and it didn't find any issues. Could you either run your test with valgrind and post the results, or send me a test program?
Closing as works for me as it worked for Brian in 2008.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.