[Bug 93840] [i965] Compiler backend uses too much stack with Alien: Isolation

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Feb 13 19:45:12 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=93840

--- Comment #24 from Ian Romanick <idr at freedesktop.org> ---
(In reply to Eero Tamminen from comment #21)
> (In reply to Matt Turner from comment #14)
> > Created attachment 126122 [details] [review] [review]
> > patch
> > 
> > (In reply to Darius Spitznagel from comment #1)
> > > Created attachment 121746 [details]
> > > Alien: Isolation GDB log
> > 
> > The memset() at line 935 of
> > a4cff18:src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp is
> > 
> > >   memset(last_grf_write, 0, sizeof(last_grf_write));
> > 
> > The backtrace shows
> > 
> > #1  0x00007fffe79015fe in memset (__len=482688, __ch=0,
> > __dest=0x7fffa216e550) at /usr/include/x86_64-linux-gnu/bits/string3.h:84
> > 
> > __len=482688?!
> 
> In my case with today's Mesa & Alien Isoation:
> Thread 17 "WinMain" received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7f09cc122700 (LWP 23775)]
> __memset_avx2 () at ../sysdeps/x86_64/multiarch/memset-avx2.S:161
> 161	../sysdeps/x86_64/multiarch/memset-avx2.S: No such file or directory.
> (gdb) bt
> #0  __memset_avx2 () at ../sysdeps/x86_64/multiarch/memset-avx2.S:161
> #1  0x00007f09de059b0c in memset (__len=349056, __ch=0,
> __dest=0x7f09cc0c98c0) at /usr/include/x86_64-linux-gnu/bits/string3.h:90
> #2  fs_instruction_scheduler::calculate_deps (this=0x7f09cc11ee90) at
> ../../../../../../src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp:991
> 
> -> 349056 byte memset.
> 
> After applying patch similar to yours, game crashes in startup when compiler
> is using another stack array.

Eero, are you able to collect the shaders that being compiled when the stack
explodes?  Matt's suspicion is that there is another bug somewhere that causes
things to go sideways.  Without seeing the shaders, it's just a guessing game.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20170213/9be5a867/attachment.html>


More information about the intel-3d-bugs mailing list