Bug 23380

Summary: glxChooseVisual: visualList might have not been initialized (crash)
Product: Mesa Reporter: Stefano Maioli <smaioli>
Component: GLXAssignee: mesa-dev
Status: RESOLVED MOVED QA Contact:
Severity: critical    
Priority: high    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: fix
Stack trace
Possible fix

Description Stefano Maioli 2009-08-17 13:58:42 UTC
Created attachment 28715 [details] [review]
fix

Bug introduced on 2009-05-12 07:34:13 by commit 	46b81b0cc883df0ef7d998be36ae6cbf80257cd2 .
Comment 1 Stefano Maioli 2009-08-17 13:59:30 UTC
Created attachment 28716 [details]
Stack trace
Comment 2 Stefano Maioli 2009-08-17 16:18:03 UTC
Update:
I've posted the patch in a hurry, and it doesn't appear to solve the problem. Sorry.

After some more careful debugging it seems that the crash happens the second time it loops, when visualList already holds a (valid?) pointer returned by XGetVisualInfo.

I'm available to provide more details if needed.
Comment 3 Michel Dänzer 2009-08-22 17:52:45 UTC
Created attachment 28856 [details] [review]
Possible fix

Does this patch fix the problem?
Comment 4 GitLab Migration User 2019-09-18 17:11:18 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/56.

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.