Random freeze when using gl application
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mesa (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The following bug don't impact me directly because i'm a nvidia user. But i got lot of people complaining about a random freeze when using opengl application. I've been able to track down the bug. It's actually reported at :
https:/
Ubuntu ship Mesa 7.10.2, and it seem they got a bug when reading builtin.
1. in src/glsl/
2. 4 lines after, this unitialized context is used by _mesa_glsl_
3. in src/glsl/
4. few lines after, they are doing a loop, and generate a string of supported glsl version. Unfortunatly, the loop is too big to be finished, and the string became really really big... and it's freeze here. (strlen issue ? dunno.)
So here we are, to prevent that, i've tryed to initialize part of the structure used in _mesa_glsl_
--- src/glsl/
+++ src/glsl/
@@ -37,6 +37,8 @@
{
struct gl_context fakeCtx;
fakeCtx.API = API_OPENGL;
+ fakeCtx.
+ fakeCtx.
gl_shader *sh = _mesa_new_
struct _mesa_glsl_
new(sh) _mesa_glsl_
I'm not sure at all that this will be ok for everyone, but it's resolving the current freeze, by using initialized value...
Related branches
tags: | added: patch |
@Chris, this bug has a patch. Please review and include in your mesa merge if it looks suitable.
Also, if it does look good can you file an SRU and upload to natty-proposed?