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]: 7.0.5 下,Tun 功能完全失效[出现运行异常] #5971

Closed
2 tasks done
zeng-github01 opened this issue Nov 2, 2024 · 1 comment
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@zeng-github01
Copy link

预期情况

正常运行

实际情况

尝试使用内建Tun 功能时,下方日志输出出现疑似程序异常输出。
看起来是配置文件解析异常
疑似版本6到7的迁移错误

复现方法

从6.60更新至7.0.5[程序内在线更新]

日志信息

panic: invalid deprecated note: tun-address-x
goroutine 1 [running]:
github.com/sagernet/sing-box/experimental/deprecated.Note.Impending({{0x16b3bef, 0xd}, {0x16c4659, 0x19}, {0x16adb6d, 0x6}, {0x16adb79, 0x6}, {0x0, 0x0}, ...})
github.com/sagernet/sing-box/experimental/deprecated/constants.go:28 +0x179
github.com/sagernet/sing-box/experimental/deprecated.(*envManager).ReportDeprecated(0xc000188460, {{0x16b3bef, 0xd}, {0x16c4659, 0x19}, {0x16adb6d, 0x6}, {0x16adb79, 0x6}, {0x0, ...}, ...})
github.com/sagernet/sing-box/experimental/deprecated/env.go:19 +0x58
github.com/sagernet/sing-box/experimental/deprecated.Report({0x18c33d0?, 0xc0001f3090?}, {{0x16b3bef, 0xd}, {0x16c4659, 0x19}, {0x16adb6d, 0x6}, {0x16adb79, 0x6}, ...})
github.com/sagernet/sing-box/experimental/deprecated/manager.go:18 +0x59
github.com/sagernet/sing-box/inbound.NewTun({_, }, {, }, {, }, {, }, {{0xc0002e4b70, 0xb}, ...}, ...)
github.com/sagernet/sing-box/inbound/tun.go:119 +0x11d8
github.com/sagernet/sing-box/inbound.New({
, }, {, }, {, }, {, }, {{0xc0002c3d24, 0x3}, ...}, ...)
github.com/sagernet/sing-box/inbound/builder.go:20 +0x5a5
github.com/sagernet/sing-box.New({{{0xc0002b6000, 0x15c6, 0x1e00}, {0x0, 0x0}, 0xc0002c63f0, 0xc000194960, 0x0, {0xc0001d1808, 0x1, ...}, ...}, ...})
github.com/sagernet/sing-box/box.go:110 +0xa5e
main.create()
github.com/sagernet/sing-box/cmd/sing-box/cmd_run.go:137 +0x198
main.run()
github.com/sagernet/sing-box/cmd/sing-box/cmd_run.go:174 +0x105
main.init.func25(0xc000295a00?, {0x16acd7b?, 0x4?, 0x16acd7f?})
github.com/sagernet/sing-box/cmd/sing-box/cmd_run.go:30 +0x17
github.com/spf13/cobra.(*Command).execute(0x235a320, {0xc000298c60, 0x3, 0x3})
github.com/spf13/[email protected]/command.go:989 +0xa91
github.com/spf13/cobra.(*Command).ExecuteC(0x2355580)
github.com/spf13/[email protected]/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/[email protected]/command.go:1041
main.main()
github.com/sagernet/sing-box/cmd/sing-box/main.go:8 +0x1e
panic: invalid deprecated note: tun-address-x
goroutine 1 [running]:
github.com/sagernet/sing-box/experimental/deprecated.Note.Impending({{0x16b3bef, 0xd}, {0x16c4659, 0x19}, {0x16adb6d, 0x6}, {0x16adb79, 0x6}, {0x0, 0x0}, ...})
github.com/sagernet/sing-box/experimental/deprecated/constants.go:28 +0x179
github.com/sagernet/sing-box/experimental/deprecated.(*envManager).ReportDeprecated(0xc000188460, {{0x16b3bef, 0xd}, {0x16c4659, 0x19}, {0x16adb6d, 0x6}, {0x16adb79, 0x6}, {0x0, ...}, ...})
github.com/sagernet/sing-box/experimental/deprecated/env.go:19 +0x58
github.com/sagernet/sing-box/experimental/deprecated.Report({0x18c33d0?, 0xc0001f3090?}, {{0x16b3bef, 0xd}, {0x16c4659, 0x19}, {0x16adb6d, 0x6}, {0x16adb79, 0x6}, ...})
github.com/sagernet/sing-box/experimental/deprecated/manager.go:18 +0x59
github.com/sagernet/sing-box/inbound.NewTun({
, }, {, }, {, }, {, }, {{0xc0002e4b70, 0xb}, ...}, ...)
github.com/sagernet/sing-box/inbound/tun.go:119 +0x11d8
github.com/sagernet/sing-box/inbound.New({
, }, {, }, {, }, {, _}, {{0xc0002c3d24, 0x3}, ...}, ...)
github.com/sagernet/sing-box/inbound/builder.go:20 +0x5a5
github.com/sagernet/sing-box.New({{{0xc0002b6000, 0x15c6, 0x1e00}, {0x0, 0x0}, 0xc0002c63f0, 0xc000194960, 0x0, {0xc0001d1808, 0x1, ...}, ...}, ...})
github.com/sagernet/sing-box/box.go:110 +0xa5e
main.create()
github.com/sagernet/sing-box/cmd/sing-box/cmd_run.go:137 +0x198
main.run()
github.com/sagernet/sing-box/cmd/sing-box/cmd_run.go:174 +0x105
main.init.func25(0xc000295a00?, {0x16acd7b?, 0x4?, 0x16acd7f?})
github.com/sagernet/sing-box/cmd/sing-box/cmd_run.go:30 +0x17
github.com/spf13/cobra.(*Command).execute(0x235a320, {0xc000298c60, 0x3, 0x3})
github.com/spf13/[email protected]/command.go:989 +0xa91
github.com/spf13/cobra.(*Command).ExecuteC(0x2355580)
github.com/spf13/[email protected]/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/[email protected]/command.go:1041
main.main()
github.com/sagernet/sing-box/cmd/sing-box/main.go:8 +0x1e

额外信息

No response

我确认已更新至最新版本

我确认已查询历史issues

@zeng-github01 zeng-github01 added the bug Something isn't working label Nov 2, 2024
@2dust
Copy link
Owner

2dust commented Nov 2, 2024

#5950

把sing-box降级到正式版,不要用测试版

@zeng-github01 zeng-github01 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants