<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - "#version 0" crashes glsl_compiler"
href="https://bugs.freedesktop.org/show_bug.cgi?id=97420">97420</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>"#version 0" crashes glsl_compiler
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>glsl-compiler
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>karolherbst@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>intel-3d-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=125920" name="attach_125920" title="vertex shader">attachment 125920</a> <a href="attachment.cgi?id=125920&action=edit" title="vertex shader">[details]</a></span>
vertex shader
mesa-git-a2ae67aa47df6dd41802462105dac7ce5ab676a2
attached vertex shader crashes glsl_compiler with SIGSEGV
backtrace:
#0 glcpp_error (locp=locp@entry=0x0, parser=parser@entry=0x9b8290,
fmt=fmt@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@entry=0x9b8290, name=name@entry=0x7439b2
"__VERSION__", value=value@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@entry=0x9b7610, shader=shader@entry=0x7fffffffd3a8,
info_log=info_log@entry=0x9b78b8,
extensions=extensions@entry=0x44de40
<add_builtin_defines(_mesa_glsl_parse_state*, void (*)(glcpp_parser*, char
const*, int), glcpp_parser*, unsigned int, bool)>, state=state@entry=0x9b7610,
gl_ctx=gl_ctx@entry=0x979aa0 <standalone_compile_shader::local_ctx>) at
../../../src/compiler/glsl/glcpp/pp.c:233
#6 0x000000000045b9d0 in _mesa_glsl_compile_shader (ctx=ctx@entry=0x979aa0
<standalone_compile_shader::local_ctx>, shader=shader@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@entry=0x979a50 <options>,
num_files=num_files@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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>