[Mesa-dev] [Bug 97420] "#version 0" crashes glsl_compiler
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sat Aug 20 16:25:37 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=97420
Bug ID: 97420
Summary: "#version 0" crashes glsl_compiler
Product: Mesa
Version: git
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: glsl-compiler
Assignee: mesa-dev at lists.freedesktop.org
Reporter: karolherbst at gmail.com
QA Contact: intel-3d-bugs at lists.freedesktop.org
Created attachment 125920
--> https://bugs.freedesktop.org/attachment.cgi?id=125920&action=edit
vertex shader
mesa-git-a2ae67aa47df6dd41802462105dac7ce5ab676a2
attached vertex shader crashes glsl_compiler with SIGSEGV
backtrace:
#0 glcpp_error (locp=locp at entry=0x0, parser=parser at entry=0x9b8290,
fmt=fmt at entry=0x743998 "Redefinition of macro %s\n") at
../../../src/compiler/glsl/glcpp/pp.c:35
#1 0x000000000064ffda in _define_object_macro (replacements=0x9b89c0,
identifier=0x7439b2 "__VERSION__", loc=0x0, parser=0x9b8290) at
../../../src/compiler/glsl/glcpp/glcpp-parse.y:2104
#2 add_builtin_define (parser=parser at entry=0x9b8290, name=name at entry=0x7439b2
"__VERSION__", value=value at entry=110) at
../../../src/compiler/glsl/glcpp/glcpp-parse.y:1334
#3 0x000000000065599e in _glcpp_parser_handle_version_declaration
(explicitly_set=false, es_identifier=0x0, version=110, parser=0x9b8290) at
../../../src/compiler/glsl/glcpp/glcpp-parse.y:2312
#4 glcpp_parser_resolve_implicit_version (parser=0x9b8290) at
../../../src/compiler/glsl/glcpp/glcpp-parse.y:2356
#5 0x00000000005e6a8c in glcpp_preprocess
(ralloc_ctx=ralloc_ctx at entry=0x9b7610, shader=shader at entry=0x7fffffffd3a8,
info_log=info_log at entry=0x9b78b8,
extensions=extensions at entry=0x44de40
<add_builtin_defines(_mesa_glsl_parse_state*, void (*)(glcpp_parser*, char
const*, int), glcpp_parser*, unsigned int, bool)>, state=state at entry=0x9b7610,
gl_ctx=gl_ctx at entry=0x979aa0 <standalone_compile_shader::local_ctx>) at
../../../src/compiler/glsl/glcpp/pp.c:233
#6 0x000000000045b9d0 in _mesa_glsl_compile_shader (ctx=ctx at entry=0x979aa0
<standalone_compile_shader::local_ctx>, shader=shader at entry=0x9b6910,
dump_ast=<optimized out>, dump_hir=<optimized out>)
at ../../../src/compiler/glsl/glsl_parser_extras.cpp:1846
#7 0x000000000040e170 in compile_shader (shader=0x9b6910, ctx=0x979aa0
<standalone_compile_shader::local_ctx>) at
../../../src/compiler/glsl/standalone.cpp:282
#8 standalone_compile_shader (_options=_options at entry=0x979a50 <options>,
num_files=num_files at entry=1, files=<optimized out>) at
../../../src/compiler/glsl/standalone.cpp:386
#9 0x0000000000409045 in main (argc=<optimized out>, argv=0x7fffffffd598) at
../../../src/compiler/glsl/main.cpp:91
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160820/e202a8d0/attachment.html>
More information about the mesa-dev
mailing list