David,
Commenting out the sqrt(-2.01) code from
DoubleSupport.cpp does help. There is no crash
anymore. Turns out, yesterday, when I was trying it,
it was still picking up an old xalan lib from another
path. After I cleaned it up and tested it, there is
no crash anymore. Now that we know that is the
problem, what is the next step. Could that variable
be initialized to something else. Can I use a
workaround.
You also talked about running the xalan executable to
test it if it runs fine. Where can I get it. The
problem is, after building xalan libraries, while
building the TestXSLT package, the build fails with
compiler errors and bails out(see below), so I am not
sure if the xalan executable is supposed to be built
after that.
Let me know.
Thanks
Prasad
xlC_r -g -qthreaded -DAIX -D_THREAD_SAFE
-qstaticinline -I/stlport -DXALAN_INMEM_MSG_LOADER
-DXALAN_USE_ICU -c
-I/home/essfs1/rmysore/xml-xalan/c/src
-I/home/essfs1/rmysore/xml-xalan/c/include
-I../../nls/include
-I/home/essfs1/rmysore/xerces-c-src_2_6_0/src/
-I/home/essfs1/rmysore/xerces-c-src_2_6_0/include/xercesc
-I/home/essfs1/rmysore/xerces-c-src_2_6_0/include/
-I/home/essfs1/rmysore/icu/include -o
../../obj/process.o
/home/essfs1/rmysore/xml-xalan/c/src/xalanc/TestXSLT/process.cpp
"/home/essfs1/rmysore/xml-xalan/c/src/xalanc/TestXSLT/process.cpp",
line 631.29: 1540-0218 (S) The call does not match any
parameter list for "FormatterToText::FormatterToText".
"/home/essfs1/rmysore/xml-xalan/c/src/xalanc/XMLSupport/FormatterToText.hpp",
line 54.9: 1540-1283 (I)
"xalanc_1_9::FormatterToText::FormatterToText(MemoryManagerType
&)" is not a viable candidate.
"/home/essfs1/rmysore/xml-xalan/c/src/xalanc/TestXSLT/process.cpp",
line 631.29: 1540-0215 (I) The wrong number of
arguments have been specified for
"xalanc_1_9::FormatterToText::FormatterToText(MemoryManagerType
&)".
"/home/essfs1/rmysore/xml-xalan/c/src/xalanc/XMLSupport/FormatterToText.hpp",
line 63.9: 1540-1283 (I)
"xalanc_1_9::FormatterToText::FormatterToText(Writer
&, bool, bool, MemoryManagerType &)" is not a viable
candidate.
"/home/essfs1/rmysore/xml-xalan/c/src/xalanc/TestXSLT/process.cpp",
line 631.50: 1540-0256 (I) A parameter of type
"xalanc_1_9::Writer &" cannot be initialized with an
expression of type "xercesc_2_6::MemoryManager".
"/home/essfs1/rmysore/xml-xalan/c/src/xalanc/XMLSupport/FormatterToText.hpp",
line 77.9: 1540-1283 (I)
"xalanc_1_9::FormatterToText::FormatterToText(Writer
&, const XalanDOMString &, bool, bool,
MemoryManagerType &)" is not a viable candidate.
"/home/essfs1/rmysore/xml-xalan/c/src/xalanc/TestXSLT/process.cpp",
line 631.50: 1540-0256 (I) A parameter of type
"xalanc_1_9::Writer &" cannot be initialized with an
expression of type "xercesc_2_6::MemoryManager".
"/home/essfs1/rmysore/xml-xalan/c/src/xalanc/XMLSupport/FormatterToText.hpp",
line 224.9: 1540-1283 (I)
"xalanc_1_9::FormatterToText::FormatterToText(const
FormatterToText &)" is not a viable candidate.
"/home/essfs1/rmysore/xml-xalan/c/src/xalanc/TestXSLT/process.cpp",
line 631.29: 1540-0215 (I) The wrong number of
arguments have been specified for
"xalanc_1_9::FormatterToText::FormatterToText(const
FormatterToText &)".
"/home/essfs1/rmysore/xml-xalan/c/src/xalanc/TestXSLT/process.cpp",
line 658.33: 1540-0218 (S) The call does not match any
parameter list for "FormatterToHTML::FormatterToHTML".
"/home/essfs1/rmysore/xml-xalan/c/src/xalanc/XMLSupport/FormatterToHTML.hpp",
line 75.9: 1540-1283 (I)
"xalanc_1_9::FormatterToHTML::FormatterToHTML(Writer
&, const XalanDOMString &, const XalanDOMString &,
const XalanDOMString &, const XalanDOMString &, bool,
int, bool, bool, MemoryManagerType &)" is not a viable
candidate.
"/home/essfs1/rmysore/xml-xalan/c/src/xalanc/TestXSLT/process.cpp",
line 659.25: 1540-0256 (I) A parameter of type
"xalanc_1_9::Writer &" cannot be initialized with an
expression of type "xercesc_2_6::MemoryManager".
gmake[1]: *** [../../obj/process.o] Error 1
--- [EMAIL PROTECTED] wrote:
> > Thanks for the fast response David.
> >
> > I can now build the debug version of the libraries
> > using the workaround.
> >
> > But the solution you suggested for the crash,
> doesnt
> > seem to help. I commented out that code
> (sqrt(-2.01))
> > and I still get a crash. here is a snippet of my
> dbx
> > session. I will play around a little bit more
> > tomorrow.
> >
> > (dbx) stop in XalanTransformer::initialize
> > [8] stop in
> >
>
xalanc_1_9::XalanTransformer::initialize(xercesc_2_6::MemoryManager&)
> > (dbx) c
> > [8] stopped in
> >
>
xalanc_1_9::XalanTransformer::initialize(xercesc_2_6::MemoryManager&)
> > at 0x1059f4cc ($t1)
> > 0x1059f4cc
> >
>
(xalanc_1_9::XalanTransformer::initialize(xercesc_2_6::MemoryManager&))
> > 81823830 lwz r12,0x3830(r2)
>
> Are you sure you're initializing Xerces-C before you
> initialize Xalan-C?
> That's a requirement.
>
> If you are initializing Xerces-C, then I suggest you
> run the debug version
> of Xalan-C, to see if you can reproduce the problem.
>
> Dave
>
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/