Thanks to visit codestin.com
Credit goes to github.com

Skip to content

runtime: GC corrupting live objects in cmd/link #11617

@mdempsky

Description

@mdempsky

http://build.golang.org/log/dbd04ef919b4bba31c79a2882fda1ba41008cace (386)

# go run run.go -- fixedbugs/bug484.go
exit status 2
# command-line-arguments
go.string."npcdata": go.string."npcdata": invalid relocation 414675216+173 not in [0,16)

http://build.golang.org/log/0b184b4b886b6bf86634e81ca10fadbc6fd5d0f4 (386)

# go run run.go -- nosplit.go
incorrect output
BUG
rejected incorrectly:
    main 128

    linker output:
    # _/tmp/go-test-nosplit187529840
    go.string.hdr."eodSent": go.string.hdr."eodSent": invalid relocation 414647280+173 not in [0,8)

http://build.golang.org/log/a9e3dca50638f63391106fa63af858506eba811a (386)

# go run run.go -- fixedbugs/bug290.go
exit status 2
# command-line-arguments
go.string."runtime.tforkt": go.string."runtime.tforkt": invalid relocation 410364976+173 not in [0,23)

http://build.golang.org/log/7c9e9ef6f2e9f8b568fc5efaa40368f480ce6818 (amd64)

# go run run.go -- fixedbugs/issue6055.go
exit status 2
# command-line-arguments
go.string."bad frame layout": go.string."bad frame layout": invalid relocation 544120224+200 not in [0,33)

http://build.golang.org/log/3f96c7856ce7548618d41419892da7fa7d8ab1e5 (amd64)

# go run run.go -- fixedbugs/bug242.go
exit status 2
# command-line-arguments
go.string."runtime.hchan": go.string."runtime.hchan": invalid relocation 544858352+200 not in [0,30)

See also issue #10567 where TestCgoExternalThread was failing with "invalid relocation" errors (among others).

Somewhat small sample set, but notably the invalid offset seems to always be 173 on openbsd/386 and 200 on openbsd/amd64.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions