Have you rebuilt Xerces as well? If so, you may get some ideas of what's
going on from the parameters passed into SAXParser::startElement(). We
built Xalan on AIX 4.3 using VisualAge C++ 5.02, so it should work. There
may be some sort of compiler version mismatch going on, which should clear
up if you rebuild Xerces.
As far as the errors from dbx are concerned, I have no idea what the
problem is. It's particularly strange, as those seem to be files from
VAC++, not from Xalan.
Luckily, we rarely have platform-specific bugs, so we can usually debug
where the environment is more friendly.
Dave
"James Gajnak"
<[EMAIL PROTECTED] To:
[email protected]
.com> cc: (bcc: David N
Bertoni/Cambridge/IBM)
Subject: Re: Xalan 1.3 on AIX
02/05/2002 12:05
PM
An update, and a another question...
(This is being done on an AIX 4.3.3, VAC++ 5.0 machine)
No matter what I tried, I couldn't get the pre-built libs in the AIX Xalan
C++ distribution to work. I tried re-tracing my steps, re-downloading,
everything, and to no avail. Thus, I figured I'd try to rebuild the entire
package from the source.
The build seemed to go fine - a few compiler warnings, but everything
compiled and linked just fine.
New problems appeared when I tried to run the Xalan binary on the samples
foo.xml and foo.xsl. After copying the foo* files to my $XALANCROOT/bin
directory, I ran "./Xalan foo.xml foo.xsl". The program SEGV'd soon after
that.
One reply I had to my previous message said that not all of the programs
had
been ported to all the *nixes yet. So, I wrote my own which I thought
should
have worked - it also SEGV'd.
In hopes of getting more information, I rebuilt Xalan as a debug version,
and captured my output. dbx seems to be choking on Xalan (seems fine on
every other program I've written, though), so I got about 600KB of
dbx-related error messages.
Since most of the output was repetative, I noted it inside of C comments,
and I've pasted my 4.4KB log at the end of this email. Have any of you seen
anything like this?
If anyone would like the entire log, let me know and I can find a way to
get
it to you.
I'd appreciate any advice and/or comments you have...
Best,
--Jim
$ dbx Xalan
Type 'help' for help.
reading symbolic information ...
internal error: unexpected value 58 at line 3935 in file stabstring.c
/* above line repeated 74 more times */
(dbx) run foo.xml foo.xsl
internal error: unexpected value 58 at line 3935 in file stabstring.c
internal error: unexpected value 95 at line 3935 in file stabstring.c
/* above two lines repeated another 186 more times - random placement */
internal error: assertion failed at line 2569 in file stabstring.c
internal error: assertion failed at line 2569 in file stabstring.c
internal error: unexpected value 58 at line 3935 in file stabstring.c
internal error: unexpected value 95 at line 3935 in file stabstring.c
/* above two lines repeated another 139 more times - random placement */
internal error: 1283-228 expected char ',', found /*...*/
/* LOTS of errors similar to the above - 72 lines worth */
/* the /*...*/ would contain what looks like mangled names of various
functions */
/* there's about 15k characters in each one */
internal error: 1283-232 index("64,32;;", ':') failed
internal error: unexpected value 58 at line 3935 in file stabstring.c
internal error: unexpected value 95 at line 3935 in file stabstring.c
/* above two lines repeated another 19 more times - random placement */
internal error: assertion failed at line 2569 in file stabstring.c
internal error: assertion failed at line 2569 in file stabstring.c
internal error: unexpected value 58 at line 3935 in file stabstring.c
internal error: unexpected value 95 at line 3935 in file stabstring.c
/* above two lines repeated another 61 more times - random placement */
Segmentation fault in
StylesheetHandler.__opb__Q3_3std6vectorXTbTQ2_3std9allocatorXTb() const at
line 352 in file "/usr/vacpp/include/vector"
352 {return ((*_Ptr & _Mask) != 0); }
(dbx) where
StylesheetHandler.__opb__Q3_3std6vectorXTbTQ2_3std9allocatorXTb()
const(0x2ff20cc8), line 352 in "vector"
StylesheetHandler.__as__Q3_3std6vectorXTbTQ2_3std9allocatorXTb(0x2ff20cc0,
0x2ff20cc8), line 340 in "vector"
unnamed block $b4308, line 521 in "xutility"
StylesheetHandler.copy(0x2ff20d30, 0x0, 0x403d8da9, 0x0, 0x203d8da9, 0x7,
0x403d8da8), line 521 in "xutility"
StylesheetHandler.erase(0x2ff2133c, 0x2ff20d90, 0x7, 0x403d8da8), line 659
in "vector"
StylesheetHandler.pop_back(0x2ff2133c), line 622 in "vector"
StylesheetHandler::endElement(const unsigned short* const)(this =
0x2ff212b8, name = 0x203e7818), line 1629 in "StylesheetHandler.cpp"
startElement__9SAXParserFRC14XMLElementDeclCUiCPCUsRC11RefVectorOfXT7XMLAttr_CUiCbCb
)
at 0x201535d8
scanStartTag__10XMLScannerFRb() at 0x20065158
scanContent__10XMLScannerFCb() at 0x20061014
scanDocument__10XMLScannerFRC11InputSourceCb() at 0x20060210
parse__9SAXParserFRC11InputSourceCb() at 0x20152540
XercesParserLiaison.parseXMLStream(const
InputSource&,DocumentHandler&,const
XalanDOMString&)(0x203a6ac0, 0x2ff21e30, 0x2ff212b8, 0x2ff21430), line 204
in "XercesParserLiaison.cpp"
XalanSourceTreeParserLiaison.parseXMLStream(const
InputSource&,DocumentHandler&,const XalanDOMString&)(0x203a6ab8,
0x2ff21e30,
0x2ff212b8, 0x2ff21430), line 213 in "XalanSourceTreeParserLiaison.cpp"
unnamed block $b4574, line 509 in "XSLTEngineImpl.cpp"
unnamed block $b4572, line 509 in "XSLTEngineImpl.cpp"
XSLTEngineImpl.processStylesheet(const
XSLTInputSource&,StylesheetConstructionContext&)(0x2ff21970, 0x2ff21e30,
0x2ff21b08), line 509 in "XSLTEngineImpl.cpp"
XSLTEngineImpl.process(const XSLTInputSource&,const
XSLTInputSource&,XSLTResultTarget&,StylesheetConstructionContext&,StylesheetExecutionContext&)(0x2ff21970,
0x2ff21b80, 0x2ff21e30, 0x2ff21b38, 0x2ff21b08, 0x203a1758), line 277 in
"XSLTEngineImpl.cpp"
unnamed block $b5102, line 359 in "XalanTransformer.cpp"
XalanTransformer.transform(const XalanParsedSource&,const
XSLTInputSource&,const XSLTResultTarget&)(0x2ff21d28, 0x203a2298,
0x2ff21e30, 0x2ff21e50), line 359 in "XalanTransformer.cpp"
unnamed block $b5127, line 661 in "XalanTransformer.cpp"
XalanTransformer.transform(const XSLTInputSource&,const
XSLTInputSource&,const XSLTResultTarget&)(0x2ff21d28, 0x2ff21e10,
0x2ff21e30, 0x2ff21e50), line 661 in "XalanTransformer.cpp"
unnamed block $b9, line 374 in "XalanExe.cpp"
unnamed block $b7, line 374 in "XalanExe.cpp"
xsltMain(int,const char**)(argc = 3, argv = 0x2ff21f54), line 374 in
"XalanExe.cpp"
main(argc = 3, argv = 0x2ff21f54), line 422 in "XalanExe.cpp"
(dbx) quit
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com