-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
e2e: ExitWithError() will determine an incorrect exit code and result in an error. #24213
Comments
The test is sending There is nothing wrong with ExitWithError is simply check the exit code is what we expect, sending SIGABRT will also cause the podman process to exit 2 as this is also catched by golang. So if you get anything else something seems to be wrong in your environment. |
Is there a way to identify issues in the execution environment? For example, after creating a new F40 environment and updating it, I tried running the following command. This creates a container that sends a trap message saying 'echo Received' when SIGFPE occurs.
The output in this new F40 environment is as follows. https://gist.github.com/hiramotom/fa71edc0b9cbd855a8dc3eb77330bf27 |
That is not what I am seeing when building locally and all our CI tests on different distros pass too. However I can confirm that something in the fedora distro build changed, if I use the packaged version then it is behaving differently for some reason. This can be easily tested with
Compared to a local build via make podman
So most likely this is something in the distro build options that caused this change and has nothing to do with podman. I don't think it matters much If I strace it we clearly see that the go program send itself SIGABRT
I have no idea why, on the locally build version I see the expected
|
Ok it seems to be caused by the |
FYI I asked the fedora and RHEl golang maintainers what they now about rpm_crashtraceback, the only thing that we know is that it forces |
Issue Description
It seems that the changes made by #22661 might not be completely accurate.
When I ran the command in test environment, it returned an error: "Command exited with status 134 (expected 2)".
Could this test result be different depending on the environment?
I believe this code is causing the error output.
Steps to reproduce the issue
2.The results will be output, so I will check them.
Describe the results you received
This test will output an error.
"Command exited with status %d (expected %d)", matcher.ExitCode, matcher.ExpectedExitCode
Describe the results you expected
The test will end successfully if the exit status is 134 (128+6 SIGABRT).
podman info output
podman info
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: