Clayton on Nostr: I found a weird crash that seems to involve running #golang apps compiled for amd64 ...
I found a weird crash that seems to involve running #golang apps compiled for amd64 on an aarch64 system using #qemu.
It seems to be related to the Go GC, GOGC=off works. Go 1.20 also works.
The crash output from Go runtime is in this issue, but I've been able to reproduce this when building a very simple hello world app for amd64:
https://gitlab.com/postmarketOS/pmbootstrap/-/issues/2382Both Go's runtime/GC and qemu are complicated things I suck at debugging 😞
Help me fediverse, you're my only hope.
Published at
2024-09-04 18:58:05Event JSON
{
"id": "7db75590163c4ee7a08d2c249e042b184c955dcdf6f5d35ae563c408c622a984",
"pubkey": "2b2d05d669f916c511b398c022644c4416479e4b4671350fc8a198dc303a79cf",
"created_at": 1725476285,
"kind": 1,
"tags": [
[
"t",
"golang"
],
[
"t",
"qemu"
],
[
"proxy",
"https://freeradical.zone/users/craftyguy/statuses/113080813864890961",
"activitypub"
]
],
"content": "I found a weird crash that seems to involve running #golang apps compiled for amd64 on an aarch64 system using #qemu. \n\nIt seems to be related to the Go GC, GOGC=off works. Go 1.20 also works.\n\nThe crash output from Go runtime is in this issue, but I've been able to reproduce this when building a very simple hello world app for amd64:\n\nhttps://gitlab.com/postmarketOS/pmbootstrap/-/issues/2382\n\nBoth Go's runtime/GC and qemu are complicated things I suck at debugging 😞\n\nHelp me fediverse, you're my only hope.",
"sig": "cb0d7605b96eeb717e966b955ed4f5907734280498a3e421f29238f564e11e3527fae276f7a5e50e809681fc860a31f6141eaf0a4a1bee788e7292da807e9e95"
}