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

[v2 server] panic invalid memory address or nil pointer #664

Closed
Jinnrry opened this issue Jan 2, 2025 · 1 comment
Closed

[v2 server] panic invalid memory address or nil pointer #664

Jinnrry opened this issue Jan 2, 2025 · 1 comment

Comments

@Jinnrry
Copy link

Jinnrry commented Jan 2, 2025

There are a lot of null pointer errors reported in the program logs, and looking at the error stack, there is no code of my own.

panic handling command: runtime error: invalid memory address or nil pointer dereference
goroutine 24284 [running]:
runtime/debug.Stack()
        /usr/local/go/src/runtime/debug/stack.go:26 +0x5e
github.com/emersion/go-imap/v2/imapserver.(*Conn).serve.func1()
        /go/pkg/mod/github.com/emersion/go-imap/[email protected]/imapserver/conn.go:89 +0x6f
panic({0xbbc2c0?, 0x144f3f0?})
        /usr/local/go/src/runtime/panic.go:785 +0x132
github.com/emersion/go-imap/v2/imapserver.(*Conn).handleNamespace(0xc00021d560, 0xc0001b7900)
        /go/pkg/mod/github.com/emersion/go-imap/[email protected]/imapserver/namespace.go:30 +0x165
github.com/emersion/go-imap/v2/imapserver.(*Conn).readCommand(0xc00021d560, 0xc0001b7900)
        /go/pkg/mod/github.com/emersion/go-imap/[email protected]/imapserver/conn.go:243 +0x885
github.com/emersion/go-imap/v2/imapserver.(*Conn).serve(0xc00021d560)
        /go/pkg/mod/github.com/emersion/go-imap/[email protected]/imapserver/conn.go:177 +0x86f
created by github.com/emersion/go-imap/v2/imapserver.(*Server).Serve in goroutine 34
        /go/pkg/mod/github.com/emersion/go-imap/[email protected]/imapserver/server.go:152 +0x3fb
@Jinnrry
Copy link
Author

Jinnrry commented Jan 2, 2025

The namespace command cannot return nil and should return empty objects.

@Jinnrry Jinnrry closed this as completed Jan 2, 2025
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

No branches or pull requests

1 participant