daeuniverse / dae

eBPF-based Linux high-performance transparent proxy solution.
GNU Affero General Public License v3.0
3.25k stars 202 forks source link

[Bug Report] Program crashes after running for a while #693

Open TnZzZHlp opened 2 days ago

TnZzZHlp commented 2 days ago

Checks

Current Behavior

time="Nov 04 08:18:01" level=warning msg="handlePkt: failed to GetOrCreate: failed to select dialer from group proxy (udp4, dns?:false,from: 192.168.3.6:36570): no alive dialer"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x143de0]

goroutine 276432 [running]:
fmt.(*wrapErrors).Unwrap(0x0?)
        fmt/errors.go:77
errors.is({0xf85980?, 0x0?}, {0xf84dc0, 0x4000044290}, 0x1)
        errors/wrap.go:68 +0x220
errors.is({0xf85980?, 0x4005a08780?}, {0xf84dc0, 0x4000044290}, 0x1)
        errors/wrap.go:69 +0x260
errors.Is({0xf85980, 0x4005a08780}, {0xf84dc0, 0x4000044290})
        errors/wrap.go:50 +0x98
github.com/daeuniverse/dae/component/sniffing.IsSniffingError(...)
        github.com/daeuniverse/dae/component/sniffing/sniffing.go:23
github.com/daeuniverse/dae/control.(*ControlPlane).handleConn(0x40001ee5a0, {0xf99398, 0x4005e4c9f0})
        github.com/daeuniverse/dae/control/tcp.go:34 +0x168
github.com/daeuniverse/dae/control.(*ControlPlane).Serve.func4.1({0xf99398, 0x4005e4c9f0})
        github.com/daeuniverse/dae/control/control_plane.go:789 +0xc0
created by github.com/daeuniverse/dae/control.(*ControlPlane).Serve.func4 in goroutine 10
        github.com/daeuniverse/dae/control/control_plane.go:786 +0x44

Expected Behavior

No response

Steps to Reproduce

After running for a while, it crashes.

Environment

Anything else?

No response

dae-prow[bot] commented 2 days ago

Thanks for opening this issue!

mzz2017 commented 2 days ago

这个是从 releases 里拿的吗

TnZzZHlp commented 2 days ago

是的