Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: panic: branch too far on arm64 #23889
The program at the end of this report crashes the tip compiler when built for arm64 with optimizations disabled, as
The issue is not present in 1.10, and it was introduced in commit cdd9616 (cmd/compile: generate tbz/tbnz when comparing against zero on arm64).
Apologies for the reproducer length. The program was generated by a fuzzer and deleting any line makes the crash go away.
Oh, I found another, much bigger reproducer that causes the crash even without
So this has nothing to do with optimizations, it just happen to be easier to trigger when optimizations are disabled.
btw. I see this issue while compiling influxdb master using 1.10 on aarch64 and the patch above fixes the problem. So it might be a candidate for backport to 1.10 release.
referenced this issue
Mar 7, 2018
@gopherbot please consider this for backport to 1.10. I just come cross this bug in my ios project with go version go1.10.3 darwin/amd64.
Follow golang version do not have this bug in my ios project: