-
-
Notifications
You must be signed in to change notification settings - Fork 336
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
Qemu signal refactoring #2920
Qemu signal refactoring #2920
Conversation
Can we change
to this?
else you unwrap this env later so it's easy to misuse |
yes |
log::debug!("Running crash hooks."); | ||
run_target_crash_hooks::<ET, I, S>(signal.into()); | ||
|
||
assert!(data.maybe_report_crash::<E, EM, I, OF, S, Z>(None)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe_report_crash calls run_observers_and_save_state.
and run_observers_and_save_state calls event_mgr.on_restart(state).unwrap();
it is mandatory to call on_restart
to do restart but here you are only calling this in one of these branches. so you need to call in others too
log::debug!("Signal has been triggered while QEMU was running"); | ||
|
||
match qemu.signal_ctx() { | ||
QemuSignalContext::OutOfQemuSignalHandler => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I almost forgot what we discussed yesterday...
can you explain more on "In what case, you will end up in this branch?"
for example. if we receive a signal during harness execution, we go to which branch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i guess this is the 1st signal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and later InQemuSignalHandlerTarget is the 2nd signal after qemu delegated signal handling to us right?
Also can you talk about the asanmodules' api change in MIGRATION.md too? |
i changed asan builder |
seems not yet working
and this job is stuck for the 217 minutes |
No description provided.