<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - glDrawElements segfault when compiled into display list"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=60518">60518</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>glDrawElements segfault when compiled into display list
          </td>
        </tr>

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

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>core13@gmx.net
          </td>
        </tr>

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

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

        <tr>
          <th>Version</th>
          <td>9.0
          </td>
        </tr>

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

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>VDrift git on a Fedora 18 box (Linux 3.7.6-201.fc18.x86_64, 2.1 Mesa 9.0.1)
will segfault in the GL2/1 fallback path:

Program received signal SIGSEGV, Segmentation fault.
0x00007fffed92461b in _save_VertexAttrib4fvARB (index=<optimized out>, v=0x0)
at ../../../src/mesa/vbo/vbo_attrib_tmp.h:547
547          ATTR4FV(VBO_ATTRIB_GENERIC0 + index, v);
(gdb) bt
#0  0x00007fffed92461b in _save_VertexAttrib4fvARB (index=<optimized out>,
v=0x0)
    at ../../../src/mesa/vbo/vbo_attrib_tmp.h:547
#1  0x00007fffed828a1a in _ae_ArrayElement (elt=0) at
../../../src/mesa/main/api_arrayelt.c:1670
#2  0x00007fffed9197bd in _save_OBE_DrawElements (mode=4, count=<optimized
out>, type=<optimized out>, 
    indices=<optimized out>) at ../../../src/mesa/vbo/vbo_save_api.c:1252
#3  0x000000000058bfb9 in MODEL::GenerateListID (this=0x9e7080,
error_output=...) at src/graphics/model.cpp:185
#4  0x000000000058b8b3 in MODEL::Load (this=0x9e7080, varray=...,
error_output=..., genlist=true)
    at src/graphics/model.cpp:85


The code looks like this (with vertex, texcoord, normal pointers set):

glNewList(listid, GL_COMPILE);
glDrawElements(GL_TRIANGLES, facecount, GL_UNSIGNED_INT, faces);
glEndList();


Apitrace attached.</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>