Please help me, it's urgent.

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.

1729512887978.png


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.
 
Have you tried, the old fashion ways? ...

like:

Have your build generate a map file - and edit it in your text editor. I typically sort the file and look for nearest address...
Current Arduino Teensy builds create this file: (.sym)

use objdump to create a list file, open that up in your text editor and search for the address and see what is happening at or near that address.
Again Arduino teensy builds generate this file (.lst)

Note sometimes none of these work, like the stack gets trashed and jumps to never never land.
Sometimes you need to try to localize on your own. Like Serial.print messages, or digitalWrite/toggle IO pins and trace with Scope or Logic Analyzer

Good luck
 
Have you tried, the old fashion ways? ...

like:

Have your build generate a map file - and edit it in your text editor. I typically sort the file and look for nearest address...
Current Arduino Teensy builds create this file: (.sym)

use objdump to create a list file, open that up in your text editor and search for the address and see what is happening at or near that address.
Again Arduino teensy builds generate this file (.lst)

Note sometimes none of these work, like the stack gets trashed and jumps to never never land.
Sometimes you need to try to localize on your own. Like Serial.print messages, or digitalWrite/toggle IO pins and trace with Scope or Logic Analyzer

Good luck

I used CrashReport.breadcrumb() and printf etc.
 
Back
Top