<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - SIGBUS, Bus error during command buffer recording"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105509#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - SIGBUS, Bus error during command buffer recording"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105509">bug 105509</a>
from <span class="vcard"><a class="email" href="mailto:ytriffy@gmail.com" title="Vyacheslav <ytriffy@gmail.com>"> <span class="fn">Vyacheslav</span></a>
</span></b>
<pre>I recompiled mesa with --enable-debug and now I get assert failed which is more
useful.
0 in raise of /usr/lib/libc.so.6
1 in abort of /usr/lib/libc.so.6
2 in __assert_fail_base of /usr/lib/libc.so.6
3 in __assert_fail of /usr/lib/libc.so.6
4 in anv_block_pool_expand_range of vulkan/anv_allocator.c:327
5 in anv_block_pool_grow of vulkan/anv_allocator.c:521
6 in anv_block_pool_alloc_new of vulkan/anv_allocator.c:564
7 in anv_block_pool_alloc of vulkan/anv_allocator.c:582
8 in anv_fixed_size_state_pool_alloc_new of vulkan/anv_allocator.c:655
9 in anv_state_pool_alloc_no_vg of vulkan/anv_allocator.c:772
10 in anv_state_stream_alloc of vulkan/anv_allocator.c:909
11 in anv_cmd_buffer_alloc_dynamic_state of vulkan/anv_batch_chain.c:654
12 in anv_cmd_buffer_push_constants of vulkan/anv_cmd_buffer.c:729
13 in cmd_buffer_flush_push_constants of vulkan/genX_cmd_buffer.c:2420
14 in gen9_cmd_buffer_flush_state of vulkan/genX_cmd_buffer.c:2571
15 in gen9_CmdDrawIndexed of vulkan/genX_cmd_buffer.c:2709
This assert fails:
assert(size - center_bo_offset <=
BLOCK_POOL_MEMFD_SIZE - BLOCK_POOL_MEMFD_CENTER);
Because size=1073741824 is more than 1GB and block pools are restricted by 1GB:
/* Block pools are backed by a fixed-size 1GB memfd */
#define BLOCK_POOL_MEMFD_SIZE (1ul << 30)
Still don't know how to fix it. Is it valid behavior? Why it's not handled by
validation layers? Should I use a new command pool for next portion of objects?</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>