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

TUN mode failure #192

Open
john19820 opened this issue Jul 23, 2024 · 0 comments
Open

TUN mode failure #192

john19820 opened this issue Jul 23, 2024 · 0 comments

Comments

@john19820
Copy link

goroutine 1 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:24 +0x5e
runtime/debug.PrintStack()
runtime/debug/stack.go:16 +0x13
github.com/sagernet/.(*Box).Start.func1()
github.com/sagernet//box.go:244 +0x12c
panic({0x1d5d5c0?, 0x2daf9e0?})
runtime/panic.go:770 +0x132
github.com/sagernet/gvisor/pkg/tcpip/link/channel.(*Endpoint).Attach(0x0, {0x0, 0x0})
github.com/sagernet/gvisor@v0.0.0-20240428053021-e691de28565f/pkg/tcpip/link/channel/channel.go:209 +0x2d
github.com/sagernet/sing-tun.(*Mixed).Close(0xc0002109c0)
github.com/sagernet/sing-tun@v0.3.2/stack_mixed.go:263 +0x27
github.com/sagernet/sing/common.Close({0xc000025520?, 0xc000025540?, 0xd2549a?})
github.com/sagernet/sing@v0.4.1/common/cond.go:351 +0x15b
github.com/sagernet//inbound.(*Tun).Close(0x1f91ba1?)
github.com/sagernet//inbound/tun.go:203 +0x6e
github.com/sagernet/.(*Box).Close(0xc0006c9220)
github.com/sagernet//box.go:363 +0x5b4
github.com/sagernet/.(*Box).Start(0xc0006c9220)
github.com/sagernet//box.go:248 +0xd0
main.create()
github.com/sagernet//cmd//cmd_run.go:160 +0x4d2
main.run()
github.com/sagernet//cmd//cmd_run.go:174 +0x10c
main.init.func25(0xc0001d3b00?, {0x1f920a4?, 0x4?, 0x1f920a8?})
github.com/sagernet//cmd//cmd_run.go:30 +0x17
github.com/spf13/cobra.(*Command).execute(0x2dec8c0, {0xc000105580, 0x2, 0x2})
github.com/spf13/cobra@v1.8.0/command.go:987 +0xab1
github.com/spf13/cobra.(*Command).ExecuteC(0x2decba0)
github.com/spf13/cobra@v1.8.0/command.go:1115 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra@v1.8.0/command.go:1039
main.main()
github.com/sagernet//cmd//karing.go:43 +0x1e
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: panic on early close: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x12ad20d]

goroutine 1 [running]:
github.com/sagernet/.(*Box).Start.func1()
github.com/sagernet//box.go:245 +0x185
panic({0x1d5d5c0?, 0x2daf9e0?})
runtime/panic.go:770 +0x132
github.com/sagernet/gvisor/pkg/tcpip/link/channel.(*Endpoint).Attach(0x0, {0x0, 0x0})
github.com/sagernet/gvisor@v0.0.0-20240428053021-e691de28565f/pkg/tcpip/link/channel/channel.go:209 +0x2d
github.com/sagernet/sing-tun.(*Mixed).Close(0xc0002109c0)
github.com/sagernet/sing-tun@v0.3.2/stack_mixed.go:263 +0x27
({0xc000025520?, 0xc000025540?, 0xd2549a?})
github.com/sagernet/sing@v0.4.1/common/cond.go:351 +0x15b
github.com/sagernet//inbound.(*Tun).Close(0x1f91ba1?)
github.com/sagernet//inbound/tun.go:203 +0x6e
github.com/sagernet/.(*Box).Close(0xc0006c9220)
github.com/sagernet//box.go:363 +0x5b4
github.com/sagernet/.(*Box).Start(0xc0006c9220)
github.com/sagernet//box.go:248 +0xd0
main.create()
github.com/sagernet//cmd//cmd_run.go:160 +0x4d2
main.run()
github.com/sagernet//cmd//cmd_run.go:174 +0x10c
main.init.func25(0xc0001d3b00?, {0x1f920a4?, 0x4?, 0x1f920a8?})
github.com/sagernet//cmd//cmd_run.go:30 +0x17
github.com/spf13/cobra.(*Command).execute(0x2dec8c0, {0xc000105580, 0x2, 0x2})
github.com/spf13/cobra@v1.8.0/command.go:987 +0xab1
(0x2decba0)
github.com/spf13/cobra@v1.8.0/command.go:1115 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra@v1.8.0/command.go:1039
main.main()
github.com/sagernet//cmd//karing.go:43 +0x1e

[31mFATAL [0m[0001] export.go:51 : start service: initialize inbound/tun[tun_in]: fix windows firewall for system stack: Failed to get CurrentProfiles: 发生意外。 ()
2024/07/23 16:07:05 [31mFATAL [0m[0001] export.go:51 : start service: initialize inbound/tun[tun_in]: fix windows firewall for system stack: Failed to get CurrentProfiles: 发生意外。 ()

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