Skip to content
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

cheribsdtest: Improve reason if child unexpectedly dies with a signal #1737

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

jrtc27
Copy link
Member

@jrtc27 jrtc27 commented Jul 6, 2023

Currently we just use "Child exited abnormally" for when the child process doesn't exit cleanly, which is unhelpful when debugging, so print the signal number instead if it was due to a signal.

Note that tests which deliberately provoke signals still exit cleanly, since the child's test harness will catch the signal, save various parts of the given siginfo_t and exit. This code is only for more catastrophic situations (e.g. signal delivery itself is broken or the child received a fatal signal before even setting up the handler).

Currently we just use "Child exited abnormally" for when the child
process doesn't exit cleanly, which is unhelpful when debugging, so
print the signal number instead if it was due to a signal.

Note that tests which deliberately provoke signals still exit cleanly,
since the child's test harness will catch the signal, save various parts
of the given siginfo_t and exit. This code is only for more catastrophic
situations (e.g. signal delivery itself is broken or the child received
a fatal signal before even setting up the handler).
@jrtc27 jrtc27 merged commit a81c683 into dev Jul 7, 2023
20 checks passed
@jrtc27 jrtc27 deleted the cheribsdtest-signal branch July 7, 2023 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants