go-interpreter / ssainterp

A Golang interpreter, built upon golang.org/x/tools/go/ssa/interp
MIT License
58 stars 9 forks source link

Segfault on "unicode" tests with go1.7.4, bigger problems with go1.8beta2 #5

Open elliott5 opened 7 years ago

elliott5 commented 7 years ago

Following upstream changes to SSA, this code does not compile.

After changing lines 254/5 of interp_test.go to:

if mainPkg == nil && len(initialPkgs) == 1 {
        testmainPkg := prog.CreateTestMainPackage(initialPkgs[0])

Most tests pass using go1.7.4 on darwin, but the tests fail with a segfault running the unicode tests.

Testing with go1.8beta2 shows far bigger issues, possibly related to the os API.

Not planning to fix these issues myself, at least in the short term, I just wanted to report their existence to warn others.