<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 --- - Crash on Intel Sandybridge Mobile with Vertex Buffer Objects and select mode OpenGL rendering"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=61149">61149</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>Crash on Intel Sandybridge Mobile with Vertex Buffer Objects and select mode OpenGL rendering
          </td>
        </tr>

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

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

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

        <tr>
          <th>Reporter</th>
          <td>kalast@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </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>Hi, this is an old bug we are encountering in blender.

My system is Ubuntu 12.10, Intel® Core™ i5-2410M CPU @ 2.30GHz × 4, 4GB ram,
Hybrid NVIDIA GT 540M - Intel(R) Sandybridge Mobile

To reproduce, 

* start blender
* enable VBO in user preferences (Ctrl-Alt-U) under the system tab.
* try selecting any object on 3D viewport (right clicking on the default Cube
for instance)

My guess is that it has to do with select mode rendering and vertex buffer
object combination. I would do a trunk compile but I am using optimus on my
system and I fear I may destabilize something. If it is safe and would help, I
could attempt it.

The backtrace is:

#0  0x00007fffe26e4a3f in run_vp (ctx=<optimized out>, stage=<optimized out>)
    at ../../../../../src/mesa/tnl/t_vb_program.c:389
#1  0x00007fffe26e192d in _tnl_run_pipeline (ctx=0x57078e0)
    at ../../../../../src/mesa/tnl/t_pipeline.c:163
#2  0x00007fffe26e1f26 in _tnl_draw_prims (ctx=ctx@entry=0x57078e0, 
    arrays=arrays@entry=0x7ffffffd5760, prim=prim@entry=0x7ffffffd63e0, 
    nr_prims=nr_prims@entry=1, ib=ib@entry=0x7ffffffd5740, 
    min_index=<optimized out>, max_index=0)
    at ../../../../../src/mesa/tnl/t_draw.c:524
#3  0x00007fffe26e2a8f in _tnl_vbo_draw_prims (ctx=ctx@entry=0x57078e0, 
    prim=prim@entry=0x7ffffffd63e0, nr_prims=nr_prims@entry=1, 
    ib=ib@entry=0x7ffffffd5740, 
    index_bounds_valid=index_bounds_valid@entry=1 '\001', 
    min_index=min_index@entry=0, max_index=0, 
    tfb_vertcount=tfb_vertcount@entry=0x0)
    at ../../../../../src/mesa/tnl/t_draw.c:424
#4  0x00007fffe26d3301 in vbo_rebase_prims (ctx=ctx@entry=0x57078e0, 
    arrays=arrays@entry=0x58572f8, prim=prim@entry=0x7ffffffd63e0, 
    nr_prims=nr_prims@entry=1, ib=0x7ffffffd5740, ib@entry=0x7ffffffd63c0, 
    min_index=min_index@entry=4294967295, 
    max_index=max_index@entry=4294967295, 
    draw=draw@entry=0x7fffe26e2a20 <_tnl_vbo_draw_prims>)
    at ../../../../../src/mesa/vbo/vbo_rebase.c:233
---Type <return> to continue, or q <return> to quit---
#5  0x00007fffe26e1b09 in _tnl_draw_prims (ctx=ctx@entry=0x57078e0, 
    arrays=arrays@entry=0x58572f8, prim=prim@entry=0x7ffffffd63e0, 
    nr_prims=nr_prims@entry=1, ib=ib@entry=0x7ffffffd63c0, 
    min_index=4294967295, max_index=4294967295)
    at ../../../../../src/mesa/tnl/t_draw.c:467
#6  0x00007fffe2b70ac3 in brw_draw_prims (ctx=0x57078e0, prim=0x7ffffffd63e0, 
    nr_prims=1, ib=0x7ffffffd63c0, index_bounds_valid=<optimized out>, 
    min_index=4294967295, max_index=4294967295, tfb_vertcount=0x0)
    at brw_draw.c:581
#7  0x00007fffe26cf3aa in vbo_handle_primitive_restart (
    ctx=ctx@entry=0x57078e0, prim=prim@entry=0x7ffffffd63e0, 
    nr_prims=nr_prims@entry=1, ib=ib@entry=0x7ffffffd63c0, 
    index_bounds_valid=index_bounds_valid@entry=0 '\000', 
    min_index=min_index@entry=4294967295, max_index=max_index@entry=4294967295)
    at ../../../../../src/mesa/vbo/vbo_exec_array.c:570
#8  0x00007fffe26d0384 in vbo_validated_drawrangeelements (
    ctx=ctx@entry=0x57078e0, mode=mode@entry=1, 
    index_bounds_valid=index_bounds_valid@entry=0 '\000', 
    start=start@entry=4294967295, end=end@entry=4294967295, 
    count=count@entry=24, type=type@entry=5125, indices=indices@entry=0x0, 
    basevertex=basevertex@entry=0, numInstances=numInstances@entry=1, 
    baseInstance=baseInstance@entry=0)
    at ../../../../../src/mesa/vbo/vbo_exec_array.c:867
---Type <return> to continue, or q <return> to quit---
#9  0x00007fffe26d06f4 in vbo_exec_DrawElements (mode=1, count=24, type=5125, 
    indices=0x0) at ../../../../../src/mesa/vbo/vbo_exec_array.c:997
#10 0x00000000010ed899 in cdDM_drawEdges ()
#11 0x0000000000d24cf1 in draw_mesh_object_outline.isra.5 ()
#12 0x0000000000d2e18e in draw_mesh_object ()
#13 0x0000000000d31d4e in draw_object ()
#14 0x0000000000d21e80 in view3d_opengl_select ()
#15 0x0000000000d1720c in mixed_bones_object_selectbuffer ()
#16 0x0000000000d1a180 in mouse_select ()
#17 0x0000000000d1aa48 in view3d_select_invoke ()
#18 0x0000000000c65c52 in wm_operator_invoke ()
#19 0x0000000000c66cae in wm_handler_operator_call ()
#20 0x0000000000c66f6d in wm_handlers_do_intern ()
#21 0x0000000000c676b6 in wm_handlers_do ()
#22 0x0000000000c67b4b in wm_event_do_handlers ()
#23 0x0000000000c60c88 in WM_main ()
#24 0x0000000000c23d65 in main ()</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>