Skip to content

cgo: static variables are not initialised correctly on darwin/amd64 #1559

@rogpeppe

Description

@rogpeppe
Unarchive the attached archive and run "gotest".
On my machine this prints,

    0x100002a0001
    0xffffffff00000000
    0xffffffff00000000
    0xffffffff
    0x0
    0x10054ba78
    0x10054f370
    0x0
    0x1437e
    0x6a

where it should print all zeros.

6g macos d9ff478c4ed3+ tip

Attachments:

  1. tstcgo.tgz (580 bytes)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions