On Mon, 21 May 2007 19:16:14 +0200, Andrew Haley
<aph-gcc@xxxxxxxxxxxxxxxxxxx> wrote:
...
I suggest, to begin with, that you try running your program under
Valgrind. Also, be very sure to compile your program with -Wall and
fix whatever warnings you come across.
valgrind on aix? Don't think so.
Compiling with -Wall is not easy for us right now, too. There simply are
too many!! :-(
When debugging, it would always crash when opening streams like:
iStr = new std::ifstream(fileName, std::ios::in);
if (!iStr->fail())
{
lineNr = 1;
ReadTree("", &xml);
}
else
{
fileError = true;
fileErrorText = "Can't open file!";
return !fileError;
}
#8 0xd2894714 in std::__throw_bad_cast () at _start_ :55
#9 0xd28d31ec in std::basic_ios<char, std::char_traits<char> >::widen (
this=<incomplete type>, __c=10 '\n')
from
/opt/compiler/gcc-4.1/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/4.1.1/libstdc++.a(libstdc++.so.6)
Could there be a problem with our build of libstdc++?
Then, if the problem persists even with no complaints from Valgrind or
the compiler, get back to us.
Andrew.