Skip to content
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

cmd/cgo: aix c-archive corrupting stack #68957

Closed
pmur opened this issue Aug 19, 2024 · 3 comments
Closed

cmd/cgo: aix c-archive corrupting stack #68957

pmur opened this issue Aug 19, 2024 · 3 comments
Assignees
Labels
arch-ppc64x compiler/runtime Issues related to the Go compiler and/or runtime. OS-AIX
Milestone

Comments

@pmur
Copy link
Contributor

pmur commented Aug 19, 2024

Go version

master

Output of go env in your module/workspace:

GOARCH=ppc64
GOOS=aix

What did you do?

go test cmd/cgo/internal/testcarchive

What did you see happen?

Various strange failures.

Many c-archive tests are failing. The argc/argv parameters are getting corrupted cause the the test binary to do unexpected things.

What did you expect to see?

All tests pass, and argc/argv parameters to main not get corrupted when c-archives are linked.

@pmur pmur self-assigned this Aug 19, 2024
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Aug 19, 2024
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/606895 mentions this issue: runtime: on aix, fix call to _cgo_sys_thread_create in _rt0_ppc64_aix_lib

@pmur
Copy link
Contributor Author

pmur commented Aug 20, 2024

@gopherbot please consider this for backport to 1.22 and 1.23, this is a bug with no workaround.

@gopherbot
Copy link
Contributor

Backport issue(s) opened: #68972 (for 1.22), #68973 (for 1.23).

Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-ppc64x compiler/runtime Issues related to the Go compiler and/or runtime. OS-AIX
Projects
None yet
Development

No branches or pull requests

3 participants