Open elliottslaughter opened 6 years ago
I am now fairly convinced that this is indeed a bug in this fork, vs Terra or Regent or the application. The most convincing evidence is that my code runs successfully with this alternative fork of LuaJIT:
https://github.com/koriakin/LuaJIT (branch ppc64-ffi)
I'll leave this up for now in case anyone has any interest in continuing to work on this fork.
Hi,
I'm wondering if anyone here would be interested in helping to debug a segfault that's occurring with this fork on the Power9 architecture. I can't prove that this is LuaJIT's fault, but I'm tearing my hear out trying to figure out what's going wrong. Backtrace for the crash looks like:
(In a debugger for clarity, though of course it happens without the debugger too.)
The program below is fully minimized, i.e. removing any part of the program causes it to stop reproducing:
https://github.com/stanfordhpccenter/soleil-x/blob/minimize-ppc64-crash/src/dom.rg
Furthermore, introducing print statements can cause the crash to move or to disappear entirely.
Based on these symptoms, it sure seems like there has to be some sort of memory corruption going on, but because I can't
printf
-debug, I'm not even sure where the crash is occurring! (Aside from the backtrace above that seems to indicate it's going somewhere into Lua code.)You'll note that there are two other languages thrown in the mix here: Terra and Regent. Unfortunately I can't remove these, so I just have to debug around them.
I'd be happy to respond with complete instructions for reproducing, if that would be helpful.
Thanks in advance for any help or advice.