Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: internal compiler error: bad live variable at entry (part 2) #29218
The following program
crashes the tip compiler with:
It compiles fine on go1.11.
The crash looks similar to the one in #28445, but the toolchain I'm fuzzing includes the fix for that one.
It looks like the infinite loop makes it so that the end of the memory state chain is never used, so the entire memory chain is dead-code eliminated. That chain includes VARDEFs for some variables that still have an LEAQ for them. That makes the variables look live on entry.
I'm going to remove release blocker. This can only happen for infinite loops with no reads or writes in them. That seems unlikely to ever happen in real code. At least, non-buggy real code.