Repository navigation
Small fixes for LLVM AOT backend on Windows. - #3786
Conversation
|
Errors on CI (e.g. in |
|
yeah I think the base PR has the same failures on the CI - I have no idea why because the logs are useless and we have no artifacts - it's why I haven't made any progress on that :) |
| // executable_library_.release(); | ||
| #if IREE_TRACING_FEATURES & IREE_TRACING_FEATURE_INSTRUMENTATION | ||
| // Leak the library when tracing, since the profiler may still be reading it. | ||
| executable_library_.release(); |
There was a problem hiding this comment.
The reason I had still TODO'd this was because I want to make sure msan is still ok with this happening. An atexit handler that actually released things, the msan annotation to disable leak checker on a pointer, etc are what we need to play with. This is fine for the branch but you should leave the TODO as it's not really a solution that will work.
Also, we need the CI to run msan (/asan/etc) as well as with tracing flags enabled - none of this is covered right now and that's silly.
There was a problem hiding this comment.
Trying to run under MSAN now...
- We don't have an MSAN Bazel config (only ASAN)
- Using our CMake config, I get blocking errors just trying to build
iree_tools_iree-translateoriree_tools_iree-run-module. First here, then inmlir-tblgenandllvm-tblegensomewhere
I'll spend a bit more time on it and see if I can fix the current issues. atexit seems reasonable, or the TODO could be added back.
There was a problem hiding this comment.
Well, running MSAN and ASAN was tricky, but I don't see any warnings/errors for executable_library_.release();.
There are a few things in https://github.com/abseil/abseil-cpp/blob/master/absl/debugging/leak_check.h we could use if it later becomes an issue.
I'm not concerned about this if we only trace in development builds. If we determine that tracing is cheap enough to always enable then we should care much more :P
WDYT?
There was a problem hiding this comment.
Restored the TODO with a bit more info.
9e1d6f2 to
a417096
Compare
* Fix handling when IREE_LLVMAOT_LINKER_PATH is not set. * Intentionally leak dylib libraries on exit when tracing.
* Fix handling when IREE_LLVMAOT_LINKER_PATH is not set. * Intentionally leak dylib libraries on exit when tracing.
* Fix handling when IREE_LLVMAOT_LINKER_PATH is not set. * Intentionally leak dylib libraries on exit when tracing.
Found while testing #3757