Skip to content

CI fails due to 64-bit misalignment for certain Go versions #32

@cairoeth

Description

@cairoeth

Lint CI check is failing with error:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x61232f]

The reason originates from the usage of sync/atomic Uint64-related functions here. The bug is explained in package notes here.

To fundamentally fix this, uint64s should be aligned by either placing on top of structs or with padding. It's not a big issue so it can be fixed in the CI by using Go version 1.21.6.

Also, README's status badge is not using this repo's workflows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions