Skip to content

runtime: some linkname signatures do not match #58440

@amscanne

Description

@amscanne

The two affected functions are:

  • internal/poll.runtime_pollWaitCanceled
  • sync/atomic.runtime_procPin

What version of Go are you using (go version)?

go1.19rc2

Does this issue reproduce with the latest release?

Yes.

What operating system and processor architecture are you using (go env)?

N/A

What did you do?

This was identified as an error by a linkname analyzer. A patch was posted, and a suggestion was made to file a specific bug.

What did you expect to see?

I expected signatures of these functions to match. If they did not, they should at least have the same shape (i.e. they may intentionally mismatch as in the case of runtime.ifaceI2E).

What did you see instead?

They were identical except return values (or lack thereof). This could cause problems with assumptions regarding the stack layout for those calls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions