Bug 29351

Summary: Segfaults in glCompileShader since 566430 with clang
Product: Mesa Reporter: Cedric Vivier <cedricv>
Component: OtherAssignee: Cedric Vivier <cedricv>
Status: RESOLVED NOTOURBUG QA Contact:
Severity: critical    
Priority: medium    
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Cedric Vivier 2010-08-01 22:12:00 UTC
glCompileShader segfaults and/or fails to compile valid shaders with errors like "gl_Position not written in vertex shader".

Bisected first bad commit is 566430, which seems to be the first part of a two-part commit to fix #29305.
Comment 1 Brian Paul 2010-08-02 07:31:56 UTC
Please try a clean rebuild.
Comment 2 Cedric Vivier 2010-08-02 07:54:26 UTC
(In reply to comment #1)
> Please try a clean rebuild.

I discussed with Vinson who suggested the same, this made me realize that I was building with clang... as I've been experimenting with it for quite some time without problems I forgot Mesa was built with it on my experimental setup.

So the issue is probably triggered by a Clang bug, or perhaps but very unlikely a gcc bug.

Should I close the bug now as Clang is not supposed to be supported (I think?) or keep it open while I've not yet investigated the real underlying issue ?
Comment 3 Vinson Lee 2010-08-02 11:07:56 UTC
Cedric,

I'll reassign this bug to you. If you choose to continue investigating and if it turns out that there's something for Mesa, reassign it back to mesa-dev. Otherwise, feel free to close this issue.
Comment 4 Cedric Vivier 2010-08-03 20:16:56 UTC
Problem is gone with clang-devel (as of rev. 110034).

Closing the bug.

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.