-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
invalid memory address or nil pointer dereference #5659
Comments
Thanks for the report! Weird. If I'm reading the right version of the code (I think I am, as that's the latest commit currently), that's this line: zap.String("remote", hello.Conn.RemoteAddr().String()), (an argument to a log message function) Apparently, This line is run when a TLS ServerName doesn't match one of the configured hostnames. I just tried doing this with your site (sorry), and:
This is expected as it can't provide a certificate. The site is still up though. Any idea what kind of request causes the bug? |
@mholt |
Hey, I just noticed at the very bottom of the stack trace:
This is new! Do you happen to be using a pre-release version of Go? 🤔 |
@mholt $ go version
go version go1.21rc3 linux/amd64 |
Ah, that's the problem. Can you open an issue with Go? Fill out their very simple bug report template ( If that value is nil, that'd constitute a breaking change, which I'm sure is not intentional. |
Sure, thanks for heading me to the right direction. :) |
Sure. Thanks for trying the latest commits!! |
Recently upgraded Caddy webserver to version:
using xcaddy v0.3.4 on Debian 12.1 amd64 with this command:
I use this config file:
and this service file to run Caddy webserver:
After a few hours after starting the systemd service, Caddy crashes. These are the logs:
The text was updated successfully, but these errors were encountered: