-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Description
Description
haven-relay crashes with a panic due to a nil pointer dereference while handling websocket requests.
Error output
2026/01/28 23:30:27 🔗 listening at 0.0.0.0:3355
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x11768c8]
goroutine 185 [running]:
main.initRelays.func6(
{0x196e998?, 0x4001787ec0?},
{{0x0, 0x0, 0x0}, {0x40013bcf00, 0x4, 0x8}, {0x40001642c8, 0x1, ...}, ...}
)
/app/init.go:227 +0x88
github.com/fiatjaf/khatru.(*Relay).handleRequest(
0x4000347008,
{0x196e998, 0x4001787ec0},
{0x4000c66290, 0x6},
0x400170ffc0,
0x40004038f0,
{{0x0, 0x0, 0x0}, ...}
)
/go/pkg/mod/github.com/fiatjaf/khatru@v0.19.1/responding.go:31 +0x1e4
github.com/fiatjaf/khatru.(*Relay).HandleWebsocket.func2.2(
{0x4000276800?, 0x40012aaa50?}
)
/go/pkg/mod/github.com/fiatjaf/khatru@v0.19.1/handlers.go:305 +0xf88
created by github.com/fiatjaf/khatru.(*Relay).HandleWebsocket.func2
/go/pkg/mod/github.com/fiatjaf/khatru@v0.19.1/handlers.go:152 +0x2c4
Location
/app/init.go:227
Impact
The relay process terminates due to a SIGSEGV.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels