Why Nostr? What is Njump?
2024-08-18 03:22:40
in reply to

Hannah on Nostr: The program cannot tell you anything meaningful anymore, you are correct. Resolving a ...

The program cannot tell you anything meaningful anymore, you are correct.
Resolving a null pointer is "undefined behaviour" per C/C++ programming standard. (As far as I am aware, any programming language with memory pointers defines it this way)
Anything past that operation has no meaning, as further operations (like calling a function or even simple addition) cannot be determinalistic anymore. An underlying core assumption was "proven wrong", but no result from such operations can be trusted.
I certainly would not believe a computer that claims it can divide by zero.

The operating system traps invalid instructions like these and immediately kills misbehaving programs like these. If left running for a while (to try to gather information about what exactly went wrong for example) the operating system itself is in jeopardy as it *has* to rely on the information the program provides.
Information that are, as established above, meaningless. Nobody would trust a calculator that "successfully" divides by zero.
So the only really good option the operating system has is to immediately kill the offending process and dump the content of the memory to disk for analysis (which is kind of what you can see in the picture).
Author Public Key
npub1way0s9dacgmkyg4wzc3dmss0tmffqj75wqmrs78wf420v5f0z96qp06pd8