<div dir="ltr">Hello,<div>here is a backtrace:</div><div><br></div><div><div>Core was generated by `glretrace ./DyingLightGame.trace'.</div><div>Program terminated with signal SIGABRT, Aborted.</div><div>#0 0x00007f2852895428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54</div><div>54<span style="white-space:pre"> </span>../sysdeps/unix/sysv/linux/raise.c: No such file or directory.</div><div>[Current thread is 1 (Thread 0x7f2854cb48c0 (LWP 15940))]</div><div>(gdb) bt</div><div>#0 0x00007f2852895428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54</div><div>#1 0x00007f285289702a in __GI_abort () at abort.c:89</div><div>#2 0x00007f285288dbd7 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x7f284f4fb62f "size % 4096 == 0", file=file@entry=0x7f284f4fb58f "brw_bufmgr.c", line=line@entry=405, </div><div> function=function@entry=0x7f284f4fbc30 <__PRETTY_FUNCTION__.43658> "vma_alloc") at assert.c:92</div><div>#3 0x00007f285288dc82 in __GI___assert_fail (assertion=0x7f284f4fb62f "size % 4096 == 0", file=0x7f284f4fb58f "brw_bufmgr.c", line=405, function=0x7f284f4fbc30 <__PRETTY_FUNCTION__.43658> "vma_alloc")</div><div> at assert.c:101</div><div>#4 0x00007f284ef43777 in vma_alloc (bufmgr=0x1414840, memzone=BRW_MEMZONE_OTHER, size=255726400, alignment=4096) at brw_bufmgr.c:405</div><div>#5 0x00007f284ef43ef7 in bo_alloc_internal (bufmgr=0x1414840, name=0x7f284f506370 "bufferobj", size=255726400, memzone=BRW_MEMZONE_OTHER, flags=0, tiling_mode=0, stride=0) at brw_bufmgr.c:652</div><div>#6 0x00007f284ef43ff7 in brw_bo_alloc (bufmgr=0x1414840, name=0x7f284f506370 "bufferobj", size=255726400, memzone=BRW_MEMZONE_OTHER) at brw_bufmgr.c:677</div><div>#7 0x00007f284ef88465 in alloc_buffer_object (brw=0x1598d80, intel_obj=0x1f9c68d0) at intel_buffer_objects.c:100</div><div>#8 0x00007f284ef88759 in brw_buffer_data (ctx=0x1598d80, target=34962, size=255726400, data=0x7f282f1b1010, usage=35044, storageFlags=259, obj=0x1f9c68d0) at intel_buffer_objects.c:210</div><div>#9 0x00007f284e9f33d7 in buffer_data (no_error=false, func=0x7f284f41a17c "glBufferData", usage=35044, data=0x7f282f1b1010, size=255726400, target=34962, bufObj=0x1f9c68d0, ctx=0x1598d80)</div><div> at main/bufferobj.c:2065</div><div>#10 buffer_data_error (ctx=0x1598d80, bufObj=0x1f9c68d0, target=34962, size=255726400, data=0x7f282f1b1010, usage=35044, func=0x7f284f41a17c "glBufferData") at main/bufferobj.c:2091</div><div>#11 0x00007f284e9f37e3 in _mesa_buffer_data (ctx=0x1598d80, bufObj=0x1f9c68d0, target=34962, size=255726400, data=0x7f282f1b1010, usage=35044, func=0x7f284f41a17c "glBufferData") at main/bufferobj.c:2107</div><div>#12 0x00007f284e9f38cf in _mesa_BufferData (target=34962, size=255726400, data=0x7f282f1b1010, usage=35044) at main/bufferobj.c:2132</div><div>#13 0x00000000004c910b in ?? ()</div><div>#14 0x000000000040bff4 in ?? ()</div><div>#15 0x000000000040c61c in ?? ()</div><div>#16 0x0000000000407e95 in ?? ()</div><div>#17 0x00007f2852880830 in __libc_start_main (main=0x407810, argc=2, argv=0x7ffc8d9394b8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc8d9394a8)</div><div> at ../csu/libc-start.c:291</div><div>#18 0x0000000000409999 in _start ()</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 24, 2018 at 8:43 PM, Lionel Landwerlin <span dir="ltr"><<a href="mailto:lionel.g.landwerlin@intel.com" target="_blank">lionel.g.landwerlin@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 24/07/18 18:34, Kenneth Graunke wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tuesday, July 24, 2018 5:34:57 AM PDT Lionel Landwerlin wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
That looks correct to me (and we do the same in Anv).<br>
Also a bit baffled that we haven't run into issues earlier :(<br>
<br>
But would be good to have Ken's Rb too.<br>
<br>
Thanks a lot!<br>
<br>
Reviewed-by: Lionel Landwerlin <<a href="mailto:lionel.g.landwerlin@intel.com" target="_blank">lionel.g.landwerlin@intel.com</a><wbr>><br>
</blockquote>
Yeah, this is probably for the best...we used to just ask the kernel<br>
for memory and it would do this for us. Now that we're doing it<br>
ourselves, we ought to be defensive here.<br>
<br>
Reviewed-by: Kenneth Graunke <<a href="mailto:kenneth@whitecape.org" target="_blank">kenneth@whitecape.org</a>><br>
<br>
But I agree with Chris, I'm surprised that this would actually fix<br>
anything...all of our allocations ought to multiples of PAGE_SIZE,<br>
so unless we're starting at a funny address, they ought to remain<br>
that way...<br>
<br>
I wonder if this isn't papering over another bug.<br>
</blockquote>
<br></div></div>
Sergii,<br>
<br>
If you can reproduce this bug locally, would you mind adding<br>
<br>
assert(size % 4096 == 0);<br>
<br>
at the top of vma_alloc() and see if it hits the asserts.<br>
Having a backtrace would be great :)<br>
<br>
Thanks a lot,<br>
<br>
-<br>
Lionel<div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Sergii Romantsov<br></div><div dir="ltr"><div style="margin:0px;padding:0px;color:rgb(23,43,77);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px">GlobalLogic Inc.<br><a href="http://www.globallogic.com/" rel="nofollow" style="color:rgb(0,82,204)" target="_blank">www.globallogic.com</a><br></div></div></div></div></div></div>
</div>