Closed rhbvkleef closed 3 years ago
How can I replicate the failure? I can apply the change, and tests still pass, but how do I know the test is having the intended effect?
Nevermind. I found simply running uname
was sufficient to trigger the error... and applying the recommended patch fixed the issue.
I have identified this line to cause problems when running the shell as an entrypoint of a docker container, without passing parameters.
This is the stacktrace that is created:
The better option is probably to replace this line with the following two:
That way,
sys.argv
is not mutated.P.S.: Thanks for writing this. Now I can finally properly embark on running an almost pure python userland 😄 P.P.S.: Yes, I am running Python straight from mainline, but I've tested with older versions, and the problem persists.