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
agent: Fix is_signal_handled failing parsing str to u64 #4252
agent: Fix is_signal_handled failing parsing str to u64 #4252
Conversation
/test |
Good find @Champ-Goblem -- is it feasible to add some unit tests to exercise this? I realize the existing organization of the code may make this a bit painful. What do you think? |
@egernst I see there already exists some tests for this function |
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.
lgtm, thanks @Champ-Goblem!
/test |
Hmm. CIs are failing to find the C version of virtiofsd and I think it would be easily solved with a rebase. |
10f43e9
to
a0e2d26
Compare
Okay, I was able to rebase it myself. /test |
In the is_signal_handled function, when parsing the hex string returned from `/proc/<pid>/status` the space/tab character after the colon is not removed. This patch trims the result of SigCgt so that all whitespace characters are removed. It also extends the existing test cases to check for this scenario. Fixes: kata-containers#4250 Signed-off-by: Champ-Goblem <cameron@northflank.com>
a0e2d26
to
4b437d9
Compare
/test As I squashed both versions. |
Ci is breaking due to kata-containers/tests#4791 kata-containers/tests#4792 is a possible fix. |
/test |
/retest-power due to the multistrap repo being unavaiable. |
Power CI failure is unrelated. |
/retest-power |
In the is_signal_handled function, when parsing the hex string returned
from
/proc/<pid>/status
the space/tab character after the colonis not removed.
This patch trims the result of SigCgt so that
all whitespace characters are removed. It also extends the existing
test cases to check for this scenario.
Fixes: #4250
Signed-off-by: Champ-Goblem cameron@northflank.com