daeuniverse/dae

[Bug Report] Program crashes after running for a while

Closed this issue · 9 comments

Checks

  • I have searched the existing issues
  • I have read the documentation
  • Is it your first time sumbitting an issue

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

  • Dae version (use dae --version): 0.9.0rc1
  • OS (e.g cat /etc/os-release): ImmortalWrt SNAPSHOT r32098-f6d00e7c0d
  • Kernel (e.g. uname -a): Linux ImmortalWrt 6.6.56 #0 SMP Sat Oct 19 07:13:05 2024 aarch64 GNU/Linux
  • Others: Config
  • Arch: ARMv8 Processor rev 4

Anything else?

No response

Thanks for opening this issue!

这个是从 releases 里拿的吗

是的

Related #685. 据报告 0.8.0 无此问题

@TnZzZHlp 有空可以帮忙二分一下是0.8.0到0.9.0rc1中间哪个commit出的问题吗?非常感谢

@TnZzZHlp 有空可以帮忙二分一下是0.8.0到0.9.0rc1中间哪个commit出的问题吗?非常感谢

好的,不过这个崩溃太随机了,我这两天不在家但是也没崩溃,我尽力吧

@mzz2017
应该是 #649 这个引入的BUG,前面的使用超过一天都没有panic,这个半天就panic了,麻烦大佬看看什么问题了❤️,如果需要我可以提供环境

#666 这个也panic了,我再试试前面的

基本可以确定是 #666 导致的panic了,前一个commit稳定运行两天了,但是我看了下这个commit也没什么大的更改🥲
又panic了,我再测测

这个bug应该可以确定 #580 引入的,前一个commit稳定运行超过一周了
#682 也panic了,我觉得这个bug有点超出预期了🥲二进制都是action里面拿的