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

使用 QUIC 协议日志一直报错。 #713

Open
lxhao61 opened this issue Feb 17, 2025 · 3 comments
Open

使用 QUIC 协议日志一直报错。 #713

lxhao61 opened this issue Feb 17, 2025 · 3 comments

Comments

@lxhao61
Copy link

lxhao61 commented Feb 17, 2025

一旦使用 QUIC 协议日志就一直报错,见如下:

Feb 17 14:59:07 C20240207094726 caddy[520]: {"level":"info","ts":1739804347.1633363,"msg":"ERROR http: panic serving arg=\"runtime error: invalid memory address or nil pointer dereference\" trace=\"
goroutine 121 [running]:
github.com/quic-go/quic-go/http3.(*Server).handleRequest.func2.1()
	github.com/quic-go/[email protected]/http3/server.go:682 +0xb9
panic({0x17be020?, 0x2c7db90?})
	runtime/panic.go:785 +0x132
github.com/caddyserver/caddy/v2/modules/caddyhttp.(*Server).ServeHTTP(0xc0006c6a88, {0x1f45d90, 0xc0007f0780}, 0xc0007fe500)
	github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/server.go:445 +0x136c
github.com/quic-go/quic-go/http3.(*Server).handleRequest.func2(0x1f48950?, 0xc00075b810?, {0x1f37060?, 0xc0006c6a88?}, 0xc000013310?, 0xb?)
	github.com/quic-go/[email protected]/http3/server.go:690 +0x5f
github.com/quic-go/quic-go/http3.(*Server).handleRequest(0xc0006361e0, 0xc000052a80, {0x1f57390, 0xc0007eede0}, 0xc00075b860, 0xc00077cf00)
	github.com/quic-go/[email protected]/http3/server.go:691 +0xac5
github.com/quic-go/quic-go/http3.(*Server).handleConn.func1()
	github.com/quic-go/[email protected]/http3/server.go:578 +0x5b
created by github.com/quic-go/quic-go/http3.(*Server).handleConn in goroutine 101
	github.com/quic-go/[email protected]/http3/server.go:574 +0x32d
"}
Feb 17 16:09:04 C20240207094726 caddy[520]: {"level":"info","ts":1739808544.9716256,"msg":"ERROR http: panic serving arg=\"runtime error: invalid memory address or nil pointer dereference\" trace=\"
goroutine 917 [running]:
github.com/quic-go/quic-go/http3.(*Server).handleRequest.func2.1()
	github.com/quic-go/[email protected]/http3/server.go:682 +0xb9
panic({0x17be020?, 0x2c7db90?})
	runtime/panic.go:785 +0x132
github.com/caddyserver/caddy/v2/modules/caddyhttp.(*Server).ServeHTTP(0xc0006c6a88, {0x1f45d90, 0xc000754500}, 0xc0006cb900)
	github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/server.go:445 +0x136c
github.com/quic-go/quic-go/http3.(*Server).handleRequest.func2(0x1f48950?, 0xc0006d6fa0?, {0x1f37060?, 0xc0006c6a88?}, 0xc0004f6500?, 0xb?)
	github.com/quic-go/[email protected]/http3/server.go:690 +0x5f
github.com/quic-go/quic-go/http3.(*Server).handleRequest(0xc0006361e0, 0xc00002dab0, {0x1f57390, 0xc000594240}, 0xc0006d6ff0, 0xc00065e480)
	github.com/quic-go/[email protected]/http3/server.go:691 +0xac5
github.com/quic-go/quic-go/http3.(*Server).handleConn.func1()
	github.com/quic-go/[email protected]/http3/server.go:578 +0x5b
created by github.com/quic-go/quic-go/http3.(*Server).handleConn in goroutine 887
	github.com/quic-go/[email protected]/http3/server.go:574 +0x32d
"}
@lxhao61 lxhao61 changed the title 使用 QUIC 协议日志报错。 使用 QUIC 协议日志一直报错。 Feb 17, 2025
@brick2008
Copy link

brick2008 commented Feb 22, 2025

2025/02/22 13:54:33.198 INFO ERROR http: panic serving arg="runtime error: invalid memory address or nil pointer dereference" trace="goroutine 418 [running]:\ngithub.com/quic-go/quic-go/http3.(*Server).handleRequest.func2.1()\n\tgithub.com/quic-go/[email protected]/http3/server.go:682 +0xb9\npanic({0x16cfc80?, 0x29dfcc0?})\n\truntime/panic.go:785 +0x132\ngithub.com/caddyserver/caddy/v2/modules/caddyhttp.(*Server).ServeHTTP(0xc000787508, {0x1dbd8d0, 0xc0003bf780}, 0xc00063a8c0)\n\tgithub.com/caddyserver/caddy/[email protected]/modules/caddyhttp/server.go:445 +0x136c\ngithub.com/quic-go/quic-go/http3.(*Server).handleRequest.func2(0x1dc0470?, 0xc000342b90?, {0x1dafa80?, 0xc000787508?}, 0xc0003abf50?, 0x9?)\n\tgithub.com/quic-go/[email protected]/http3/server.go:690 +0x5f\ngithub.com/quic-go/quic-go/http3.(*Server).handleRequest(0xc00071d4a0, 0xc0001ff0a0, {0x1dce6b0, 0xc000207d40}, 0xc000342be0, 0xc00034f560)\n\tgithub.com/quic-go/[email protected]/http3/server.go:691 +0xac5\ngithub.com/quic-go/quic-go/http3.(*Server).handleConn.func1()\n\tgithub.com/quic-go/[email protected]/http3/server.go:578 +0x5b\ncreated by github.com/quic-go/quic-go/http3.(*Server).handleConn in goroutine 47\n\tgithub.com/quic-go/[email protected]/http3/server.go:574 +0x32d\n"
同样出错

环境:/usr/local/bin/caddy run --environ --config /etc/caddy/Caddyfile
caddy.HomeDir=/root
caddy.AppDataDir=/root/.local/share/caddy
caddy.AppConfigDir=/root/.config/caddy
caddy.ConfigAutosavePath=/root/.config/caddy/autosave.json
caddy.Version=v2.9.1 h1:OEYiZ7DbCzAWVb6TNEkjRcSCRGHVoZsJinoDR/n9oaY=
runtime.GOOS=linux
runtime.GOARCH=amd64
runtime.Compiler=gc
runtime.NumCPU=1
runtime.GOMAXPROCS=1
runtime.Version=go1.23.6
os.Getwd=/root

SHELL=/bin/bash
CHARSET=UTF-8
EDITOR=nano
PWD=/root
LOGNAME=root
HOME=/root
LANG=C.UTF-8
SSH_CONNECTION=
TERM=xterm
USER=root
SHLVL=1
PAGER=less
SSH_CLIENT=
LC_COLLATE=C
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
MAIL=/var/mail/root
SSH_TTY=/dev/pts/0
_=/usr/local/bin/caddy

@klzgrad
Copy link
Owner

klzgrad commented Feb 23, 2025

Caddy v2.9.1 h1:OEYiZ7DbCzAWVb6TNEkjRcSCRGHVoZsJinoDR/n9oaY=
naiveproxy v133
没有重现

@lxhao61
Copy link
Author

lxhao61 commented Feb 23, 2025

使用 QUIC 传输时在服务端使用 journalctl -u caddy --no-pager 命令查询。

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

3 participants