3 ms·
This reminds me of a fun bug from back in the day in university, implementing an experimental stream-based language. The out-of-memory errors were very disconne
by tetha 2y ago
This reminds me of a fun bug from back in the day in university, implementing an experimental stream-based language. The out-of-memory errors were very disconnected, because they occured in the VM - comparing it to the JVM, but without a real connection to the user code in the VM.
So they trapped the memory errors and put out the current upper-code level state of the VM to make it somewhat more debuggeable if the VM ran out of memory. Wonderful new feature to users, as now you had a clue where your code messed up and the VM failed. Very happy users.
Except, eventually someone accidentally added a memory allocation to the error reporting about memory exhaustion. Suddenly things just stopped doing useful stuff, hogged a core and didn't do anything else. Great fun.