Bug 16854

Summary: GLSL function call at global scope causes SEGV
Product: Mesa Reporter: Ian Romanick <idr>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 29044    
Attachments: Offending shader code

Description Ian Romanick 2008-07-25 16:35:06 UTC
Created attachment 17900 [details]
Offending shader code

The attached vertex shader causes the GLSL compiler to segfault.  Simply copy the shader to progs/demos/vstest.txt and run progs/demos/vstest.  The problem seems to be that 'mat2 foo = bar();' is at global scope (i.e., not inside a function).  I think this is valid GLSL, but, even if it isn't, it shouldn't cause the compiler to segfault.
Comment 1 Brian Paul 2008-07-29 17:06:13 UTC
segfault fixed in git/master.  Though, the initialization of the global probably isn't done correctly yet.

Comment 2 Adam Jackson 2009-08-24 12:30:44 UTC
Mass version move, cvs -> git
Comment 3 Eric Anholt 2010-08-17 08:54:52 UTC
Other than the implicit conversion, glsl2 is fine with this.

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.