tinygo icon indicating copy to clipboard operation
tinygo copied to clipboard

Basic Block in generics test does not have terminator

Open QuLogic opened this issue 1 year ago • 0 comments

This seems to be a flaky error. I had to repeat builds 3 times until it passed, and the error was slightly different each time. The failure is something like:

Basic Block in function 'github.com/tinygo-org/tinygo/testdata/generics/value.New[int]' does not have terminator!
label %entry
    main.go:1195: error: verification error after compiling package github.com/tinygo-org/tinygo/testdata/generics/testa

The reason why I say it's flaky is that this first build errors on EmulatedCortexM3, but the second build errors on Host, while the third build is fine.

QuLogic avatar Aug 08 '22 03:08 QuLogic

Hmm, this suggests some sort of memory error or race condition in the compiler. Can you try rebuilding LLVM with assertions enabled? It might surface the actual bug.

aykevl avatar Aug 13 '22 02:08 aykevl