Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Litefs crash #75

Closed
tjheeta opened this issue Aug 25, 2022 · 0 comments · Fixed by #81
Closed

Litefs crash #75

tjheeta opened this issue Aug 25, 2022 · 0 comments · Fixed by #81

Comments

@tjheeta
Copy link

tjheeta commented Aug 25, 2022

Was restarting litefs and it was connecting back to the primary and it happened. Can't seem to reproduce this, but this is the stacktrace off of the build of 37d2e5d.

root@9d625ce1:/mnt/litefs# fgstream connected
stream disconnected
http: panic serving [fdaa:0:2fff:a7b:2c00:163d:ee67:2]:51588: runtime error: invalid memory address or nil pointer dereference
goroutine 132 [running]:
net/http.(*conn).serve.func1()
        /gnu/store/d06665qgp3zqp05fr0q1sdbfnpvxywsc-go-1.17.11/lib/go/src/net/http/server.go:1802 +0xb9
panic({0x949b80, 0xe43c90})
        /gnu/store/d06665qgp3zqp05fr0q1sdbfnpvxywsc-go-1.17.11/lib/go/src/runtime/panic.go:1047 +0x266
github.com/superfly/litefs.(*DB).Pos(0xc00027ee28)
        /current/litefs/db.go:116 +0x39
github.com/superfly/litefs/http.(*Server).streamDB(0xc000170aa0, {0xaa7f10, 0xc0001f8f00}, {0xaa5090, 0xc0004027e0}, 0x6a6f85, 0x1000000009bf760)
        /current/litefs/http/server.go:215 +0x31e
github.com/superfly/litefs/http.(*Server).handlePostStream(0xc000170aa0, {0xaa5090, 0xc0004027e0}, 0xc000284c00)
        /current/litefs/http/server.go:181 +0x549
github.com/superfly/litefs/http.(*Server).serveHTTP(0xc000170aa0, {0xaa5090, 0xc0004027e0}, 0xc000284c00)
        /current/litefs/http/server.go:138 +0x251
net/http.HandlerFunc.ServeHTTP(0x0, {0xaa5090, 0xc0004027e0}, 0x10)
        /gnu/store/d06665qgp3zqp05fr0q1sdbfnpvxywsc-go-1.17.11/lib/go/src/net/http/server.go:2047 +0x2f
net/http.serverHandler.ServeHTTP({0xaa37d8}, {0xaa5090, 0xc0004027e0}, 0xc000284c00)
        /gnu/store/d06665qgp3zqp05fr0q1sdbfnpvxywsc-go-1.17.11/lib/go/src/net/http/server.go:2879 +0x43b
net/http.(*conn).serve(0xc000416780, {0xaa7fb8, 0xc000273cb0})
        /gnu/store/d06665qgp3zqp05fr0q1sdbfnpvxywsc-go-1.17.11/lib/go/src/net/http/server.go:1930 +0xb08
created by net/http.(*Server).Serve
        /gnu/store/d06665qgp3zqp05fr0q1sdbfnpvxywsc-go-1.17.11/lib/go/src/net/http/server.go:3034 +0x4e8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant