climech / grit

Multitree-based personal task manager
MIT License
1.67k stars 48 forks source link

all commands panic on mac #35

Open camhashemi opened 2 years ago

camhashemi commented 2 years ago

I've install using make && make install, and I have go 1.17 + gcc. here's the panic:

$ grit                                                                                                                                                                                          [8:53:27]
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0xb01dfacedebac1e pc=0x7fff205d7cbe]

runtime stack:
runtime: unexpected return pc for runtime.sigpanic called from 0x7fff205d7cbe
stack: frame={sp:0x7ffeefbff5b8, fp:0x7ffeefbff608} stack=[0x7ffeefb80658,0x7ffeefbff6c0)
0x00007ffeefbff4b8:  0x01007ffeefbff4d8  0x0000000000000004
0x00007ffeefbff4c8:  0x000000000000001f  0x00007fff205d7cbe
0x00007ffeefbff4d8:  0x0b01dfacedebac1e  0x0000000000000001
0x00007ffeefbff4e8:  0x0000000004034df1 <runtime.throw+0x0000000000000071>  0x00007ffeefbff588
0x00007ffeefbff4f8:  0x000000000428e7af  0x00007ffeefbff540
0x00007ffeefbff508:  0x00000000040350a8 <runtime.fatalthrow.func1+0x0000000000000048>  0x00000000043c8e00
0x00007ffeefbff518:  0x0000000000000001  0x0000000000000001
0x00007ffeefbff528:  0x00007ffeefbff588  0x0000000004034df1 <runtime.throw+0x0000000000000071>
0x00007ffeefbff538:  0x00000000043c8e00  0x00007ffeefbff578
0x00007ffeefbff548:  0x0000000004035030 <runtime.fatalthrow+0x0000000000000050>  0x00007ffeefbff558
0x00007ffeefbff558:  0x0000000004035060 <runtime.fatalthrow.func1+0x0000000000000000>  0x00000000043c8e00
0x00007ffeefbff568:  0x0000000004034df1 <runtime.throw+0x0000000000000071>  0x00007ffeefbff588
0x00007ffeefbff578:  0x00007ffeefbff5a8  0x0000000004034df1 <runtime.throw+0x0000000000000071>
0x00007ffeefbff588:  0x00007ffeefbff590  0x0000000004034e20 <runtime.throw.func1+0x0000000000000000>
0x00007ffeefbff598:  0x0000000004291700  0x000000000000002a
0x00007ffeefbff5a8:  0x00007ffeefbff5f8  0x000000000404a3f6 <runtime.sigpanic+0x0000000000000396>
0x00007ffeefbff5b8: <0x0000000004291700  0x000000000401a8e5 <runtime.(*fixalloc).alloc+0x0000000000000085>
0x00007ffeefbff5c8:  0x00007ffeefbff638  0x00000000040280a6 <runtime.(*mheap).allocSpan+0x0000000000000546>
0x00007ffeefbff5d8:  0x000000c000110000  0x0000000000002000
0x00007ffeefbff5e8:  0x000000c000000008  0x000000000409f440 <syscall.libc_stat64_trampoline+0x0000000000000000>
0x00007ffeefbff5f8:  0x00007ffeefbff640 !0x00007fff205d7cbe
0x00007ffeefbff608: >0x00007ffeefbff640  0x00000000043a8000
0x00007ffeefbff618:  0x00000000000002b2  0x0000000004112205 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005>
0x00007ffeefbff628:  0x0000000004065c3f <runtime.syscall+0x000000000000001f>  0x000000c000051848
0x00007ffeefbff638:  0x00007ffeefbff680  0x000000c000051818
0x00007ffeefbff648:  0x0000000004063ad0 <runtime.asmcgocall+0x0000000000000070>  0x0000000000000001
0x00007ffeefbff658:  0x000000c000062600  0x2600000004294fd0
0x00007ffeefbff668:  0x0000000000000010  0x0000000004268160
0x00007ffeefbff678:  0x0000000000000810  0x000000c0000001a0
0x00007ffeefbff688:  0x0000000004061be9 <runtime.systemstack+0x0000000000000049>  0x0000000000000004
0x00007ffeefbff698:  0x00000000042bb278  0x00000000043c8e00
0x00007ffeefbff6a8:  0x00007ffeefbff6f0  0x0000000004061ae5 <runtime.mstart+0x0000000000000005>
0x00007ffeefbff6b8:  0x0000000004061a9d <runtime.rt0_go+0x000000000000013d>
runtime.throw({0x4291700, 0x401a8e5})
    /usr/local/Cellar/go/1.17/libexec/src/runtime/panic.go:1198 +0x71
runtime: unexpected return pc for runtime.sigpanic called from 0x7fff205d7cbe
stack: frame={sp:0x7ffeefbff5b8, fp:0x7ffeefbff608} stack=[0x7ffeefb80658,0x7ffeefbff6c0)
0x00007ffeefbff4b8:  0x01007ffeefbff4d8  0x0000000000000004
0x00007ffeefbff4c8:  0x000000000000001f  0x00007fff205d7cbe
0x00007ffeefbff4d8:  0x0b01dfacedebac1e  0x0000000000000001
0x00007ffeefbff4e8:  0x0000000004034df1 <runtime.throw+0x0000000000000071>  0x00007ffeefbff588
0x00007ffeefbff4f8:  0x000000000428e7af  0x00007ffeefbff540
0x00007ffeefbff508:  0x00000000040350a8 <runtime.fatalthrow.func1+0x0000000000000048>  0x00000000043c8e00
0x00007ffeefbff518:  0x0000000000000001  0x0000000000000001
0x00007ffeefbff528:  0x00007ffeefbff588  0x0000000004034df1 <runtime.throw+0x0000000000000071>
0x00007ffeefbff538:  0x00000000043c8e00  0x00007ffeefbff578
0x00007ffeefbff548:  0x0000000004035030 <runtime.fatalthrow+0x0000000000000050>  0x00007ffeefbff558
0x00007ffeefbff558:  0x0000000004035060 <runtime.fatalthrow.func1+0x0000000000000000>  0x00000000043c8e00
0x00007ffeefbff568:  0x0000000004034df1 <runtime.throw+0x0000000000000071>  0x00007ffeefbff588
0x00007ffeefbff578:  0x00007ffeefbff5a8  0x0000000004034df1 <runtime.throw+0x0000000000000071>
0x00007ffeefbff588:  0x00007ffeefbff590  0x0000000004034e20 <runtime.throw.func1+0x0000000000000000>
0x00007ffeefbff598:  0x0000000004291700  0x000000000000002a
0x00007ffeefbff5a8:  0x00007ffeefbff5f8  0x000000000404a3f6 <runtime.sigpanic+0x0000000000000396>
0x00007ffeefbff5b8: <0x0000000004291700  0x000000000401a8e5 <runtime.(*fixalloc).alloc+0x0000000000000085>
0x00007ffeefbff5c8:  0x00007ffeefbff638  0x00000000040280a6 <runtime.(*mheap).allocSpan+0x0000000000000546>
0x00007ffeefbff5d8:  0x000000c000110000  0x0000000000002000
0x00007ffeefbff5e8:  0x000000c000000008  0x000000000409f440 <syscall.libc_stat64_trampoline+0x0000000000000000>
0x00007ffeefbff5f8:  0x00007ffeefbff640 !0x00007fff205d7cbe
0x00007ffeefbff608: >0x00007ffeefbff640  0x00000000043a8000
0x00007ffeefbff618:  0x00000000000002b2  0x0000000004112205 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005>
0x00007ffeefbff628:  0x0000000004065c3f <runtime.syscall+0x000000000000001f>  0x000000c000051848
0x00007ffeefbff638:  0x00007ffeefbff680  0x000000c000051818
0x00007ffeefbff648:  0x0000000004063ad0 <runtime.asmcgocall+0x0000000000000070>  0x0000000000000001
0x00007ffeefbff658:  0x000000c000062600  0x2600000004294fd0
0x00007ffeefbff668:  0x0000000000000010  0x0000000004268160
0x00007ffeefbff678:  0x0000000000000810  0x000000c0000001a0
0x00007ffeefbff688:  0x0000000004061be9 <runtime.systemstack+0x0000000000000049>  0x0000000000000004
0x00007ffeefbff698:  0x00000000042bb278  0x00000000043c8e00
0x00007ffeefbff6a8:  0x00007ffeefbff6f0  0x0000000004061ae5 <runtime.mstart+0x0000000000000005>
0x00007ffeefbff6b8:  0x0000000004061a9d <runtime.rt0_go+0x000000000000013d>
runtime.sigpanic()
    /usr/local/Cellar/go/1.17/libexec/src/runtime/signal_unix.go:719 +0x396

goroutine 1 [syscall, locked to thread]:
syscall.syscall(0x4112200, 0x1, 0x40487413, 0xc0000518d8)
    /usr/local/Cellar/go/1.17/libexec/src/runtime/sys_darwin.go:22 +0x3b fp=0xc000051848 sp=0xc000051828 pc=0x406093b
syscall.syscall(0x409b306, 0x400f2d4, 0xc000051900, 0x409b238)
    <autogenerated>:1 +0x26 fp=0xc000051890 sp=0xc000051848 pc=0x40663c6
golang.org/x/sys/unix.ioctl(0x4288624, 0x4, 0x1000000000008)
    /Users/Cam/go/pkg/mod/golang.org/x/sys@v0.0.0-20200223170610-d5e6a3e2c0ae/unix/zsyscall_darwin_amd64.go:746 +0x39 fp=0xc0000518c0 sp=0xc000051890 pc=0x4111e99
golang.org/x/sys/unix.IoctlGetTermios(...)
    /Users/Cam/go/pkg/mod/golang.org/x/sys@v0.0.0-20200223170610-d5e6a3e2c0ae/unix/ioctl.go:63
github.com/mattn/go-isatty.IsTerminal(0x4288624)
    /Users/Cam/go/pkg/mod/github.com/mattn/go-isatty@v0.0.12/isatty_bsd.go:10 +0x50 fp=0xc000051930 sp=0xc0000518c0 pc=0x41122b0
github.com/fatih/color.init()
    /Users/Cam/go/pkg/mod/github.com/fatih/color@v1.10.0/color.go:21 +0x7a fp=0xc000051968 sp=0xc000051930 pc=0x4112ffa
runtime.doInit(0x43ae220)
    /usr/local/Cellar/go/1.17/libexec/src/runtime/proc.go:6498 +0x123 fp=0xc000051aa0 sp=0xc000051968 pc=0x4044363
runtime.doInit(0x43ae1c0)
    /usr/local/Cellar/go/1.17/libexec/src/runtime/proc.go:6475 +0x71 fp=0xc000051bd8 sp=0xc000051aa0 pc=0x40442b1
runtime.doInit(0x43ad440)
    /usr/local/Cellar/go/1.17/libexec/src/runtime/proc.go:6475 +0x71 fp=0xc000051d10 sp=0xc000051bd8 pc=0x40442b1
runtime.doInit(0x43adfe0)
    /usr/local/Cellar/go/1.17/libexec/src/runtime/proc.go:6475 +0x71 fp=0xc000051e48 sp=0xc000051d10 pc=0x40442b1
runtime.doInit(0x43ae5a0)
    /usr/local/Cellar/go/1.17/libexec/src/runtime/proc.go:6475 +0x71 fp=0xc000051f80 sp=0xc000051e48 pc=0x40442b1
runtime.main()
    /usr/local/Cellar/go/1.17/libexec/src/runtime/proc.go:238 +0x1e6 fp=0xc000051fe0 sp=0xc000051f80 pc=0x4037446
runtime.goexit()
    /usr/local/Cellar/go/1.17/libexec/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc000051fe8 sp=0xc000051fe0 pc=0x4063dc1
FAIL

I've tried uninstalling and reinstalling. any ideas?