cmd/cgo: value inconsistency on s390x when passing an int reference to a C function #24212
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
go version
)?ubuntu@bionic:~$ go version go version go1.9.4 linux/s390x
Does this issue reproduce with the latest release?
Yes, same with 1.10.
What operating system and processor architecture are you using (
go env
)?What did you do?
(unfortunately it seems the Go playground does not support cgo)
What did you expect to see?
free@x1:~$ go run foo.go 1 1
This is the output on Linux x86_64 (Ubuntu 18.04) .
What did you see instead?
This is the output on Linux s390x (Ubuntu 18.04) .
I think the code above respects all rules of cgo, and yet the variable
value
gets assigned a different integer than*pValue
.The text was updated successfully, but these errors were encountered: