does your build setting match your ROOT distribution? You’ll have to link against a ROOT debug distribution to build your code in debug mode, and ROOT release to build your code in release mode. Otherwise there’s a mismatch between the standard library implementations, which could trigger what you are seeing.