ish-app / ish

Linux shell for iOS
https://ish.app
Other
16.36k stars 858 forks source link

Cannot run vale (golang linter) #2212

Open rcarmo opened 10 months ago

rcarmo commented 10 months ago

Downloading the i386 binary and trying to run it fails with the usual "fatal" errors that I've come to associate with Go binaries:

fatal error: fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x0]

runtime stack:
runtime.throw({0x891cfb8, 0x2a})
        /opt/hostedtoolcache/go/1.20.7/x64/src/runtime/panic.go:1047 +0x4d fp=0xffffdbc4 sp=0xffffdbb0 pc=0x807e21d
runtime: g 0: unexpected return pc for runtime.sigpanic called from 0x0
stack: frame={sp:0xffffdbc4, fp:0xffffdbdc} stack=[0xfffeddd8,0xffffdd70)
0xffffdb44:  0x0807ea93 <runtime.dopanic_m+0x00000213>  0x0807e21d <runtime.throw+0x0000004d>  0xffffdbb0  0x00000000 
0xffffdb54:  0x091a6940  0x0100fb01  0x0000001f  0x00000000 
0xffffdb64:  0x00000000  0x00000001  0x00000001  0x08913754 
0xffffdb74:  0x0807e582 <runtime.fatalthrow.func1+0x00000062>  0x091a6940  0x0807e21d <runtime.throw+0x0000004d>  0xffffdbb0 
0xffffdb84:  0x00000001  0xffffdbb0  0x0807e21d <runtime.throw+0x0000004d>  0x091a6940 
0xffffdb94:  0x0807e511 <runtime.fatalthrow+0x00000071>  0xffffdb9c  0x0807e520 <runtime.fatalthrow.func1+0x00000000>  0x091a6940 
0xffffdba4:  0x0807e21d <runtime.throw+0x0000004d>  0xffffdbb0  0x0807e21d <runtime.throw+0x0000004d>  0x00000002 
0xffffdbb4:  0x0807e230 <runtime.throw.func1+0x00000000>  0x0891cfb8  0x0000002a  0x080948c8 <runtime.sigpanic+0x000002b8> 
0xffffdbc4: <0x0891cfb8  0x0000002a  0x00000080  0x00000000 
0xffffdbd4:  0x091a6940 !0x00000000 >0x00000000  0xfffffffc 
0xffffdbe4:  0x0890e725  0x0807e211 <runtime.throw+0x00000041>  0xffffdbf0  0x0807e230 <runtime.throw.func1+0x00000000> 
0xffffdbf4:  0x0890e725  0x00000019  0x080527d4 <runtime.notesleep+0x000000b4>  0x09444550 
0xffffdc04:  0x00000000  0xffffffff  0xffffffff  0xffffffff 
0xffffdc14:  0xffffffff  0x09406780  0x08083ba7 <runtime.mPark+0x00000027>  0x09444550 
0xffffdc24:  0x09406780  0x080859cb <runtime.stoplockedm+0x0000006b>  0x00000001  0x00000001 
0xffffdc34:  0x08052404 <runtime.lock2+0x00000054>  0x091a6940  0x08087a9a <runtime.schedule+0x0000004a>  0x00000000 
0xffffdc44:  0x00000000  0x080525cf <runtime.unlock2+0x0000002f>  0x091a7358  0x091a6be0 
0xffffdc54:  0x00000001  0x080882a6 <runtime.goschedImpl+0x000000d6> 
runtime.sigpanic()
        /opt/hostedtoolcache/go/1.20.7/x64/src/runtime/signal_unix.go:825 +0x2b8 fp=0xffffdbdc sp=0xffffdbc4 pc=0x80948c8
rcarmo commented 10 months ago

Trying to build it from source also fails under the latest nightly:

Ruis-iPad-Mini-5:~/Build/vale# make
GOOS= GOARCH= go build -ldflags "-s -w -X main.version=v2.28.2" -o bin/ ./cmd/vale
runtime: newstack at runtime.goPanicIndexU+0xaa sp=0xef732b88 stack=[0x8e00000, 0x8e01000]
        morebuf={pc:0x8054832 sp:0xef732b8c lr:0x0}
        sched={pc:0x807d62a sp:0xef732b88 lr:0x0 ctxt:0x0}
runtime: g 21: unexpected return pc for runtime.(*mheap).sysAlloc called from 0x2
stack: frame={sp:0xef732b8c, fp:0xef732be0} stack=[0x8e00000,0x8e01000)

runtime.(*mheap).sysAlloc(0x1, 0x8089bcf, 0x8c82780, 0x87)
        /usr/lib/go/src/runtime/malloc.go:717 +0x2f2 fp=0xef732be0 sp=0xef732b8c pc=0x8054832
created by cmd/go/internal/par.(*Queue).Add
        /usr/lib/go/src/cmd/go/internal/par/queue.go:56 +0x19a
fatal error: runtime: stack split at bad time