<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 --- - u_inlines.h:277:pipe_buffer_map_range: Assertion `length' failed."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=75660">75660</a>
          </td>
        </tr>

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

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

        <tr>
          <th>Summary</th>
          <td>u_inlines.h:277:pipe_buffer_map_range: Assertion `length' failed.
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>critical
          </td>
        </tr>

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

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

        <tr>
          <th>Reporter</th>
          <td>vlee@freedesktop.org
          </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>unspecified
          </td>
        </tr>

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

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>mesa: fc25956badb8e1932cc19d8c97b4be16e92dfc65 (master 10.2.0-devel)

piglit arb_clear_buffer_object-zero-size triggers an assert with softpipe and
llvmpipe.


$ ./bin/arb_clear_buffer_object-zero-size -auto
../../src/gallium/auxiliary/util/u_inlines.h:277:pipe_buffer_map_range:
Assertion `length' failed.
Trace/breakpoint trap (core dumped)

(gdb) bt
#0  0x00007f09421b2a1b in _debug_assert_fail (expr=0x7f09422eca62 "length", 
    file=0x7f09422ec9c0 "../../src/gallium/auxiliary/util/u_inlines.h",
line=277, 
    function=0x7f09422eccc0 <__func__.32774> "pipe_buffer_map_range") at
util/u_debug.c:278
#1  0x00007f0941ffefdb in pipe_buffer_map_range (pipe=0xb4fd10,
buffer=0xc7b9a0, offset=0, length=0, 
    access=258, transfer=0xb4f8b8) at
../../src/gallium/auxiliary/util/u_inlines.h:277
#2  0x00007f0941fffaff in st_bufferobj_map_range (ctx=0x7f09472ab010, offset=0,
length=0, access=6, 
    obj=0xb4f810, index=MAP_INTERNAL) at
state_tracker/st_cb_bufferobjects.c:359
#3  0x00007f0941e6968d in _mesa_buffer_clear_subdata (ctx=0x7f09472ab010,
offset=0, size=0, 
    clearValue=0x7fff8da95d80, clearValueSize=4, bufObj=0xb4f810) at
main/bufferobj.c:679
#4  0x00007f0941e6b27e in _mesa_ClearBufferSubData (target=34962,
internalformat=32856, offset=0, size=0, 
    format=6408, type=5121, data=0x401441) at main/bufferobj.c:1522
#5  0x00007f0946dc56f1 in stub_glClearBufferSubData (target=34962,
internalformat=32856, offset=0, size=0, 
    format=6408, type=5121, data=0x401441) at
piglit/tests/util/generated_dispatch.c:2020
#6  0x0000000000400fc7 in piglit_init (argc=1, argv=0x7fff8da95fe8)
    at piglit/tests/spec/arb_clear_buffer_object/zero-size.c:73
#7  0x00007f0946dc0a1a in run_test (gl_fw=0x7f09470af360 <glut_fw>, argc=1,
argv=0x7fff8da95fe8)
    at piglit/tests/util/piglit-framework-gl/piglit_glut_framework.c:140
#8  0x00007f0946dbe7e9 in piglit_gl_test_run (argc=1, argv=0x7fff8da95fe8,
config=0x7fff8da95eb0)
    at piglit/tests/util/piglit-framework-gl.c:191
#9  0x0000000000400f00 in main (argc=1, argv=0x7fff8da95fe8)
    at piglit/tests/spec/arb_clear_buffer_object/zero-size.c:38
(gdb) frame 1
#1  0x00007f0941ffefdb in pipe_buffer_map_range (pipe=0xb4fd10,
buffer=0xc7b9a0, offset=0, length=0, 
    access=258, transfer=0xb4f8b8) at
../../src/gallium/auxiliary/util/u_inlines.h:277
277       assert(length);
(gdb) print length
$1 = 0</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>