-
Notifications
You must be signed in to change notification settings - Fork 18k
crypto/x509: crash and spurious errors in (*Certificate).Verify
on macOS when argv[0] contains //../
#61000
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
Comments
Note: this is a variant of previous bug #54590. However it's a different bug since it still repros on go 1.20.5. |
Noting that #54590 stated that Apple needs to fix this on their end. /cc @FiloSottile @rolandshoemaker @golang/security |
Still no word from Apple, nothing we can do here. |
Oh interesting, I see in the linked cockroachdb bug you get a |
Oh, was that built with an older version of Go? Not entirely sure. |
We see the SIGILL in 1.19.6 |
Ah okay, yeah the crash was fixed in 1.20, but the error return remains. There is not really anything else we can do until Apple addresses this issue, as |
feel free to close this as duplicate of #54590. |
What version of Go are you using (
go version
)?The issue reproduces (with variants of symptoms) on go 1.18.2, 1.19.6 and 1.20.5
What operating system and processor architecture are you using (
go env
)?Apple M1.
(The issue does not reproduce on linux or apple x86).
go env
OutputWhat did you do?
Using CockroachDB (v22.2 or v23.1) built with go 1.18.2 or 1.19.6 on Apple M1, starting up the binary crashes in crypto/x509 with the stack trace below
Stack trace
To reproduce the issue the binary must be called via
.//../cockroach ...
. If the binary is called via./cockroach
,./../cockroach
or other paths that do not include//..
, the issue does not reproduce.The issue can be further reproduced using a small repro program in go 1.20.5 (also included below).
Test program `test.go` to reproduce
Steps to reproduce:
If the program is ran via
./test
it completes successfully.Also running via
.//../t/test
on linux does not repro the issue -- it's specific to macOS.xref: cockroachdb/cockroach#105534
What did you expect to see?
The program initializes TLS successfully.
What did you see instead?
See above.
The text was updated successfully, but these errors were encountered: