At 12.26 06/09/2006 -0400, Bryan Barnett wrote:
Has anyone had any success with Xerces-C 2.7.0 on solaris 2.7 and
the GCC 4.0.3 compilers? How about GCC 4.0.3 on other platforms?
Xerces-C successfully compiles with g++ 4.0.3, but the DOMMemTest
fails and applications using SAX fail intermittently (different
points in the document each time) with "Illegal Instruction", "Bus
Error", or seg faults. I am also using GNU binutils 2.16.1 instead
of the native sun utilities.
Compiling xerces-c in debug mode, Purify repeatedly reports "Stack
array bounds read" and write errors, and "Fatal core dump", at line
125 of DOMMemTest.cpp. I have not been able to get Purify to report
deeper into the library (?!).
Any insight would be appreciated. Thanks for your time.
Hi Bryan,
in order to get Purify to report from inside the Xerces library, you
should rebuild Xerces using the Purify front end (sorry, cannot give
you more directions, as I haven't used Purify for a few years).
However, it looks something is really broken, as line 125 is
doc =
DOMImplementationRegistry::getDOMImplementation(X("Core"))->createDocument();
and I cannot see what could be crashing there.
Did you reproduce the intermittent crash while running inside gdb?
Alberto