misc/cgo: Test32579 breaks builds on aix/ppc64 and linux/s390x #32770
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Soon
This needs to be done soon. (regressions, serious bugs, outages)
Testing
An issue that has been verified to require only test changes, not just a test failure.
Milestone
Test32579, introduce by CL 183458, doesn't work on aix/ppc64 and linux/s390x:
https://build.golang.org/log/7390cf1f99fa31505bc0f13e1834c2e7a20cc62f
https://build.golang.org/log/7df224f96eeb375bacff23d3656b111b3ee38a98
As these are big-endian, memset(..., 1, 1) won't set the value to 1(=0x00000001) but to 16777216 (=0x01000000). This can be reproduced with a C program.
On aix/pc64 (big-endian):
On linux/ppc64le (little-endian)
How should this test be fixed ? Should memset be changed in order to still have
s[0].data[0] == 1
or can we simply check that for big-endians[0].data[0] == 16777216
?/cc @ianlancetaylor @kawakami-o3
The text was updated successfully, but these errors were encountered: