-
Notifications
You must be signed in to change notification settings - Fork 371
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
Improve miri_print_borrow_stacks #2614
Conversation
No, pointers with |
☔ The latest upstream changes (presumably #2618) made this pull request unmergeable. Please resolve the merge conflicts. |
b01182a
to
ef5515c
Compare
@bors r+ |
☀️ Test successful - checks-actions |
Thanks for improving the docs :) |
Per post-merge review on #2322
miri_print_stacks
renamed tomiri_print_borrow_stacks
unknown_bottom
if one existsOpen question: Currently
miri_get_alloc_id
gets the expectedAllocId
forWildcard
pointers, but for pointers with no provenance, the function reports UB and halts the interpreter. That's definitely wrong. But what should we do? Is it reasonable to check if the pointer hasNone
provenance and try to get anAllocId
for its address? That still leaves us with a failure path, which in this case might be best-handled as an ICE? I'm just not sure that changing the return type ofmiri_get_alloc_id
toOption
is a win because it complicates all normal uses of this.