New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debug/pe: TestReadCOFFSymbolAuxInfo test fails on big-endian systems #52079
Comments
Change https://go.dev/cl/397294 mentions this issue: |
Disable the new TestReadCOFFSymbolAuxInfo testpoint on big endian systems, pending resolution of issue 52079. The newly added interfaces for reading symbol definition aux info is not working properly when reading PE objects obj big-endian systems. Updates #52079. Change-Id: I8d55c7e4c03fc6444ef06a6a8154cb50596ca58a Reviewed-on: https://go-review.googlesource.com/c/go/+/397294 Trust: Than McIntosh <thanm@google.com> Run-TryBot: Than McIntosh <thanm@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com>
I am pretty sure you should be using
I should have picked this up during original review. Alex |
I will read https://commandcenter.blogspot.com/2012/04/byte-order-fallacy.html as a penance for my sins. Alex |
No worries, I should have caught it as well. I sent a CL. |
Change https://go.dev/cl/397485 mentions this issue: |
What version of Go are you using (
go version
)?go tip
Does this issue reproduce with the latest release?
no
What operating system and processor architecture are you using (
go env
)?Big endian systems, e.g. s390, PPC BE.
What did you do?
On a big-endian machine, run "go test debug/pe"
What did you expect to see?
clean run
What did you see instead?
--- FAIL: TestReadCOFFSymbolAuxInfo (0.00s)
symbols_test.go:76: COFFSymbolReadSectionDefAux on 39 bad return, got:
{Size:134217728 NumRelocs:256 NumLineNumbers:0 Checksum:0 SecNum:16 Selection:0 _:[2 0 0]}
want:
{Size:8 NumRelocs:1 NumLineNumbers:0 Checksum:0 SecNum:16 Selection:2 _:[0 0 0]}
symbols_test.go:76: COFFSymbolReadSectionDefAux on 81 bad return, got:
{Size:3791847424 NumRelocs:256 NumLineNumbers:0 Checksum:1624223678 SecNum:32 Selection:0 _:[0 0 0]}
want:
{Size:994 NumRelocs:1 NumLineNumbers:0 Checksum:1624223678 SecNum:32 Selection:0 _:[0 0 0]}
FAIL
FAIL debug/pe 0.003s
FAIL
Basically it looks as though the new COFFSymbolReadSectionDefAux is not working properly in a big-endian environment.
The text was updated successfully, but these errors were encountered: