stdout output is lost in memory pressure situations #52
Labels
State: won't fix
State: The issue can not or will not be fixed
Type: bug
The issue reports a bug / The PR fixes a bug (including spelling errors)
When there is little to none free memory left, printf() messages are lost and truncated.
If not sufficient free memory becomes availiable, the program will simply not output anything anymore, but contiunes running. From the 'delay' between "memory being used up" and "no more log messages can be written" it seems like a preallocated buffer is used, when trying to allocate another buffer for printf in a low-memory situation, this fails and messages are cut off.
e.g. running test_malloc
(the exact point of the corruption differs with slightly different binaries, but is consistent when using the same binary)
The text was updated successfully, but these errors were encountered: