Bug 107767

Summary: Segfault with standalone compiler and --dump-builder
Product: Mesa Reporter: Sergii Romantsov <sergii.romantsov>
Component: glsl-compilerAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact: Intel 3D Bugs Mailing List <intel-3d-bugs>
Severity: normal    
Priority: medium    
Version: git   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: shader_big.frag - shader causes segfault

Description Sergii Romantsov 2018-08-31 09:46:40 UTC
Created attachment 141392 [details]
shader_big.frag - shader causes segfault

Usage of command
mesa/src/compiler/glsl_compiler --version 450 --dump-builder ./shader_big.frag
gives segfault with git-master 3e04c67950fe3edcabedc72516de63c5c20510e2
Comment 1 Sergii Romantsov 2018-08-31 09:52:52 UTC
Patch series: https://patchwork.freedesktop.org/series/48998/
Comment 2 Ian Romanick 2019-02-08 20:22:45 UTC
I'm not surprised.  The --dump-builder option of the stand-alone compiler was added to support generating int64 lowering functions from GLSL.  I had no expectation that anyone would use that option for anything else.

I would also not be surprised if there were a bunch of other things that didn't work.  Unless we have use cases, I don't know if there's a lot of value in fixing these issues.  I will also reply to your MR (https://gitlab.freedesktop.org/mesa/mesa/merge_requests/201/diffs).

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.