I'm looking at a very strange problem in my work.
I'm working on a application, which runs on mips embedded device - this is making things difficult, because my favorite - 'valgrind' is not available here, and also electric fence has troubles to run.
I have:
static std::string s = "blahblah";
and
int SomeClass::someMethod()
{
stringstream h;
h << "Test";
}
and somehow the string 's' gets overwritten after calling stringstream:
perator<<.
I suspect something bad has happened to stringstream or some allocator, which it is using prior to using operator<<. But I'm now struggling how to detect what is the cause.
Can you recommend any approach or give any advice how to track this down?