<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 - SIGSEGV glcpp/glcpp-parse.y:1077"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=91290">91290</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>SIGSEGV glcpp/glcpp-parse.y:1077
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Keywords</th>
          <td>have-backtrace
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Mesa core
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>vlee@freedesktop.org
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>mesa: f12302b89836a24255674a251f7a6902b4e9af7c (master 10.7.0-devel)

This minimum shader triggers a null pointer dereference in the GLSL compiler.

<frag>
#define A 1 /* comment */
#define A 1 /* comment */
</frag>

(gdb) bt
#0  _token_list_equal_ignoring_space (b=<optimized out>, a=<optimized out>) at
glcpp/glcpp-parse.y:1077
#1  _macro_equal (a=0x20863a0, b=0x2086080) at glcpp/glcpp-parse.y:2112
#2  0x0000000000498117 in _define_object_macro (parser=parser@entry=0x2082110,
loc=loc@entry=0x7ffe7e7b0414, identifier=0x2086150 "A", 
    replacements=0x2086240) at glcpp/glcpp-parse.y:2141
#3  0x000000000049b966 in glcpp_parser_parse (parser=parser@entry=0x2082110) at
glcpp/glcpp-parse.y:254
#4  0x00000000004637f2 in glcpp_preprocess (ralloc_ctx=0x2081790,
shader=0x7ffe7e7b14b0, info_log=0x20819b0, 
    extensions=<optimized out>, gl_ctx=<optimized out>) at glcpp/pp.c:226
#5  0x0000000000428ef4 in _mesa_glsl_compile_shader (ctx=0x7ffe7e7b1540,
shader=0x2080b70, dump_ast=<optimized out>, 
    dump_hir=<optimized out>) at glsl_parser_extras.cpp:1504
#6  0x0000000000406345 in compile_shader (ctx=0x7ffe7e7b1540, shader=0x2080b70)
at main.cpp:293
#7  0x000000000040437f in main (argc=2, argv=0x7ffe7e7d4528) at main.cpp:392
(gdb) frame 0
#0  _token_list_equal_ignoring_space (b=<optimized out>, a=<optimized out>) at
glcpp/glcpp-parse.y:1077
1077                while (node_a->token->type == SPACE)
(gdb) print node_a
$2 = (token_node_t *) 0x0</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>