You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding defer close(ext.Dec) to the beginning of func objdump in cmd/vendor/golang.org/x/arch/ppc64/ppc64asm/objdumpext_test.go changes this to regular test failures:
$ go test -v cmd/vendor/golang.org/x/arch/ppc64/ppc64asm
=== RUN TestDecode
--- PASS: TestDecode (0.00s)
=== RUN TestBitField
--- PASS: TestBitField (0.00s)
=== RUN TestObjdumpPowerTestdata
--- FAIL: TestObjdumpPowerTestdata (0.01s)
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:176: 0 test cases, 0 expected mismatches, 0 failures; 0 cases/second
ext_test.go:179: external disassembler: not enough results found [32768 32868]
=== RUN TestObjdumpPowerManual
--- FAIL: TestObjdumpPowerManual (0.01s)
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:136: decoding stream ended early
ext_test.go:176: 0 test cases, 0 expected mismatches, 0 failures; 0 cases/second
ext_test.go:179: external disassembler: not enough results found [32768 32780]
FAIL
FAIL cmd/vendor/golang.org/x/arch/ppc64/ppc64asm 0.030s
This is an improvement over a deadlock, but still not great. Presumably the problem is that I don't have the right cross-disassembler installed on my system, but the test should detect that and t.Skip instead.
This failure only happens when built and run on cross? It doesn't fail natively.
I can add detection of the system disassembler and skip the test if it isn't available.
I created https://go-review.googlesource.com/32510 for the fix in golang.org/x/arch/ppc64/ppc64asm, and once this is in I will create the CL for the golang cmd/vendor directory and mark that one as fixing this issue.
Broken out from #17472.
Adding
defer close(ext.Dec)
to the beginning offunc objdump
incmd/vendor/golang.org/x/arch/ppc64/ppc64asm/objdumpext_test.go
changes this to regular test failures:This is an improvement over a deadlock, but still not great. Presumably the problem is that I don't have the right cross-disassembler installed on my system, but the test should detect that and t.Skip instead.
cc @minux
The text was updated successfully, but these errors were encountered: