Open ajalab opened 5 years ago
I didn't see the error in the previous Go version.
It seems that we have to add more external functions in externals
in external/darwin.go.
I confirmed that adding emulated functions for time.runtimeNano
, runtime.envKeyEqual
and internal/syscall/unix.fcntl
prevents the panic caused in the above code, but I am not sure that all the causes are these three functions or this situation will happen in other OSs.
@randall77 for darwin. @alandonovan for go/ssa
I finally got around to doing what I've been putting off for years: https://go-review.googlesource.com/c/tools/+/168898
What did you do?
main.go
testdata/t.go
go.mod
What did you expect to see?
The program prints "hello" to stdout.
What did you see instead?
The program panics.
Does this issue reproduce with the latest release (go1.12.1)?
yes
System details