Hi,
We are on solaris 10 platform with sparc architecture and using xerces
3.0.0 for sun studio 12 C++ compiler (Sun C++ 5.9 SunOS_sparc Patch
124863-11 2007/07/25) and running our application on 64-bit platform with
stlport4 package. Since we were not being able to find pre-compiled binary
distribution, we have built the code in-house.
Currently we are facing problem with parsing using XercesDOMParser. While
trying to validate the XML document with XML validation feature being on,
the application core dumps whereas if validation is turned off, it works
fine. But we need to have validation on. And one more observation is when
we put sleep of 1 sec before triggering each request this goes fine. But
when there is no gap, it core dumps after processing certain request. And
how many request it is going to process is also not certain.
The library is built in-house from the source code with following flags.
CC -library=stlport4 -features=extensions -fast -mt -xarch=sparc
-xprefetch -m64 -g -xmemalign
I also tried the same under 32 bit environment (without -m64 in the above
options) and the same error still exists.
Is there any problem with the compiler options being used here.(For
information, All my application library are built on stlport4 library.) I
am little confused here as the same request may go fine twice producing
desired output but on third time it may crash with a core in IGXMLScanner
class. The stack trace looks like below from one of the crashes. Can you
please suggest me if anything is going wrong with build of the libraries or
possible problem with code.
[4]
libxerces-c-3.0.so:xercesc_3_0::SchemaValidator::preContentValidation(this
= ???, _ARG2 = ???, validateDefAttr = ???) (optimized), at
0xffffffff7483f5b0 (line ~809) in "SchemaValidator.cpp"
[5]
libxerces-c-3.0.so:xercesc_3_0::IGXMLScanner::resolveSchemaGrammar(this =
???, loc = ???, uri = ???) (optimized), at 0xffffffff745d2e24 (line ~1936)
in "IGXMLScanner2.cpp"
[6]
libxerces-c-3.0.so:xercesc_3_0::IGXMLScanner::parseSchemaLocation(this =
???, schemaLocationStr = ???) (optimized), at 0xffffffff745d1ba8 (line
~1764) in "IGXMLScanner2.cpp"
[7] libxerces-c-3.0.so:xercesc_3_0::IGXMLScanner::scanStartTagNS(this =
???, gotData = ???) (optimized), at 0xffffffff745b75d4 (line ~2210) in
"IGXMLScanner.cpp"
[8] libxerces-c-3.0.so:xercesc_3_0::IGXMLScanner::scanContent(this = ???)
(optimized), at 0xffffffff745b1214 (line ~897) in "IGXMLScanner.cpp"
[9] libxerces-c-3.0.so:xercesc_3_0::IGXMLScanner::scanDocument(this =
???, src = CLASS) (optimized), at 0xffffffff745acfc0 (line ~216) in
"IGXMLScanner.cpp"
[10] libxerces-c-3.0.so:xercesc_3_0::AbstractDOMParser::parse(this = ???,
source = STRUCT) (optimized), at 0xffffffff746a9110 (line ~535) in
"AbstractDOMParser.cpp"
[11] 0xffffffff761203f0(0x100bef120, 0x100e15a80, 0xffffffff6f87ca68,
0xec00, 0x100ebe580, 0x10099c798), at 0xffffffff761203f0
[12] 0xffffffff760e42f4(0x0, 0x100a95f10, 0x100a95f10, 0x0, 0x40,
0x100a95f08), at 0xffffffff760e42f4
[13] 0xffffffff760e1884(0xffffffff760e41a8, 0xffffffff7697629f,
0x100a95e50, 0x40, 0xffffffff76976278, 0xffffffff76976298), at
0xffffffff760e1884
[14] 0xffffffff7c6530f4(0x100a95e50, 0xffffffff76976278,
0xffffffff76976290, 0xffffffff760e0fb8, 0xffffffff76976278,
0xffffffff76976278), at 0xffffffff7c6530f4
Any guidance here is highly appreciated.
Thanks & Regards
-------------------------------------------------------
Debi Prasad Mishra,
IBM Global Services, AT&T Account,
Direct : 91-80-280-56692
Mobile : 91-99161-37621
e-mail : [email protected]
-------------------------------------------------------
Thanks & Regards
-------------------------------------------------------
Debi Prasad Mishra,
IBM Global Services, AT&T Account,
Direct : 91-80-280-56692
Mobile : 91-99161-37621
e-mail : [email protected]
-------------------------------------------------------