You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Matt Leinhos <ma...@granularity.net> on 2001/05/18 19:14:40 UTC

Compiling xalan-c bin w/ -NDEBUG

Hello,

I have found an intersting problem with xalan-c. When you compile a C++
program that uses xalan, with the g++ -NDEBUG=1 flag, that program will
die (SIGSEGV). The same program, when compiled without that flag, returns
and runs correctly. Has anyone had this same problem? If so, what was the
solution?

I'm going to try to trace down this problem today, but any help would be
appreciated. Here is some info on my development environ:
SuSE linux 7.1
std C++ lib rpm: libstdc++-devel-2.96-69 (need sstream support)
compiler: g++ 2.95.2.

Forgive me for the following mess, but for anyone to whom this may be
useful, I will insert below that stack trace of my program leading to the
death (caused by SIGSEGV).

Thank you in advance for any help you may be able to give.
Matt

stack dump:
in function static void SignalHandling::defaultSignalHandler(int) line 15
called from ./cmdline_test(defaultSignalHandler__14SignalHandlingi+0xfa)
[0x80519ca]
            /lib/libpthread.so.0(pthread_kill+0x240) [0x409f1970]
            /lib/libc.so.6(__libc_sigaction+0x130) [0x407b3b50]

/extra/downloads/work/xml-xalan/lib/libxalan-c1_1.so(locationPath__C5XPathP9XalanNodeiR21XPathExecutionContext+0x7c)
[0x4030a7ec]

/extra/downloads/work/xml-xalan/lib/libxalan-c1_1.so(executeMore__C5XPathP9XalanNodeiR21XPathExecutionContext+0xb84)
[0x403062c4]

/extra/downloads/work/xml-xalan/lib/libxalan-c1_1.so(executeMore__C5XPathP9XalanNodeiR21XPathExecutionContext+0x297)
[0x403059d7]

/extra/downloads/work/xml-xalan/lib/libxalan-c1_1.so(execute__C5XPathR21XPathExecutionContext+0xb0)
[0x40305520]

/extra/downloads/work/xml-xalan/lib/libxalan-c1_1.so(execute__C5XPathP9XalanNodeRC14PrefixResolverR21XPathExecutionContext+0x62)
[0x403055a2]

/extra/downloads/work/xml-xalan/lib/libxalan-c1_1.so(transformSelectedChildren__C19ElemTemplateElementR26StylesheetExecutionContextRC10StylesheetRC19ElemTemplateElementPC19ElemTemplateElementP9XalanNodeT5RC5QNamePC5XPathii+0x485)
[0x40340d85]

/extra/downloads/work/xml-xalan/lib/libxalan-c1_1.so(execute__C18ElemApplyTemplatesR26StylesheetExecutionContextP9XalanNodeT2RC5QName+0x153)
[0x4032e763]

/extra/downloads/work/xml-xalan/lib/libxalan-c1_1.so(executeChildren__C19ElemTemplateElementR26StylesheetExecutionContextP9XalanNodeT2RC5QName+0x65)
[0x4033fbd5]

/extra/downloads/work/xml-xalan/lib/libxalan-c1_1.so(execute__C12ElemTemplateR26StylesheetExecutionContextP9XalanNodeT2RC5QName+0x4c)
[0x4033f26c]

/extra/downloads/work/xml-xalan/lib/libxalan-c1_1.so(process__C14StylesheetRootP9XalanNodeR16XSLTResultTargetR26StylesheetExecutionContext+0x292)
[0x40368bf2]

/extra/downloads/work/xml-xalan/lib/libxalan-c1_1.so(process__14XSLTEngineImplRC15XSLTInputSourceT1R16XSLTResultTargetR29StylesheetConstructionContextR26StylesheetExecutionContext+0x9b2)
[0x403704d2]
            ./cmdline_test(__dynamic_cast+0xe22) [0x804cc02]
            ./cmdline_test(__dynamic_cast+0x3c2d) [0x804fa0d]
            ./cmdline_test(__dynamic_cast+0x12d) [0x804bf0d]
            /lib/libc.so.6(__libc_start_main+0xcf) [0x407a3baf]
            ./cmdline_test(__dynamic_cast+0x31) [0x804be11]
Aborted



------------------------------------
Matt Leinhos
Granularity Information Architecture