tinygo-org / tinygo

Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
https://tinygo.org
Other
15.35k stars 906 forks source link

Crash in interp #648

Closed aykevl closed 4 years ago

aykevl commented 5 years ago

When running tinygo 0.9, a crash happens at this line:

https://github.com/tinygo-org/tinygo/blob/8a771e3f89679e32aa1f7eeaf630fe1263b91803/interp/values.go#L349

For this program:

https://github.com/hybridgroup/hacklab-2019/blob/master/sensor/arduino/step7/main.go

tinygo flash -target arduino-nano33 main.go

deadprogram commented 5 years ago

I am unable to reproduce this:

$ tinygo flash -target arduino-nano33 ./sensor/arduino/step7/main.go 
error: failed to reset port /tmp/tinygo386440535/main.bin: opening port: no such file or directory
$ tinygo version
tinygo version 0.9.0 linux/amd64 (using go version go1.13)
deadprogram commented 4 years ago

Unable to reproduce this with the latest dev branch. Closing, please reopen if needed.

aykevl commented 4 years ago

Now I see this issue again, I realize that it is a duplicate of #742.