runtime: plan9: exit status is not passed correctly to exits syscall #53669
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Plan9
Milestone
In commit 364ced6. the definition of exit in the plan 9 go runtime was changed like so:
However, itoa only puts the converted number "somewhere" in the buffer. Specifically, it
builds it from the end of the buffer towards the start -- meaning that the first byte of the buffer
is a 0 byte, and the resulting C string that's passed to exits is empty, leading to a falsely
successful exit.
What version of Go are you using (
go version
)?HEAD. It was broken in commit 364ced6,
What operating system and processor architecture are you using (
go env
)?Plan 9
What did you do?
What did you expect to see?
An exit status of 2.
What did you see instead?
A successful exit status.
The text was updated successfully, but these errors were encountered: