Bug 18730

Summary: Memory corruption with OSMesaDestroyContext
Product: Mesa Reporter: FraKtus <fraktus>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: medium    
Version: 7.1   
Hardware: Other   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:

Description FraKtus 2008-11-27 06:47:13 UTC
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.
Comment 1 Brian Paul 2008-11-27 06:52:24 UTC
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?
Comment 2 Timothy Arceri 2018-05-02 03:33:46 UTC
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.