flok
Well-known member
There are indeed differences (I checked with a led blinker compile).
BUT: both the arduino ide version AND platformio use the -fno-exceptions switch. And thus a 'new something[]();' will fail silently when running out of memory.
Then it dawned to me: that 0xC is a just an offset in a structure/object/something starting at 0 as the malloc returned null for failure. As I nowhere check for null but expect an exception to happen, this will/can cause random data to be overwritten and eventually a crash will happen.
This is probably happening due to memory fragmentation, I'm going to see if that's true.
@Paul don't feel obliged at all regarding the stack-trace, it was merely a suggestion.
BUT: both the arduino ide version AND platformio use the -fno-exceptions switch. And thus a 'new something[]();' will fail silently when running out of memory.
Then it dawned to me: that 0xC is a just an offset in a structure/object/something starting at 0 as the malloc returned null for failure. As I nowhere check for null but expect an exception to happen, this will/can cause random data to be overwritten and eventually a crash will happen.
This is probably happening due to memory fragmentation, I'm going to see if that's true.
@Paul don't feel obliged at all regarding the stack-trace, it was merely a suggestion.