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] alpha-7ee6809 运行时崩溃 #908

Closed
5 of 6 tasks
gg4924 opened this issue Dec 13, 2023 · 1 comment
Closed
5 of 6 tasks

[Bug] alpha-7ee6809 运行时崩溃 #908

gg4924 opened this issue Dec 13, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@gg4924
Copy link

gg4924 commented Dec 13, 2023

Verify steps

  • 确保你使用的是本仓库最新的的 mihomo 或 mihomo Alpha 版本 Ensure you are using the latest version of Mihomo or Mihomo Alpha from this repository.
  • 如果你可以自己 debug 并解决的话,提交 PR 吧 Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome.
  • 我已经在 Issue Tracker 中找过我要提出的问题 I have searched on the issue tracker for a related issue.
  • 我已经使用 Alpha 分支版本测试过,问题依旧存在 I have tested using the dev branch, and the issue still exists.
  • 我已经仔细看过 Documentation 并无法自行解决问题 I have read the documentation and was unable to solve the issue.
  • 这是 Mihomo 核心的问题,并非我所使用的 Mihomo 衍生版本(如 OpenMihomo、KoolMihomo 等)的特定问题 This is an issue of the Mihomo core per se, not to the derivatives of Mihomo, like OpenMihomo or KoolMihomo.

Mihomo version

Mihomo Meta alpha-7ee6809 windows amd64 with go1.21.5 Tue Dec 12 16:14:24 UTC 2023 Use tags: with_gvisor

What OS are you seeing the problem on?

Windows

Mihomo config

allow-lan: false
bind-address: "*"
find-process-mode: strict
mode: rule
geodata-mode: true
geodata-loader: standard
global-ua: clash.meta
geox-url:
  geoip: "https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geoip.dat"
  geosite: "https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geosite.dat"
  mmdb: "https://fastly.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geoip.metadb"
log-level: error
ipv6: true
global-client-fingerprint: chrome
keep-alive-interval: 15
tun:
  enable: true
  stack: mixed
  auto-detect-interface: true
  auto-route: true
  endpoint-independent-nat: true

Mihomo log

panic: runtime error: slice bounds out of range [:3] with capacity 1

goroutine 3350 [running]:
github.com/metacubex/mihomo/component/process.convertDOSPath({0xf97433, 0x7})
github.com/metacubex/mihomo/component/process/process_windows.go:246 +0x272
github.com/metacubex/mihomo/component/process.findProcessName({0xf95486, 0x0?}, {{0x0?, 0xc001c0db00?}, 0xc000114048?}, 0x89)
github.com/metacubex/mihomo/component/process/process_windows.go:109 +0x196
github.com/metacubex/mihomo/component/process.FindProcessName(...)
github.com/metacubex/mihomo/component/process/process.go:20
github.com/metacubex/mihomo/tunnel.match(0xc001a9b900)
github.com/metacubex/mihomo/tunnel/tunnel.go:624 +0x385
github.com/metacubex/mihomo/tunnel.resolveMetadata(0x19d856?)
github.com/metacubex/mihomo/tunnel/tunnel.go:297 +0x71
github.com/metacubex/mihomo/tunnel.handleUDPConn.func2()
github.com/metacubex/mihomo/tunnel/tunnel.go:378 +0x155
created by github.com/metacubex/mihomo/tunnel.handleUDPConn in goroutine 8
github.com/metacubex/mihomo/tunnel/tunnel.go:362 +0x3ac

Description

其他版本没问题。

@wwqgtxx
Copy link
Collaborator

wwqgtxx commented Dec 14, 2023

fixed in 0ab73a9

@wwqgtxx wwqgtxx closed this as completed Dec 14, 2023
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