<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 - [bisected] Kodi crashes since commit 707d2e8b - gallium: fold u_trim_pipe_prim call from st/mesa to drivers"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=102502">102502</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[bisected] Kodi crashes since commit 707d2e8b - gallium: fold u_trim_pipe_prim call from st/mesa to drivers
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </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>Mesa core
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>alexandre.f.demers@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I noticed Kodi 17 crashing in the last few weeks. Kodi spits the following
backtrace when segfaulting:

Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/lib/kodi/kodi.bin'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fe6734f8670 in __memcpy_ssse3 () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0x7fe67aa4a540 (LWP 7020))]
[...]
Thread 1 (Thread 0x7fe67aa4a540 (LWP 7020)):
#0  0x00007fe6734f8670 in __memcpy_ssse3 () from /usr/lib/libc.so.6
#1  0x00007fe6374624fd in u_upload_data (upload=0x55d0709e65d0,
min_out_offset=0, size=4294967288, alignment=4, data=0x55d070d61130,
out_offset=0x55d070af4424, outbuf=0x55d070af4428) at
../../../.././src/gallium/auxiliary/util/u_upload_mgr.c:267
#2  0x00007fe637465444 in u_vbuf_upload_buffers (mgr=0x55d070af3c10,
start_vertex=0, num_vertices=0, start_instance=0, num_instances=1) at
../../../.././src/gallium/auxiliary/util/u_vbuf.c:990
#3  0x00007fe637465fcf in u_vbuf_draw_vbo (mgr=0x55d070af3c10,
info=0x7ffc5a42e7e0) at ../../../.././src/gallium/auxiliary/util/u_vbuf.c:1265
#4  0x00007fe6373aa746 in cso_draw_vbo (cso=0x55d070b27e70,
info=0x7ffc5a42e7e0) at
../../../.././src/gallium/auxiliary/cso_cache/cso_context.c:1730
#5  0x00007fe63717a503 in st_draw_vbo (ctx=0x55d070ac5d10,
prims=0x7ffc5a42e8c0, nr_prims=1, ib=0x0, index_bounds_valid=1 '\001',
min_index=0, max_index=4294967295, tfb_vertcount=0x0, stream=0, indirect=0x0)
at ../../.././src/mesa/state_tracker/st_draw.c:255
#6  0x00007fe63711d71a in vbo_draw_arrays (ctx=0x55d070ac5d10, mode=7, start=0,
count=0, numInstances=1, baseInstance=0, drawID=0) at
../../.././src/mesa/vbo/vbo_exec_array.c:486
#7  0x00007fe63711df1e in vbo_exec_DrawArrays (mode=7, start=0, count=0) at
../../.././src/mesa/vbo/vbo_exec_array.c:641
#8  0x000055d06dff63d9 in CGUIFontTTFGL::LastEnd() ()
#9  0x000055d06dfb6772 in CGUITextLayout::Render(float, float, float, unsigned
int, unsigned int, unsigned int, float, bool) ()
#10 0x000055d06df26367 in CGUIControl::DoRender() ()
#11 0x000055d06df3c8a0 in CGUIControlGroupList::Render() ()
#12 0x000055d06df26367 in CGUIControl::DoRender() ()
#13 0x000055d06df3c8a0 in CGUIControlGroupList::Render() ()
#14 0x000055d06df26367 in CGUIControl::DoRender() ()
#15 0x000055d06df38c2e in CGUIControlGroup::Render() ()
#16 0x000055d06df26367 in CGUIControl::DoRender() ()
#17 0x000055d06df38c2e in CGUIControlGroup::Render() ()
#18 0x000055d06df26367 in CGUIControl::DoRender() ()
#19 0x000055d06df38c2e in CGUIControlGroup::Render() ()
#20 0x000055d06df26367 in CGUIControl::DoRender() ()
#21 0x000055d06df38c2e in CGUIControlGroup::Render() ()
#22 0x000055d06df26367 in CGUIControl::DoRender() ()
#23 0x000055d06df38c2e in CGUIControlGroup::Render() ()
#24 0x000055d06df26367 in CGUIControl::DoRender() ()
#25 0x000055d06dfc4ddf in CGUIWindow::DoRender() ()
#26 0x000055d06dfce19c in CGUIWindowManager::RenderPass() const ()
#27 0x000055d06dfce565 in CGUIWindowManager::Render() ()
#28 0x000055d06e1940fe in CApplication::Render() ()
#29 0x000055d06e2632ab in CXBApplicationEx::Run(CFileItemList&) ()
#30 0x000055d06de9705a in XBMC_Run ()
#31 0x000055d06d9143ac in main ()
############# END STACK TRACE ###############


After investigation and bisection, I ended up with:
707d2e8b3e53c761720adaca7137b242dff344b6 is the first bad commit
commit 707d2e8b3e53c761720adaca7137b242dff344b6
Author: Marek Olšák <<a href="mailto:marek.olsak@amd.com">marek.olsak@amd.com</a>>
Date:   Sun Apr 9 15:57:45 2017 +0200

    gallium: fold u_trim_pipe_prim call from st/mesa to drivers

    Most drivers don't need it and shouldn't need it because it can't be used
    in some cases (indirect draws, primitive restart, count from streamout).

    Reviewed-by: Brian Paul <<a href="mailto:brianp@vmware.com">brianp@vmware.com</a>>

:040000 040000 91dbfe3f2d3d2d6c3a5169dd76d07a7f5812c2f5
c876ef71cf4d79da0e099ad4e695cf529118d498 M      src</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>