Hi,

I've been digging a bit deeper into this, and have come up with the
following:

* If compiled with -O0, the tests error out in a later test than is the
  case with -O2.
* The error is a segfault inside strlen(), which made me suspicious in
  that it is probably a faulty string allocation of some sort.

When compiled with -O0, the error occurs on line 35 of
src/cppunit/DefaultProtector.cpp:

                Message( "uncaught exception of unknown type") );

There is no Message::Message(char*); however, there is a
Message::Message(const std::string &), which is being used instead. To
that end, the std::basic_string<> template is being called, which calls
strlen() with 0xffffffce as an argument, hence the segfault.

Now correct me if I'm wrong (I haven't done any C++ since I left
college), but I don't think it's legal to do it this way. I tried
working around it by adding an explicit std::string constructor around
the "uncaught[...]" string, but that isn't working, and I don't have any
further ideas as to how I should try to fix it.

You got any better ideas?

-- 
.../ -/ ---/ .--./ / .--/ .-/ .../ -/ ../ -./ --./ / -.--/ ---/ ..-/ .-./ / -/
../ --/ ./ / .--/ ../ -/ ..../ / -../ ./ -.-./ ---/ -../ ../ -./ --./ / --/
-.--/ / .../ ../ --./ -./ .-/ -/ ..-/ .-./ ./ .-.-.-/ / --/ ---/ .-./ .../ ./ /
../ .../ / ---/ ..-/ -/ -../ .-/ -/ ./ -../ / -/ ./ -.-./ ..../ -./ ---/ .-../
---/ --./ -.--/ / .-/ -./ -.--/ .--/ .-/ -.--/ .-.-.-/ / ...-.-/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to