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

saslContinue crashes in proxy mode #4120

Closed
AlekSi opened this issue Feb 25, 2024 · 0 comments · Fixed by #4129
Closed

saslContinue crashes in proxy mode #4120

AlekSi opened this issue Feb 25, 2024 · 0 comments · Fixed by #4129
Assignees
Labels
area/auth Issues about authentication and authorization code/chore Code maintenance improvements
Milestone

Comments

@AlekSi
Copy link
Member

AlekSi commented Feb 25, 2024

FerretDB version

0aad83a

Backend

Any

Environment

Any

What did you do?

  1. task env-up
  2. task run-proxy-secured
  3. docker compose exec mongodb mongosh 'mongodb://username:password@host.docker.internal:27018/?tls=true&tlsCertificateKeyFile=/etc/certs/client.pem&tlsCaFile=/etc/certs/rootCA-cert.pem'

What did you expect to see?

FerretDB not crashing.

What did you see instead?

2024-02-25T09:57:05.181+0400	DPANIC	// 127.0.0.1:49990 -> 127.0.0.1:27018 	clientconn/conn.go:166	runtime error: invalid memory address or nil pointer dereference
(err = <nil>)
github.com/FerretDB/FerretDB/internal/clientconn.(*conn).run.func3
	/Users/aleksi/Code/FerretDB/FerretDB/internal/clientconn/conn.go:166
runtime.gopanic
	/opt/homebrew/Cellar/go/1.22.0/libexec/src/runtime/panic.go:770
runtime.panicmem
	/opt/homebrew/Cellar/go/1.22.0/libexec/src/runtime/panic.go:261
runtime.sigpanic
	/opt/homebrew/Cellar/go/1.22.0/libexec/src/runtime/signal_unix.go:881
github.com/xdg-go/scram.(*ServerConversation).Step
	/Users/aleksi/Soft/GOPATH/pkg/mod/github.com/xdg-go/scram@v1.1.2/server_conv.go:47
github.com/FerretDB/FerretDB/internal/handler.(*Handler).MsgSASLContinue
	/Users/aleksi/Code/FerretDB/FerretDB/internal/handler/msg_saslcontinue.go:47
github.com/FerretDB/FerretDB/internal/clientconn.(*conn).handleOpMsg
	/Users/aleksi/Code/FerretDB/FerretDB/internal/clientconn/conn.go:571
github.com/FerretDB/FerretDB/internal/clientconn.(*conn).route
	/Users/aleksi/Code/FerretDB/FerretDB/internal/clientconn/conn.go:428
github.com/FerretDB/FerretDB/internal/clientconn.(*conn).run
	/Users/aleksi/Code/FerretDB/FerretDB/internal/clientconn/conn.go:312
github.com/FerretDB/FerretDB/internal/clientconn.acceptLoop.func1
	/Users/aleksi/Code/FerretDB/FerretDB/internal/clientconn/listener.go:305
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
(err = <nil>)
@AlekSi AlekSi added code/bug Some user-visible feature works incorrectly not ready Issues that are not ready to be worked on; PRs that should skip CI labels Feb 25, 2024
@AlekSi AlekSi assigned ferretdb-bot and unassigned ferretdb-bot Feb 25, 2024
@AlekSi AlekSi added code/chore Code maintenance improvements area/auth Issues about authentication and authorization and removed code/bug Some user-visible feature works incorrectly not ready Issues that are not ready to be worked on; PRs that should skip CI labels Feb 25, 2024
@AlekSi AlekSi added this to the Next milestone Feb 25, 2024
@henvic henvic self-assigned this Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/auth Issues about authentication and authorization code/chore Code maintenance improvements
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants