open-dingtalk / pierced

钉钉内网穿透
2.28k stars 758 forks source link

Mac OS Monterey 12.1 , #58

Open shi1234ww opened 2 years ago

shi1234ww commented 2 years ago

系统环境:Mac OS Monterey 12.1 步骤: cd mac_64 chmod 777 ./ding ./ding -config=./ding.cfg -subdomain=shi1234ww 8888

报错: fatal error: runtime: bsdthread_register error

runtime stack: runtime.throw(0x14bd408, 0x21) /usr/local/go/src/runtime/panic.go:619 +0x81 fp=0x7ff7bfeff5c8 sp=0x7ff7bfeff5a8 pc=0x102a911 runtime.goenvs() /usr/local/go/src/runtime/os_darwin.go:129 +0x83 fp=0x7ff7bfeff5f8 sp=0x7ff7bfeff5c8 pc=0x1028493 runtime.schedinit() /usr/local/go/src/runtime/proc.go:496 +0xa4 fp=0x7ff7bfeff650 sp=0x7ff7bfeff5f8 pc=0x102d1d4 runtime.rt0_go(0x7ff7bfeff680, 0x4, 0x7ff7bfeff680, 0x1000000, 0x4, 0x7ff7bfeff848, 0x7ff7bfeff84f, 0x7ff7bfeff862, 0x7ff7bfeff877, 0x0, ...) /usr/local/go/src/runtime/asm_amd64.s:252 +0x1f4 fp=0x7ff7bfeff658 sp=0x7ff7bfeff650 pc=0x10540d4

大佬们是不是没有适配最新的Mac OS Monterey 12.1 , 能适配一下吗?

beginor commented 2 years ago

同样的错误, macOS Monterey Version 12.2.1

./ding --config .ding.cfg --subdomain=abcde 8080

fatal error: runtime: bsdthread_register error

runtime stack:
runtime.throw(0x14bd408, 0x21)
    /usr/local/go/src/runtime/panic.go:619 +0x81 fp=0x7ff7bfeff618 sp=0x7ff7bfeff5f8 pc=0x102a911
runtime.goenvs()
    /usr/local/go/src/runtime/os_darwin.go:129 +0x83 fp=0x7ff7bfeff648 sp=0x7ff7bfeff618 pc=0x1028493
runtime.schedinit()
    /usr/local/go/src/runtime/proc.go:496 +0xa4 fp=0x7ff7bfeff6a0 sp=0x7ff7bfeff648 pc=0x102d1d4
runtime.rt0_go(0x7ff7bfeff6d8, 0x5, 0x7ff7bfeff6d8, 0x0, 0x1000000, 0x5, 0x7ff7bfeff850, 0x7ff7bfeff857, 0x7ff7bfeff860, 0x7ff7bfeff86a, ...)
    /usr/local/go/src/runtime/asm_amd64.s:252 +0x1f4 fp=0x7ff7bfeff6a8 sp=0x7ff7bfeff6a0 pc=0x10540d4
beginor commented 2 years ago

已经在这个推送请求中解决了 https://github.com/open-dingtalk/pierced/pull/55