This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] add more asserts to sparse support lib
ClosedPublic

Authored by aartbik on Sep 15 2021, 4:28 PM.

Details

Summary

We are having issues running the integration test of the sparse compiler
on AArch64 (crashing in the lib). This revision adds more assertions.

Diff Detail

Event Timeline

aartbik created this revision.Sep 15 2021, 4:28 PM
aartbik requested review of this revision.Sep 15 2021, 4:28 PM

A UBSAN/ASAN build may also help for debugging this issue?

A UBSAN/ASAN build may also help for debugging this issue?

Yeah, I have been running asan, tsan and msan runs (the latter less useful with JIT unfortunately) but on x86.
Javier is very kindly helping me on an Aarch64 machine and can reproduce the crash (IR is identical to x86 code, which does not crash).

This revision was just a very first start of the debug process, I don't think it will find anything.

But with Javier's help, we will get to the bottom of this!

jsetoain accepted this revision.Sep 16 2021, 3:06 AM

Healthy checks to have in place, these should catch corruption in the mtx files cleanly. I'm working on a SAN build myself, hopefully it will help pinpoint the source of offending accesses. Thanks!

This revision is now accepted and ready to land.Sep 16 2021, 3:06 AM
This revision was automatically updated to reflect the committed changes.