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

MacOS run ./hmy panic on Go 1.17 #269

Closed
cylim opened this issue Sep 24, 2021 · 0 comments · Fixed by #270
Closed

MacOS run ./hmy panic on Go 1.17 #269

cylim opened this issue Sep 24, 2021 · 0 comments · Fixed by #270

Comments

@cylim
Copy link

cylim commented Sep 24, 2021

related: fatih/color#147

I am creating this issue for the upcoming PR references.

Error log

➜  go-sdk git:(master) ./hmy
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0xb01dfacedebac1e pc=0x7fff204adc9e]

runtime stack:
runtime: unexpected return pc for runtime.sigpanic called from 0x7fff204adc9e
stack: frame={sp:0x7ffeefbff258, fp:0x7ffeefbff2a8} stack=[0x7ffeefb80308,0x7ffeefbff360)
0x00007ffeefbff158:  0x01007ffeefbff178  0x0000000000000004
0x00007ffeefbff168:  0x000000000000001f  0x00007fff204adc9e
0x00007ffeefbff178:  0x0b01dfacedebac1e  0x0000000000000001
0x00007ffeefbff188:  0x0000000004038f51 <runtime.throw+0x0000000000000071>  0x00007ffeefbff228
0x00007ffeefbff198:  0x0000000004901e1c  0x00007ffeefbff1e0
0x00007ffeefbff1a8:  0x0000000004039208 <runtime.fatalthrow.func1+0x0000000000000048>  0x00000000052c8460
0x00007ffeefbff1b8:  0x0000000000000001  0x0000000000000001
0x00007ffeefbff1c8:  0x00007ffeefbff228  0x0000000004038f51 <runtime.throw+0x0000000000000071>
0x00007ffeefbff1d8:  0x00000000052c8460  0x00007ffeefbff218
0x00007ffeefbff1e8:  0x0000000004039190 <runtime.fatalthrow+0x0000000000000050>  0x00007ffeefbff1f8
0x00007ffeefbff1f8:  0x00000000040391c0 <runtime.fatalthrow.func1+0x0000000000000000>  0x00000000052c8460
0x00007ffeefbff208:  0x0000000004038f51 <runtime.throw+0x0000000000000071>  0x00007ffeefbff228
0x00007ffeefbff218:  0x00007ffeefbff248  0x0000000004038f51 <runtime.throw+0x0000000000000071>
0x00007ffeefbff228:  0x00007ffeefbff230  0x0000000004038f80 <runtime.throw.func1+0x0000000000000000>
0x00007ffeefbff238:  0x00000000049255b3  0x000000000000002a
0x00007ffeefbff248:  0x00007ffeefbff298  0x000000000404ec56 <runtime.sigpanic+0x0000000000000396>
0x00007ffeefbff258: <0x00000000049255b3  0x00000000052c8460
0x00007ffeefbff268:  0x00007ffeefbff2d8  0x000000000402a366 <runtime.(*mheap).allocSpan+0x0000000000000546>
0x00007ffeefbff278:  0x000000c00029c000  0x0000000000002000
0x00007ffeefbff288:  0x000000c000000008  0x00000000040d2540 <internal/syscall/unix.libc_getentropy_trampoline+0x0000000000000000>
0x00007ffeefbff298:  0x00007ffeefbff2e0 !0x00007fff204adc9e
0x00007ffeefbff2a8: >0x00007ffeefbff2e0  0x00000000050bc000
0x00007ffeefbff2b8:  0x0000000000000dd2  0x00000000041eefe5 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005>
0x00007ffeefbff2c8:  0x000000000406c0bf <runtime.syscall+0x000000000000001f>  0x000000c000119848
0x00007ffeefbff2d8:  0x00007ffeefbff320  0x000000c000119818
0x00007ffeefbff2e8:  0x0000000004069f30 <runtime.asmcgocall+0x0000000000000070>  0x0000000000000001
0x00007ffeefbff2f8:  0x0000000004010a00 <runtime.mallocgc+0x0000000000000180>  0x0a00000000001018
0x00007ffeefbff308:  0x00000000040300a5 <runtime.mProf_Malloc.func1+0x0000000000000025>  0x0000000005317518
0x00007ffeefbff318:  0x0000000000000810  0x000000c0000001a0
0x00007ffeefbff328:  0x0000000004068049 <runtime.systemstack+0x0000000000000049>  0x0000000000000004
0x00007ffeefbff338:  0x0000000004b8d4f8  0x00000000052c8460
0x00007ffeefbff348:  0x00007ffeefbff390  0x0000000004067f45 <runtime.mstart+0x0000000000000005>
0x00007ffeefbff358:  0x0000000004067efd <runtime.rt0_go+0x000000000000013d>
runtime.throw({0x49255b3, 0x52c8460})
	/usr/local/Cellar/go/1.17.1/libexec/src/runtime/panic.go:1198 +0x71
runtime: unexpected return pc for runtime.sigpanic called from 0x7fff204adc9e
stack: frame={sp:0x7ffeefbff258, fp:0x7ffeefbff2a8} stack=[0x7ffeefb80308,0x7ffeefbff360)
0x00007ffeefbff158:  0x01007ffeefbff178  0x0000000000000004
0x00007ffeefbff168:  0x000000000000001f  0x00007fff204adc9e
0x00007ffeefbff178:  0x0b01dfacedebac1e  0x0000000000000001
0x00007ffeefbff188:  0x0000000004038f51 <runtime.throw+0x0000000000000071>  0x00007ffeefbff228
0x00007ffeefbff198:  0x0000000004901e1c  0x00007ffeefbff1e0
0x00007ffeefbff1a8:  0x0000000004039208 <runtime.fatalthrow.func1+0x0000000000000048>  0x00000000052c8460
0x00007ffeefbff1b8:  0x0000000000000001  0x0000000000000001
0x00007ffeefbff1c8:  0x00007ffeefbff228  0x0000000004038f51 <runtime.throw+0x0000000000000071>
0x00007ffeefbff1d8:  0x00000000052c8460  0x00007ffeefbff218
0x00007ffeefbff1e8:  0x0000000004039190 <runtime.fatalthrow+0x0000000000000050>  0x00007ffeefbff1f8
0x00007ffeefbff1f8:  0x00000000040391c0 <runtime.fatalthrow.func1+0x0000000000000000>  0x00000000052c8460
0x00007ffeefbff208:  0x0000000004038f51 <runtime.throw+0x0000000000000071>  0x00007ffeefbff228
0x00007ffeefbff218:  0x00007ffeefbff248  0x0000000004038f51 <runtime.throw+0x0000000000000071>
0x00007ffeefbff228:  0x00007ffeefbff230  0x0000000004038f80 <runtime.throw.func1+0x0000000000000000>
0x00007ffeefbff238:  0x00000000049255b3  0x000000000000002a
0x00007ffeefbff248:  0x00007ffeefbff298  0x000000000404ec56 <runtime.sigpanic+0x0000000000000396>
0x00007ffeefbff258: <0x00000000049255b3  0x00000000052c8460
0x00007ffeefbff268:  0x00007ffeefbff2d8  0x000000000402a366 <runtime.(*mheap).allocSpan+0x0000000000000546>
0x00007ffeefbff278:  0x000000c00029c000  0x0000000000002000
0x00007ffeefbff288:  0x000000c000000008  0x00000000040d2540 <internal/syscall/unix.libc_getentropy_trampoline+0x0000000000000000>
0x00007ffeefbff298:  0x00007ffeefbff2e0 !0x00007fff204adc9e
0x00007ffeefbff2a8: >0x00007ffeefbff2e0  0x00000000050bc000
0x00007ffeefbff2b8:  0x0000000000000dd2  0x00000000041eefe5 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005>
0x00007ffeefbff2c8:  0x000000000406c0bf <runtime.syscall+0x000000000000001f>  0x000000c000119848
0x00007ffeefbff2d8:  0x00007ffeefbff320  0x000000c000119818
0x00007ffeefbff2e8:  0x0000000004069f30 <runtime.asmcgocall+0x0000000000000070>  0x0000000000000001
0x00007ffeefbff2f8:  0x0000000004010a00 <runtime.mallocgc+0x0000000000000180>  0x0a00000000001018
0x00007ffeefbff308:  0x00000000040300a5 <runtime.mProf_Malloc.func1+0x0000000000000025>  0x0000000005317518
0x00007ffeefbff318:  0x0000000000000810  0x000000c0000001a0
0x00007ffeefbff328:  0x0000000004068049 <runtime.systemstack+0x0000000000000049>  0x0000000000000004
0x00007ffeefbff338:  0x0000000004b8d4f8  0x00000000052c8460
0x00007ffeefbff348:  0x00007ffeefbff390  0x0000000004067f45 <runtime.mstart+0x0000000000000005>
0x00007ffeefbff358:  0x0000000004067efd <runtime.rt0_go+0x000000000000013d>
runtime.sigpanic()
	/usr/local/Cellar/go/1.17.1/libexec/src/runtime/signal_unix.go:719 +0x396

goroutine 1 [syscall, locked to thread]:
syscall.syscall(0x41eefe0, 0x1, 0x40487413, 0xc0001198d8)
	/usr/local/Cellar/go/1.17.1/libexec/src/runtime/sys_darwin.go:22 +0x3b fp=0xc000119848 sp=0xc000119828 pc=0x4066b7b
syscall.syscall(0x40acd66, 0x4010f34, 0xc000119900, 0x40acc98)
	<autogenerated>:1 +0x26 fp=0xc000119890 sp=0xc000119848 pc=0x406c8c6
golang.org/x/sys/unix.ioctl(0x48ed5c3, 0x4, 0x1000000000000)
	/Users/cy/Desktop/hmy/pkg/mod/golang.org/x/sys@v0.0.0-20201015000850-e3ed0017c211/unix/zsyscall_darwin_amd64.go:731 +0x39 fp=0xc0001198c0 sp=0xc000119890 pc=0x41eeb39
golang.org/x/sys/unix.IoctlGetTermios(...)
	/Users/cy/Desktop/hmy/pkg/mod/golang.org/x/sys@v0.0.0-20201015000850-e3ed0017c211/unix/ioctl.go:72
github.com/mattn/go-isatty.IsTerminal(0x48ed5c3)
	/Users/cy/Desktop/hmy/pkg/mod/github.com/mattn/go-isatty@v0.0.12/isatty_bsd.go:10 +0x50 fp=0xc000119930 sp=0xc0001198c0 pc=0x46a9c10
github.com/fatih/color.init()
	/Users/cy/Desktop/hmy/pkg/mod/github.com/fatih/color@v1.9.0/color.go:21 +0x7a fp=0xc000119968 sp=0xc000119930 pc=0x46aabba
runtime.doInit(0x50c4ea0)
	/usr/local/Cellar/go/1.17.1/libexec/src/runtime/proc.go:6498 +0x123 fp=0xc000119aa0 sp=0xc000119968 pc=0x4048743
runtime.doInit(0x50c7440)
	/usr/local/Cellar/go/1.17.1/libexec/src/runtime/proc.go:6475 +0x71 fp=0xc000119bd8 sp=0xc000119aa0 pc=0x4048691
runtime.doInit(0x50cc9e0)
	/usr/local/Cellar/go/1.17.1/libexec/src/runtime/proc.go:6475 +0x71 fp=0xc000119d10 sp=0xc000119bd8 pc=0x4048691
runtime.doInit(0x50cfea0)
	/usr/local/Cellar/go/1.17.1/libexec/src/runtime/proc.go:6475 +0x71 fp=0xc000119e48 sp=0xc000119d10 pc=0x4048691
runtime.doInit(0x50c2ce0)
	/usr/local/Cellar/go/1.17.1/libexec/src/runtime/proc.go:6475 +0x71 fp=0xc000119f80 sp=0xc000119e48 pc=0x4048691
runtime.main()
	/usr/local/Cellar/go/1.17.1/libexec/src/runtime/proc.go:238 +0x1e6 fp=0xc000119fe0 sp=0xc000119f80 pc=0x403b5a6
runtime.goexit()
	/usr/local/Cellar/go/1.17.1/libexec/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc000119fe8 sp=0xc000119fe0 pc=0x406a221

goroutine 21 [chan receive]:
github.com/rjeczalik/notify.(*recursiveTree).dispatch(0xc0000ac4b0)
	/Users/cy/Desktop/hmy/pkg/mod/github.com/rjeczalik/notify@v0.9.2/tree_recursive.go:125 +0x4d
created by github.com/rjeczalik/notify.newRecursiveTree
	/Users/cy/Desktop/hmy/pkg/mod/github.com/rjeczalik/notify@v0.9.2/tree_recursive.go:119 +0x15b

goroutine 22 [syscall, locked to thread]:
github.com/rjeczalik/notify._Cfunc_CFRunLoopRun()
	_cgo_gotypes.go:229 +0x45
github.com/rjeczalik/notify.init.1.func1()
	/Users/cy/Desktop/hmy/pkg/mod/github.com/rjeczalik/notify@v0.9.2/watcher_fsevents_cgo.go:72 +0x45
created by github.com/rjeczalik/notify.init.1
	/Users/cy/Desktop/hmy/pkg/mod/github.com/rjeczalik/notify@v0.9.2/watcher_fsevents_cgo.go:64 +0x33

goroutine 23 [sleep]:
time.Sleep(0x3b9aca00)
	/usr/local/Cellar/go/1.17.1/libexec/src/runtime/time.go:193 +0x12e
github.com/valyala/fasthttp.init.0.func1()
	/Users/cy/Desktop/hmy/pkg/mod/github.com/valyala/fasthttp@v1.2.0/header.go:1443 +0x1e
created by github.com/valyala/fasthttp.init.0
	/Users/cy/Desktop/hmy/pkg/mod/github.com/valyala/fasthttp@v1.2.0/header.go:1441 +0x27
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

Successfully merging a pull request may close this issue.

1 participant