-
Notifications
You must be signed in to change notification settings - Fork 95
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
Unimplemented: catch_unwind
intrinsic
#267
Labels
[C] Feature / Enhancement
A new feature request or enhancement to an existing feature.
[E] Unsupported Construct
Add support to an unsupported construct
Comments
Test case added in |
4 tasks
zhassan-aws
added
[C] Bug
This is a bug. Something isn't working.
MLP - Must Have
labels
Mar 15, 2022
|
zhassan-aws
added
[C] Feature / Enhancement
A new feature request or enhancement to an existing feature.
and removed
[C] Bug
This is a bug. Something isn't working.
MLP - Must Have
labels
Mar 18, 2022
adpaco-aws
changed the title
Unimplemented: Mar 30, 2022
try
intrinsic is unimplemented, but required for firecrackertry
intrinsic
Closed
tedinski
added
the
[E] Unsupported Construct
Add support to an unsupported construct
label
Nov 14, 2022
This was referenced Nov 14, 2022
3 tasks
adpaco-aws
changed the title
Unimplemented:
Unimplemented: Mar 1, 2024
try
intrinsiccatch_unwind
intrinsic
Renamed the issue since |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
[C] Feature / Enhancement
A new feature request or enhancement to an existing feature.
[E] Unsupported Construct
Add support to an unsupported construct
Only remaining issue from #158
https://doc.rust-lang.org/std/intrinsics/fn.try.html
https://doc.rust-lang.org/src/core/intrinsics.rs.html#1717
https://doc.rust-lang.org/std/panic/fn.catch_unwind.html
try
makes a best-effort attempt to recover from panics - if the code in the first function pointer crashes with a panic, rust will try to run the cleanup code in the second function pointer.It is not clear to me what the right semantics are here. For now, handling this as a
unimplemented
allows us to soundly move forward, but it might be more accurate to actually call the first function pointer. I don't know of a nice way to do the unwinding on panic - maybe CBMC has a mechanism?The text was updated successfully, but these errors were encountered: