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

[Bug Report] crash with IsSniffingError #735

Open
2 of 3 tasks
oluceps opened this issue Jan 14, 2025 · 1 comment
Open
2 of 3 tasks

[Bug Report] crash with IsSniffingError #735

oluceps opened this issue Jan 14, 2025 · 1 comment

Comments

@oluceps
Copy link

oluceps commented Jan 14, 2025

Checks

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

Current Behavior

Similar issue #685 #693

dae crashed after running for a while (days)

ip="116.203.17.170:443" mac="3c:3c:3f:21:49:80" network=tcp4 outbound=all pid=0 pname=conduwuit policy=min_avg10 sniffed=matrix.sabix.de
Jan 14 20:37:41 hastur dae[1664]: level=warning msg="handleConn: handleTCP relay error: writeto tcp 127.0.0.1:35916->127.0.0.1:1092: read tcp 127.0.0.1:35916->127.0.0.1:1092: read: transport endpoint is not connected"
Jan 14 20:37:41 hastur dae[1664]: level=warning msg="handleConn: handleTCP relay error: writeto tcp 127.0.0.1:36382->127.0.0.1:1092: read tcp 127.0.0.1:36382->127.0.0.1:1092: read: broken pipe"
Jan 14 20:37:41 hastur dae[1664]: panic: runtime error: invalid memory address or nil pointer dereference
Jan 14 20:37:41 hastur dae[1664]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x544560]
Jan 14 20:37:41 hastur dae[1664]: goroutine 26406972 [running]:
Jan 14 20:37:41 hastur dae[1664]: fmt.(*wrapErrors).Unwrap(0x0?)
Jan 14 20:37:41 hastur dae[1664]:         fmt/errors.go:77
Jan 14 20:37:41 hastur dae[1664]: errors.is({0x147efc0?, 0x0?}, {0x147e400, 0xc000228f60}, 0x1)
Jan 14 20:37:41 hastur dae[1664]:         errors/wrap.go:68 +0x23b
Jan 14 20:37:41 hastur dae[1664]: errors.is({0x147efc0?, 0xc00b2006f0?}, {0x147e400, 0xc000228f60}, 0x1)
Jan 14 20:37:41 hastur dae[1664]:         errors/wrap.go:69 +0x27b
Jan 14 20:37:41 hastur dae[1664]: errors.Is({0x147efc0, 0xc00b2006f0}, {0x147e400, 0xc000228f60})
Jan 14 20:37:41 hastur dae[1664]:         errors/wrap.go:50 +0x96
Jan 14 20:37:41 hastur dae[1664]: github.com/daeuniverse/dae/component/sniffing.IsSniffingError(...)
Jan 14 20:37:41 hastur dae[1664]:         github.com/daeuniverse/dae/component/sniffing/sniffing.go:23
Jan 14 20:37:41 hastur dae[1664]: github.com/daeuniverse/dae/control.(*ControlPlane).handleConn(0xc005df6120, {0x1492a98, 0xc0017a40b8})
Jan 14 20:37:41 hastur dae[1664]:         github.com/daeuniverse/dae/control/tcp.go:34 +0x1e6
Jan 14 20:37:41 hastur dae[1664]: github.com/daeuniverse/dae/control.(*ControlPlane).Serve.func4.1({0x1492a98, 0xc0017a40b8})
Jan 14 20:37:41 hastur dae[1664]:         github.com/daeuniverse/dae/control/control_plane.go:789 +0xd7
Jan 14 20:37:41 hastur dae[1664]: created by github.com/daeuniverse/dae/control.(*ControlPlane).Serve.func4 in goroutine 5490745
Jan 14 20:37:41 hastur dae[1664]:         github.com/daeuniverse/dae/control/control_plane.go:786 +0x45
Jan 14 20:37:41 hastur systemd[1]: dae.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jan 14 20:37:41 hastur systemd[1]: dae.service: Failed with result 'exit-code'.
Jan 14 20:37:41 hastur systemd[1]: dae.service: Consumed 1h 12min 30.881s CPU time, 374M memory peak, 4.5M memory swap peak, 102.1M read from disk, 15.8M written to disk, 42.8G incoming IP traffic, 13.5G outgoing IP traffic.

Expected Behavior

Not Crash

Steps to Reproduce

Related config

nodes are all socks5 protocol.

Environment

  • dae version: 7755968
  • system: "x86_64-linux"
  • host os: Linux 6.12.8-cachyos, NixOS, 25.05 (Warbler), 25.05.20250102.3da6bd3
  • multi-user?: yes
  • sandbox: yes
  • version: `nix-env (Lix, like Nix) 2.92.0-dev-pre20241230-5c7ea4f

Anything else?

All connections that not direct could not be built after it panicked.

No response

@dae-prow
Copy link
Contributor

dae-prow bot commented Jan 14, 2025

Thanks for opening this issue!

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

1 participant