tursodatabase / turso-cli

Command line interface to Turso.

Home Page:https://turso.tech

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bad system call error on Android

penberg opened this issue · comments

Ren Hiyama reports on Discord:

I downloaded and unzipped the linux arm64 tar gz file and tried to run it, however it shows an error on android:

$ ./turso
SIGSYS: bad system call
PC=0x12f80 m=0 sigcode=1

goroutine 1 [syscall, locked to thread]:
syscall.Syscall6(0x40001a0440?, 0x38?, 0x38?, 0x40001a0480?, 0x0?, 0x4f?, 0xffffffffffffff9c?)
        /opt/hostedtoolcache/go/1.20.5/x64/src/syscall/syscall_linux.go:91 +0x2c fp=0x40000ab6c0 sp=0x40000ab630 pc=0xc59ac
syscall.faccessat2(0x40001a0440?, {0x40001a0440?, 0x77bd4241e8?}, 0x1, 0xc0?)
        /opt/hostedtoolcache/go/1.20.5/x64/src/syscall/zsyscall_linux_arm64.go:33 +0x84 fp=0x40000ab730 sp=0x40000ab6c0 pc=0xc1ef4
syscall.Faccessat(0x40001a0440?, {0x40001a0440, 0x38}, 0x1, 0x200)
        /opt/hostedtoolcache/go/1.20.5/x64/src/syscall/syscall_linux.go:167 +0x3c fp=0x40000ab820 sp=0x40000ab730 pc=0xbf6cc
internal/syscall/unix.Eaccess(...)
        /opt/hostedtoolcache/go/1.20.5/x64/src/internal/syscall/unix/eaccess_linux.go:10

... And a lot of error stack 

The "bad system call" means that the Linux kernel it's using doesn't support something. I think it's sys_faccessat2() that's missing. AFAICT, this is a Go bug and will be fixed in 1.21 that's scheduled for August: golang/go@58f6022