-
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
Improve logging of abort
#52633
Comments
Not really. When calling Lines 456 to 460 in 6bb50f5
but I think "illegal instruction" is confusing. I'm curious why |
I don't think any of the things I have done have improved this area, yet, unfortunately. And I think the issue is still present (although I don't have a repro). In #85377 I am trying to improve the docs on I have another branch where I am trying to make things call Fom the messages above, So, err, sorry, but I think this problem is still outstanding. Some of these things are on my todo list (having apparently fallen out of my file where I keep these things) but I haven't worked on it recently, and I haven't done a survey of all the |
@ijackson I'm not sure it was you personally, but multiple situations have certainly improved:
The only other abort I can find is in rust/library/std/src/sync/mpsc/shared.rs Line 357 in 117799b
isize::MAX times).
You're changes in #85377 do seem like a good addition. But I think this issue is correctly closed, maybe another more specific issue can be opened for discouraging use of |
While trying to debug #52629, I've hit an
abort()
condition when anArc
count wrapped around (it was being dropped twice). At least on macOS it causes the following message to be printed when testing:To me this doesn't say that the process was aborted, in fact I though this was a problem with the code being generated. Only after running the code with lldb did I find out that this was actually caused by a call to
abort
.So my suggestion is to add some minimal logging that the process was aborted, atleast in debug mode. Just a minimal "aborted process" would done. Maybe this needs a RFC, but I though to start small.
P.S: is the printed error message any better on other Oses?
The text was updated successfully, but these errors were encountered: