-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libtest UB with custom allocator, per miri #138839
Comments
That diagnostic should also have a note that explains where the tag was created. Does it? Oh I see it now. There just isn't a span. |
The problem is in your code. This strategy you are trying to implement is a variation of the &Header pattern (rust-lang/unsafe-code-guidelines#256), which is incompatible with Stacked Borrows: |
For completeness, you should try with |
I tried this code:
git clone https://github.com/alecmocatta/memcheck cargo miri test
I expected to see this happen: test passes.
Instead, this happened:
There could be a bug in my
GlobalAlloc
impl, though miri raises no UB when using it outside oflibtest
.This crate was written to debug occasionally seeing this assertion #124671 still being hit in production.
Meta
The text was updated successfully, but these errors were encountered: