Sunday, July 28, 2024

Re: headscale segfault on openbsd 7.5

Hi again,

I didn't see this issue was reported and discussed on github by the
maintainer who updated the port in -CURRENT:

https://github.com/juanfont/headscale/issues/1857

I successfully built the port from -CURRENT and got headscale up again.

The package in 7.5 is broken.


Best regards,

Jona


On 26/07/2024 11:43, Jona Joachim wrote:
> Hi!
>
> I upgraded my system to openbsd 7.5 today and headscale to
> headscale-0.22.1.
>
> With openbsd 7.4, everything was running fine.
>
> Now I get a segfault when I try to run headscale (see below).
>
> I know nothing about golang so it's a bit hard to debug.
>
> I tried to compile the software manually with "go build" with
> different options. I seems to compile fine but it doesn't generate a
> runnable binary.
>
> I wonder if you can reproduce on 7.5.
>
>
>
> $ sudo -u _headscale headscale serve
> panic: runtime error: invalid memory address or nil pointer dereference
> [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x16ad5e8]
>
> goroutine 1 [running]:
> modernc.org/libc.(*TLS).setErrno(0x1c59020?, {0x292f80?, 0x656220?})
>     modernc.org/libc@v1.22.2/etc.go:189 +0xa8
> modernc.org/libc.Xmalloc(0x0, 0x334ec0?)
>     modernc.org/libc@v1.22.2/mem.go:34 +0xc5
> modernc.org/libc.init()
>     modernc.org/libc@v1.22.2/libc_openbsd.go:49 +0x2a9
>
>
>
>
>
> Best regards,
>
> Jona JOACHIM
>
>

No comments:

Post a Comment