-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Document differences between std::process::abort and std::intrinsics::abort #40230
Comments
Neither of these perform any cleanups (it's |
Perhaps clean-up is not the right word, I was referring to this PR message:
The |
I believe that's another "forgot to update the PR description with precisely what was merged problem". We don't run cleanups on abort. |
Alright, so this is another detail that would be good to clarify in docs. |
It's not quite clear to me what we should clarify in docs here. The only thing that I can potentially see is a note on |
I don’t know what the differences are or what "cleanups" includes exactly. servo/servo#16899 is a case where
|
The |
@alexcrichton So if I understand correctly what needs to be done is documenting these two points right?:
Or do you believe that this distinction should not be documented in the docs? Otherwise we should probably close this issue. |
I didn't open this issue, so I'll leave that to @SimonSapin, although this is a very old issue so it's likely out of cache for everyone involved. |
As far as I can tell, on Linux x64 I don’t know how to document this in a OS- and architecture-independent way, or more importantly why should one be picked over the other. |
@SimonSapin I just read through the docs of process::abort again and it seems that they already make some statements about cleanup: From
I guess it might better to no document the platform specifics and rather leave it as it is? That way the If you agree we can close this issue! |
@SimonSapin Could you maybe still respond to my previous comment? Then we can maybe close this issue. |
Is there currently no stabilized way to access intrinsics::abort? |
@SimonSapin Could you maybe still respond to my previous comment? Thanks in advance! @comex There is an issue to stabilize instrinsics::abort here: #2512 but the opinions about that different. You can however use std::process::abort. Hope that helps! And sorry for the slow response! |
@DevQps I’m not sure what kind of response you expect :/ In my view we are in either one of two situations:
|
I do not know too much about intrinsincs and abort signals sadly. @alexcrichton Could you maybe answer the questions of Simon? |
These functions are not interchangeable (as pointed out by @nagisa above). Stable wrappers for |
From #81895 (comment):
|
People interested in this thread should probably indeed look at my MR #85377 which I think deals with many of the things raised here. I have linked this issue so it will be closed by my MR. So please do review my docs proposals. |
There is discussion of this in rust-lang#40230 which requests clarification. Signed-off-by: Ian Jackson <[email protected]>
#37833 mentions clean ups done by the former that, as far as I know, the latter doesn’t do.
The text was updated successfully, but these errors were encountered: