alexcrichton opened PR #10974 from alexcrichton:asan-new-intrinsic to bytecodealliance:main:
Prior to this commit locally I would see a nondeterministic crash when executing:
RUSTFLAGS=-Zsanitizer=address \ cargo +nightly run --release test filetestsThe crash has a scary-looking internal assertion within the ASAN runtime itself and local debugging seems to show that threads are required to reproduce this and it's nondeterministic. I don't know why CI is currently passing on all PRs when this is failing so frequently for myself locally.
In any case it seems like there's a magical ASAN intrinsic to call before
noreturnthings which I think is intended for thread-stopping events which isn't a great fit for exceptions here but it seems to resolve the crash.Basically I have no idea why things crash locally, what this new function does, nor why it fixes things. I am but a slave to the CI gods in an attempt to make it so our CI is more reliable.
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested pchickey for a review on PR #10974.
alexcrichton requested wasmtime-core-reviewers for a review on PR #10974.
alexcrichton updated PR #10974.
cfallin submitted PR review:
Thanks for catching this!
cfallin has enabled auto merge for PR #10974.
cfallin merged PR #10974.
Last updated: Dec 06 2025 at 06:05 UTC