Skip to content

panic: runtime error: invalid memory address or nil pointer dereference on OpenBSD #186

@huhndev

Description

@huhndev

Moin!

I just build mods on OpenBSD -current and got the following panic when trying to run mods. Reproducable with v1.0.0, v1.1.0 and the latest commits from main. v0.2.0 runs fine.

If I can provide any further information, please let me know.

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

goroutine 1 [running]:
modernc.org/libc.(*TLS).setErrno(0x17533e0?, {0x245660?, 0x58f260?})
        /home/jhuhn/go/pkg/mod/modernc.org/libc@v1.24.1/etc.go:189 +0xdc
modernc.org/libc.Xmalloc(0x2decc0?, 0x598868?)
        /home/jhuhn/go/pkg/mod/modernc.org/libc@v1.24.1/mem.go:34 +0xc5
modernc.org/libc.init()
        /home/jhuhn/go/pkg/mod/modernc.org/libc@v1.24.1/libc_openbsd.go:49 +0x1db

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