Dan Piponi on Nostr: Computers are weird and non-deterministic. I compile my code and it crashed before ...
Computers are weird and non-deterministic.
I compile my code and it crashed before main. Recompile. Same again...and again.
Run it in lldb - it's crashing trying to execute the first bytes of the executable. Literally. I mean it's trying to execute the bytes that say "ELF".
So I readelf to find the proper start address, set a breakpoint there, and restart.
Now it works.
And now the executable works fine outside of lldb.
This computer is just carrying on like normal pretending that for 5-10 minutes it wasn't absolutely failing to run my code.
WTF?
Published at
2023-08-25 22:05:45Event JSON
{
"id": "b73d8309b018b491965ee867f6b3f43051651c3d5a4ce99fea6e615f2b169840",
"pubkey": "3422fcbc32f333fb2d3481b2e981258af8a0b571869cbfe93c42962410e232ef",
"created_at": 1693001145,
"kind": 1,
"tags": [
[
"proxy",
"https://mathstodon.xyz/users/dpiponi/statuses/110952523079953842",
"activitypub"
]
],
"content": "Computers are weird and non-deterministic.\n\nI compile my code and it crashed before main. Recompile. Same again...and again.\n\nRun it in lldb - it's crashing trying to execute the first bytes of the executable. Literally. I mean it's trying to execute the bytes that say \"ELF\".\n\nSo I readelf to find the proper start address, set a breakpoint there, and restart.\n\nNow it works.\n\nAnd now the executable works fine outside of lldb.\n\nThis computer is just carrying on like normal pretending that for 5-10 minutes it wasn't absolutely failing to run my code.\n\nWTF?",
"sig": "0543c54dfabae1613129fb2537be40749364206890efb4f41c89c57c6b9c75481b920780482fd2c732de7a2da11ac6497514361a505dc8b7a29d57fee2c9df86"
}