You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On an arm64 Linux host with 4K pages, attempts to install Go command-line tools fail with a false-positive "does not contain package" error and end with Blink segfaulting.
Mount /proc, /sys, and /dev at the respective rootfs paths
Set up a resolv.conf: nameserver 1.1.1.1
With qemu-user-x86_64 as binfmt handler, install Go: apk add go
Compile a static build of Blink
Register it as a binfmt handler by writing :blink:M:0:\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x3e\x00:\xff\xff\xff\xff\xff\xfe\xfe\x00\x00\x00\x00\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/PATH/TO/blink/o/blink/blink:OCF to /proc/sys/binfmt_misc/register (I used cat to avoid shell escapes)
Blink Virtual Machine 0.9.2 (Wed Mar 15 04:18:12 UTC 2023)
Copyright (c) 2023 Justine Alexandra Roberts Tunney
Blink comes with absolutely NO WARRANTY of any kind.
You may redistribute copies of Blink under the ISC License.
For more information, see the file named LICENSE.
Toolchain: cc (GCC) 12.1.0
Revision: #511 7bb0a1cde18019c7921fafafcf70538e46f7838d
Config: ./configure MODE= --static
The text was updated successfully, but these errors were encountered:
kdrag0n
changed the title
"go install" fails and segfaults
"go install" segfault: memorymalloc.c:587:666 assertion failed: g_machine
Mar 31, 2023
On an arm64 Linux host with 4K pages, attempts to install Go command-line tools fail with a false-positive "does not contain package" error and end with Blink segfaulting.
Expected output (with Rosetta 2 for Linux):
Actual output:
blink.log:
To reproduce:
nameserver 1.1.1.1
apk add go
:blink:M:0:\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x3e\x00:\xff\xff\xff\xff\xff\xfe\xfe\x00\x00\x00\x00\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/PATH/TO/blink/o/blink/blink:OCF
to/proc/sys/binfmt_misc/register
(I usedcat
to avoid shell escapes)chroot rootfs /usr/bin/go install golang.org/x/tools/gopls@latest
Blink version:
The text was updated successfully, but these errors were encountered: