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.

Comment From: gopherbot

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

Comment From: pmur

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

Comment From: gopherbot

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.