denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
97.82k stars 5.38k forks source link

deno run throw Bus error (core dumped) after fresh install in crostini/arch chrome OS #26237

Open carlosLMZarego opened 1 month ago

carlosLMZarego commented 1 month ago

Hi guys, I'm trying to run deno 2.0 on my linux container inside chromeOS, I'm getting this error:

Bus error (core dumped) when I try to run these commands deno run https://deno.land/std/examples/welcome.ts deno run <any .ts file> deno repl

deno lint and fmt works

I tried install an older version, I get the same error, I tried also install this using dvm (deno version manager) and I get the same error

I check and I've the deno executable under ~/.deno/bin...if I try to run this using strace ./deno I get this logs

strace ./deno
execve("./deno", ["./deno"], 0x7ffeb9d36a00 /* 56 vars */) = 0
brk(NULL)                               = 0x573424e17000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=60851, ...}) = 0
mmap(NULL, 60851, PROT_READ, MAP_PRIVATE, 3, 0) = 0x78e5d4d32000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=14280, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x78e5d4d30000
mmap(NULL, 16400, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x78e5d4d2b000
mmap(0x78e5d4d2c000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x78e5d4d2c000
mmap(0x78e5d4d2d000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x78e5d4d2d000
mmap(0x78e5d4d2e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x78e5d4d2e000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=915712, ...}) = 0
mmap(NULL, 184808, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x78e5d4cfd000
mmap(0x78e5d4d01000, 147456, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x78e5d4d01000
mmap(0x78e5d4d25000, 16384, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x28000) = 0x78e5d4d25000
mmap(0x78e5d4d29000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2b000) = 0x78e5d4d29000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=14352, ...}) = 0
mmap(NULL, 16400, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x78e5d4cf8000
mmap(0x78e5d4cf9000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x78e5d4cf9000
mmap(0x78e5d4cfa000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x78e5d4cfa000
mmap(0x78e5d4cfb000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x78e5d4cfb000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=14288, ...}) = 0
mmap(NULL, 16400, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x78e5d4cf3000
mmap(0x78e5d4cf4000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x78e5d4cf4000
mmap(0x78e5d4cf5000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x78e5d4cf5000
mmap(0x78e5d4cf6000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x78e5d4cf6000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=973144, ...}) = 0
mmap(NULL, 975176, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x78e5d4c04000
mmap(0x78e5d4c12000, 536576, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe000) = 0x78e5d4c12000
mmap(0x78e5d4c95000, 376832, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x91000) = 0x78e5d4c95000
mmap(0x78e5d4cf1000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xec000) = 0x78e5d4cf1000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340_\2\0\0\0\0\0"..., 832) = 832
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
fstat(3, {st_mode=S_IFREG|0755, st_size=2014520, ...}) = 0
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
mmap(NULL, 2034616, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x78e5d4a13000
mmap(0x78e5d4a37000, 1511424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x24000) = 0x78e5d4a37000
mmap(0x78e5d4ba8000, 319488, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x195000) = 0x78e5d4ba8000
mmap(0x78e5d4bf6000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e3000) = 0x78e5d4bf6000
mmap(0x78e5d4bfc000, 31672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x78e5d4bfc000
close(3)                                = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x78e5d4a11000
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x78e5d4a0e000
arch_prctl(ARCH_SET_FS, 0x78e5d4a0f340) = 0
set_tid_address(0x78e5d4a0f610)         = 8927
set_robust_list(0x78e5d4a0f620, 24)     = 0
rseq(0x78e5d4a0fc60, 0x20, 0, 0x53053053) = 0
mprotect(0x78e5d4bf6000, 16384, PROT_READ) = 0
mprotect(0x78e5d4cf1000, 4096, PROT_READ) = 0
mprotect(0x78e5d4cf6000, 4096, PROT_READ) = 0
mprotect(0x78e5d4cfb000, 4096, PROT_READ) = 0
mprotect(0x78e5d4d29000, 4096, PROT_READ) = 0
mprotect(0x78e5d4d2e000, 4096, PROT_READ) = 0
mprotect(0x573423331000, 2535424, PROT_READ) = 0
mprotect(0x78e5d4d75000, 8192, PROT_READ) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
munmap(0x78e5d4d32000, 60851)           = 0
gettid()                                = 8927
gettid()                                = 8927
gettid()                                = 8927
gettid()                                = 8927
poll([{fd=0, events=0}, {fd=1, events=0}, {fd=2, events=0}], 3, 0) = 0 (Timeout)
rt_sigaction(SIGPIPE, {sa_handler=SIG_IGN, sa_mask=[PIPE], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x78e5d4a501d0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
getrandom("\x9f\xbe\x4e\xdb\x06\xd6\x8e\xf5", 8, GRND_NONBLOCK) = 8
brk(NULL)                               = 0x573424e17000
brk(0x573424e38000)                     = 0x573424e38000
openat(AT_FDCWD, "/proc/self/maps", O_RDONLY|O_CLOEXEC) = 3
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
read(3, "57341c6f4000-57341f8b0000 r--p 0"..., 1024) = 1024
read(3, "libc.so.6\n78e5d4bfc000-78e5d4c04"..., 1024) = 1024
read(3, "e5d4cf9000 r--p 00000000 00:2d 6"..., 1024) = 1024
read(3, "8e5d4d2c000-78e5d4d2d000 r-xp 00"..., 1024) = 1024
close(3)                                = 0
sched_getaffinity(8927, 32, [0 1 2 3])  = 8
rt_sigaction(SIGSEGV, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGSEGV, {sa_handler=0x573420f2aad0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_SIGINFO, sa_restorer=0x78e5d4a501d0}, NULL, 8) = 0
rt_sigaction(SIGBUS, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGBUS, {sa_handler=0x573420f2aad0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_SIGINFO, sa_restorer=0x78e5d4a501d0}, NULL, 8) = 0
sigaltstack(NULL, {ss_sp=NULL, ss_flags=SS_DISABLE, ss_size=0}) = 0
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x78e5d4d3e000
mprotect(0x78e5d4d3e000, 4096, PROT_NONE) = 0
sigaltstack({ss_sp=0x78e5d4d3f000, ss_flags=0, ss_size=8192}, NULL) = 0
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=1024*1024}) = 0
prlimit64(0, RLIMIT_NOFILE, {rlim_cur=1024*1024, rlim_max=1024*1024}, NULL) = 0
getrandom("\xf2\x56\x55\x84\x03\x58\xdc\x87\x62\xa3\x61\x1e\xb4\x8f\xf2\x7b", 16, GRND_INSECURE) = 16
epoll_create1(EPOLL_CLOEXEC)            = 3
eventfd2(0, EFD_CLOEXEC|EFD_NONBLOCK)   = 4
epoll_ctl(3, EPOLL_CTL_ADD, 4, {events=EPOLLIN|EPOLLRDHUP|EPOLLET, data={u32=0, u64=0}}) = 0
fcntl(3, F_DUPFD_CLOEXEC, 3)            = 5
socketpair(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0, [6, 7]) = 0
fcntl(6, F_DUPFD_CLOEXEC, 3)            = 8
epoll_ctl(5, EPOLL_CTL_ADD, 8, {events=EPOLLIN|EPOLLRDHUP|EPOLLET, data={u32=1, u64=1}}) = 0
write(4, "\1\0\0\0\0\0\0\0", 8)         = 8
readlink("/proc/self/exe", "/home/demo/.deno/bin/deno", 256) = 25
openat(AT_FDCWD, "/home/demo/.deno/bin/deno", O_RDONLY|O_CLOEXEC) = 9
lseek(9, -12, SEEK_END)                 = 146644548
read(9, "\0\0\0\0\0\0\0\0\0\0\0\0", 12) = 12
close(9)                                = 0
brk(0x573424e68000)                     = 0x573424e68000
brk(0x573424e9c000)                     = 0x573424e9c000
brk(0x573424ebe000)                     = 0x573424ebe000
brk(0x573424ebd000)                     = 0x573424ebd000
brk(0x573424edf000)                     = 0x573424edf000
brk(0x573424ede000)                     = 0x573424ede000
brk(0x573424f04000)                     = 0x573424f04000
brk(0x573424f01000)                     = 0x573424f01000
brk(0x573424f22000)                     = 0x573424f22000
brk(0x573424f47000)                     = 0x573424f47000
brk(0x573424f6c000)                     = 0x573424f6c000
brk(0x573424f03000)                     = 0x573424f03000
gettid()                                = 8927
openat(AT_FDCWD, "/sys/devices/system/cpu/online", O_RDONLY|O_CLOEXEC) = 9
read(9, "0-3\n", 1024)                  = 4
close(9)                                = 0
gettid()                                = 8927
gettid()                                = 8927
uname({sysname="Linux", nodename="archlinux", ...}) = 0
pkey_alloc(0, PKEY_DISABLE_WRITE)       = -1 EINVAL (Invalid argument)
rt_sigaction(SIGRT_1, {sa_handler=0x78e5d4aa42b0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x78e5d4a501d0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x78e5d420d000
mprotect(0x78e5d420e000, 8388608, PROT_READ|PROT_WRITE) = 0
rt_sigprocmask(SIG_BLOCK, ~[], [], 8)   = 0
clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x78e5d4a0d990, parent_tid=0x78e5d4a0d990, exit_signal=0, stack=0x78e5d420d000, stack_size=0x7ff380, tls=0x78e5d4a0d6c0} => {parent_tid=[8928]}, 88) = 8928
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
futex(0x573424e24658, FUTEX_WAKE_PRIVATE, 1) = 1
mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x78e5cf7ff000
mprotect(0x78e5cf800000, 8388608, PROT_READ|PROT_WRITE) = 0
rt_sigprocmask(SIG_BLOCK, ~[], [], 8)   = 0
clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x78e5cffff990, parent_tid=0x78e5cffff990, exit_signal=0, stack=0x78e5cf7ff000, stack_size=0x7ff380, tls=0x78e5cffff6c0} => {parent_tid=[8929]}, 88) = 8929
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
futex(0x573424e24188, FUTEX_WAKE_PRIVATE, 1) = 1
mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x78e5ceffe000
mprotect(0x78e5cefff000, 8388608, PROT_READ|PROT_WRITE) = 0
rt_sigprocmask(SIG_BLOCK, ~[], [], 8)   = 0
clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x78e5cf7fe990, parent_tid=0x78e5cf7fe990, exit_signal=0, stack=0x78e5ceffe000, stack_size=0x7ff380, tls=0x78e5cf7fe6c0} => {parent_tid=[8930]}, 88) = 8930
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
futex(0x573424e234f8, FUTEX_WAKE_PRIVATE, 1) = 1
mprotect(0x5734235aa000, 4096, PROT_READ) = 0
gettid()                                = 8927
gettid()                                = 8927
gettid()                                = 8927
gettid()                                = 8927
openat(AT_FDCWD, "/dev/urandom", O_RDONLY) = 9
fstat(9, {st_mode=S_IFCHR|0666, st_rdev=makedev(0x1, 0x9), ...}) = 0
ioctl(9, TCGETS, 0x7ffc1d435050)        = -1 EINVAL (Invalid argument)
read(9, "s\222\356\21U\24a\34Y\276d\367\177\7\252\254T\\{\364\311\277\2037\225K\2\216\275X\17\342"..., 4096) = 4096
close(9)                                = 0
gettid()                                = 8927
mmap(NULL, 524288, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x78e5d418d000
madvise(0x78e5d418d000, 524288, MADV_DONTFORK) = 0
mprotect(0x78e5d418d000, 16384, PROT_READ|PROT_WRITE) = 0
gettid()                                = 8927
mmap(0x3b1800000000, 68719472640, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x3b1800000000
madvise(0x3b1800000000, 68719472640, MADV_DONTFORK) = 0
munmap(0x3b2000000000, 34359734272)     = 0
ioctl(2, TCGETS, {c_iflag=BRKINT|ICRNL|IMAXBEL, c_oflag=NL0|CR0|TAB0|BS0|VT0|FF0|OPOST|ONLCR, c_cflag=B38400|CS8|CREAD, c_lflag=ISIG|ICANON|ECHO|ECHOE|ECHOK|IEXTEN|ECHOCTL|ECHOKE, ...}) = 0
getcwd("/home/demo/.deno/bin", 512)     = 21
statx(AT_FDCWD, "/home/demo/.deno/bin", AT_STATX_SYNC_AS_STAT, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFDIR|0755, stx_size=8, ...}) = 0
openat(AT_FDCWD, "/home/demo/.deno/bin/deno.json", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/demo/.deno/bin/deno.jsonc", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/demo/.deno/bin/package.json", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/demo/.deno/deno.json", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/demo/.deno/deno.jsonc", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/demo/.deno/package.json", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/demo/deno.json", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/demo/deno.jsonc", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/demo/package.json", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/deno.json", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/deno.jsonc", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/package.json", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/deno.json", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/deno.jsonc", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/package.json", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/demo/.npmrc", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
readlink("/home", 0x7ffc1d437a20, 1023) = -1 EINVAL (Invalid argument)
readlink("/home/demo", 0x7ffc1d437a20, 1023) = -1 EINVAL (Invalid argument)
readlink("/home/demo/.cache", 0x7ffc1d437a20, 1023) = -1 EINVAL (Invalid argument)
readlink("/home/demo/.cache/deno", 0x7ffc1d437a20, 1023) = -1 EINVAL (Invalid argument)
readlink("/home/demo/.cache/deno/npm", 0x7ffc1d437a20, 1023) = -1 EINVAL (Invalid argument)
openat(AT_FDCWD, "/proc/self/cgroup", O_RDONLY|O_CLOEXEC) = 9
statx(9, "", AT_STATX_SYNC_AS_STAT|AT_EMPTY_PATH, STATX_ALL, {stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFREG|0444, stx_size=0, ...}) = 0
lseek(9, 0, SEEK_CUR)                   = 0
read(9, "11:name=systemd:/user.slice/user"..., 128) = 128
read(9, "user@1000.service\n9:perf_event:/", 32) = 32
read(9, "\n8:net_cls,net_prio:/\n7:memory:/"..., 96) = 96
read(9, "er:/\n4:devices:/user.slice\n3:cpu"..., 256) = 69
read(9, "", 187)                        = 0
close(9)                                = 0
statx(AT_FDCWD, "/sys/fs/cgroup/cpu/", AT_STATX_SYNC_AS_STAT, STATX_ALL, {stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=STATX_ATTR_MOUNT_ROOT, stx_mode=S_IFDIR|0775, stx_size=0, ...}) = 0
openat(AT_FDCWD, "/sys/fs/cgroup/cpu/cpu.cfs_quota_us", O_RDONLY|O_CLOEXEC) = 9
statx(9, "", AT_STATX_SYNC_AS_STAT|AT_EMPTY_PATH, STATX_ALL, {stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=0, ...}) = 0
lseek(9, 0, SEEK_CUR)                   = 0
read(9, "-1\n", 32)                     = 3
read(9, "", 17)                         = 0
close(9)                                = 0
openat(AT_FDCWD, "/sys/fs/cgroup/cpu/cpu.cfs_period_us", O_RDONLY|O_CLOEXEC) = 9
statx(9, "", AT_STATX_SYNC_AS_STAT|AT_EMPTY_PATH, STATX_ALL, {stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=0, ...}) = 0
lseek(9, 0, SEEK_CUR)                   = 0
read(9, "100000\n", 32)                 = 7
read(9, "", 13)                         = 0
close(9)                                = 0
sched_getaffinity(0, 128, [0 1 2 3])    = 8
mmap(NULL, 2101248, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x78e5cedfd000
mprotect(0x78e5cedfe000, 2097152, PROT_READ|PROT_WRITE) = 0
rt_sigprocmask(SIG_BLOCK, ~[], [], 8)   = 0
clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x78e5ceffd990, parent_tid=0x78e5ceffd990, exit_signal=0, stack=0x78e5cedfd000, stack_size=0x1ff380, tls=0x78e5ceffd6c0} => {parent_tid=[8931]}, 88) = 8931
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
futex(0x78e5ceffd670, FUTEX_WAKE_PRIVATE, 1) = 1
mmap(NULL, 2101248, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x78e5cebfc000
mprotect(0x78e5cebfd000, 2097152, PROT_READ|PROT_WRITE) = 0
rt_sigprocmask(SIG_BLOCK, ~[], [], 8)   = 0
clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x78e5cedfc990, parent_tid=0x78e5cedfc990, exit_signal=0, stack=0x78e5cebfc000, stack_size=0x1ff380, tls=0x78e5cedfc6c0} => {parent_tid=[8932]}, 88) = 8932
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
futex(0x78e5cedfc670, FUTEX_WAKE_PRIVATE, 1) = 1
pipe2([13, 14], O_CLOEXEC)              = 0
pipe2([16, 17], O_CLOEXEC)              = 0
fcntl(14, F_DUPFD_CLOEXEC, 3)           = 19
fcntl(17, F_DUPFD_CLOEXEC, 3)           = 20
mmap(NULL, 2101248, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x78e5ce9fb000
mprotect(0x78e5ce9fc000, 2097152, PROT_READ|PROT_WRITE) = 0
rt_sigprocmask(SIG_BLOCK, ~[], [], 8)   = 0
clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x78e5cebfb990, parent_tid=0x78e5cebfb990, exit_signal=0, stack=0x78e5ce9fb000, stack_size=0x1ff380, tls=0x78e5cebfb6c0} => {parent_tid=[8933]}, 88) = 8933
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
openat(AT_FDCWD, "/proc/self/cgroup", O_RDONLY|O_CLOEXEC) = 25
statx(25, "", AT_STATX_SYNC_AS_STAT|AT_EMPTY_PATH, STATX_ALL, {stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFREG|0444, stx_size=0, ...}) = 0
lseek(25, 0, SEEK_CUR)                  = 0
read(25, "11:name=systemd:/user.slice/user"..., 128) = 128
read(25, "user@1000.service\n9:perf_event:/", 32) = 32
+++ killed by SIGBUS (core dumped) +++
Bus error (core dumped)

I can see many messages like this openat(AT_FDCWD, "/home/demo/.deno/bin/deno.json", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

not sure if this could be the problem

hope this report can be helpful, thank you guys, let me know if you need more details and info

lucacasonato commented 3 weeks ago

What specific machine are you on?