antonmedv/fx

24.1.0 arm64 release binary borked?

pschmitt opened this issue · 3 comments

On termux the 24.1.0 arm64 binary does not run properly:

fx --version
SIGSYS: bad system call
PC=0x12f80 m=0 sigcode=1

goroutine 1 [syscall, locked to thread]:
syscall.Syscall6(0x400011c550?, 0x44?, 0x44?, 0x400011c5a0?, 0x0?, 0x4f?, 0xffffffffffffff9c?)
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/syscall/syscall_linux.go:91 +0x2c fp=0x400014b940 sp=0x400014b8b0 pc=0xbdf6c
syscall.faccessat2(0x400011c550?, {0x400011c550?, 0x75d9030b68?}, 0x1, 0xc0?)
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/syscall/zsyscall_linux_arm64.go:33 +0x84 fp=0x400014b9b0 sp=0x400014b940 pc=0xbb894
syscall.Faccessat(0x400011c550?, {0x400011c550, 0x44}, 0x1, 0x200)
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/syscall/syscall_linux.go:167 +0x3c fp=0x400014baa0 sp=0x400014b9b0 pc=0xb951c
internal/syscall/unix.Eaccess(...)
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/internal/syscall/unix/eaccess_linux.go:10
os/exec.findExecutable({0x400011c550, 0x44})
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/os/exec/lp_unix.go:31 +0x58 fp=0x400014baf0 sp=0x400014baa0 pc=0x103f28
os/exec.LookPath({0x494991, 0x4})
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/os/exec/lp_unix.go:71 +0x1b8 fp=0x400014bb90 sp=0x400014baf0 pc=0x1041f8
github.com/atotto/clipboard.init.0()
	/Users/anton/go/pkg/mod/github.com/atotto/clipboard@v0.1.4/clipboard_unix.go:73 +0x24c fp=0x400014bbb0 sp=0x400014bb90 pc=0x3c746c
runtime.doInit(0x7e3920)
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/proc.go:6506 +0x11c fp=0x400014bcf0 sp=0x400014bbb0 pc=0x534dc
runtime.doInit(0x7e5860)
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/proc.go:6483 +0x68 fp=0x400014be30 sp=0x400014bcf0 pc=0x53428
runtime.doInit(0x7e6e00)
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/proc.go:6483 +0x68 fp=0x400014bf70 sp=0x400014be30 pc=0x53428
runtime.main()
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/proc.go:233 +0x1b8 fp=0x400014bfd0 sp=0x400014bf70 pc=0x45958
runtime.goexit()
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/asm_arm64.s:1172 +0x4 fp=0x400014bfd0 sp=0x400014bfd0 pc=0x75024

goroutine 2 [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/proc.go:381 +0xe0 fp=0x4000064fa0 sp=0x4000064f80 pc=0x45db0
runtime.goparkunlock(...)
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/proc.go:387
runtime.forcegchelper()
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/proc.go:305 +0xb0 fp=0x4000064fd0 sp=0x4000064fa0 pc=0x45c00
runtime.goexit()
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/asm_arm64.s:1172 +0x4 fp=0x4000064fd0 sp=0x4000064fd0 pc=0x75024
created by runtime.init.6
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/proc.go:293 +0x24

goroutine 3 [GC sweep wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/proc.go:381 +0xe0 fp=0x4000065760 sp=0x4000065740 pc=0x45db0
runtime.goparkunlock(...)
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/proc.go:387
runtime.bgsweep(0x0?)
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/mgcsweep.go:278 +0x98 fp=0x40000657b0 sp=0x4000065760 pc=0x327f8
runtime.gcenable.func1()
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/mgc.go:178 +0x28 fp=0x40000657d0 sp=0x40000657b0 pc=0x278b8
runtime.goexit()
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/asm_arm64.s:1172 +0x4 fp=0x40000657d0 sp=0x40000657d0 pc=0x75024
created by runtime.gcenable
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/mgc.go:178 +0x6c

goroutine 4 [GC scavenge wait]:
runtime.gopark(0x400003a070?, 0x5190d0?, 0x1?, 0x0?, 0x0?)
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/proc.go:381 +0xe0 fp=0x4000065f50 sp=0x4000065f30 pc=0x45db0
runtime.goparkunlock(...)
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/proc.go:387
runtime.(*scavengerState).park(0x9b18a0)
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/mgcscavenge.go:400 +0x5c fp=0x4000065f80 sp=0x4000065f50 pc=0x3078c
runtime.bgscavenge(0x0?)
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/mgcscavenge.go:628 +0x44 fp=0x4000065fb0 sp=0x4000065f80 pc=0x30cc4
runtime.gcenable.func2()
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/mgc.go:179 +0x28 fp=0x4000065fd0 sp=0x4000065fb0 pc=0x27858
runtime.goexit()
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/asm_arm64.s:1172 +0x4 fp=0x4000065fd0 sp=0x4000065fd0 pc=0x75024
created by runtime.gcenable
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/mgc.go:179 +0xac

goroutine 17 [finalizer wait]:
runtime.gopark(0x40000645a8?, 0x60000000025338?, 0xc8?, 0xec?, 0x1?)
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/proc.go:381 +0xe0 fp=0x4000064580 sp=0x4000064560 pc=0x45db0
runtime.runfinq()
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/mfinal.go:193 +0x100 fp=0x40000647d0 sp=0x4000064580 pc=0x26980
runtime.goexit()
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/asm_arm64.s:1172 +0x4 fp=0x40000647d0 sp=0x40000647d0 pc=0x75024
created by runtime.createfing
	/opt/homebrew/Cellar/go/1.20.2/libexec/src/runtime/mfinal.go:163 +0x80

r0      0xffffffffffffff9c
r1      0x400011c5f0
r2      0x1
r3      0x200
r4      0x0
r5      0x0
r6      0x0
r7      0x1
r8      0x1b7
r9      0x656d6f682f73656c
r10     0x726168732f6c6163
r11     0x2f74696e697a2f65
r12     0x2f736972616c6f70
r13     0x6c6573782f6e6962
r14     0x2f6c61636f6c2e2f
r15     0x697a2f6572616873
r16     0x616c6f702f74696e
r17     0x2f6e69622f736972
r18     0x0
r19     0x0
r20     0x400014ba70
r21     0x400014b7d0
r22     0x75024
r23     0x400014be30
r24     0x0
r25     0x0
r26     0x4b1e80
r27     0x1
r28     0x40000021a0
r29     0x400014b848
lr      0x12f3c
sp      0x400014b850
pc      0x12f80
fault   0x0

The previous release works as expected:

./fx-24.0.0 --version
24.0.0

This binary from github releases?

The one from the gh release, yes.

Fixed