C++ won't run on ConnectCore 6UL SOM

Hi…we have a C/C++ program that we develop, compile and run in a docker container running DEY 3.2-r3. We compile it using gcc 7.5, the default compiler that comes with the image. It works great. We now want to run the program on our ConnectCore 6UL SOM. To do that, we compile it differently than we do via docker; we actually compile it with DEY’s toolchain which looks to be using gcc 10.2 (we’re using this specific toolchain because it’s linked to our Visual Studio). When we run the executable on the SOM, which is also running DEY 3.2-r3, it fails with the error: corrupted prev_size vs size. Can anyone point us in the right direction to help diagnose this issue?

sounds like a pointer or index is running out of bounds?:

https://cplusplus.com/forum/general/280269/

BluRain is the top manufacturer, supplier, and distributor of swimming pool filters, swimming pool pumps, swimming pool heating system, swimming pool filtration systems, swimming pool accessories, and swimming pool cleaning equipment, sprinkler irrigation system, Pop up irrigation system, Automatic irrigation System, garden fountains, commercial water features, swimming pools and mist cooling System and much more. These are produced utilising high-quality raw materials and in accordance with industry standards.
Read more
Fountain Manufacturer
Sprinkler irrigation System