Why Nostr? What is Njump?
2023-08-25 22:05:45

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?
Author Public Key
npub1xs30e0pj7velktf5sxewnqf93tu2pdt3s6wtl6fug2tzgy8zxthsgfgrae