> Hello,
>  I am using Xerces-C 1.6 and Xalan-C 1.3 on RedHat Linux 7.1. My
> application makes use of C++ STL and I get crashes at random points.
> I've came to a small sample that always crashes on my system. Sample
> source, compile commands and stack trace are attached below.
>   I am pretty sure I have a valid Xalan installation because all code
> that uses Xalan but doesn't use STL streams never crashes (same for code
> that uses STL but doesn't use Xalan).
> Is it possible that Xalan is not compatible with STL streams? Any ideas?

No, it's not possible.  If you look at the examples, you'll see we use
iostreams in many of them and they are all tested before we release a
build.  You are probably seeing conflicts between different versions of
libstdc++. Doing an ldd on your binary and on the Xalan library will show
if your application is linking against multiple versions of the library. It
also may be the case that you have a different, incompatible version of the
library (see my later comment about bogus versions of gcc on RedHat).

You didn't say whether or not you've rebuilt the Xalan binaries locally,
but, if you haven't, you must use the same version of gcc we used.  The
documentation states that the 1.3 distribution was built with egcs 2.91.66.
If you are not using that version, you must rebuild both the Xerces and
Xalan binaries with the version of gcc you're using.

If you _have_ re-built the binaries locally, and you're using the stock
compiler supplied with RedHat 7.1, you should really consider upgrading the
compiler to gcc 3.1, as RedHat has knowingly shipped broken versions of gcc
with their distributions.

Dave

Reply via email to