I saw this as well using Xalan-C 1.11/Xerces-C 3.1.1/ICU 53.1. For me crash 
happens in XalanDOM/XalanDOMString.cpp in the two constructors that have const 
XalanDOMChar* theString as the first argument. See lines 74 and 91 in source.

Solution for me was to modify my copy of the Xalan lib. For each constructor, 
change this:

if (*theString != 0)

to this:

if (theString != 0 && *theString != 0)


J. Matt Hills
Sr. Software Developer | Document Semantics
Phone:    +1 (972) 643 3054
Twitter:   @OpenTextEvents
Website: www.opentext.com<http://www.opentext.com/>

[http://www.opentext.com/file_source/OpenText/en_US/PNG/opentext_gxs-Feb4-250x35.png]<http://www.opentext.com/>

This email message is confidential, may be privileged, and is intended for the 
exclusive use of the addressee. Any other person is strictly prohibited from 
disclosing or reproducing it. If the addressee cannot be reached or is unknown 
to you, please inform the sender by return email and delete this email message 
and all copies immediately.

From: Jay Sprenkle [mailto:jspren...@gmail.com]
Sent: Thursday, October 09, 2014 4:14 PM
To: c-users@xalan.apache.org
Subject: Re: Segmentation fault running command line program "Xalan" (xalan c++ 
1.11, Xerces c++ 3.1.1, ICU 53.1)

I've seen it seg fault as well. In my case it was because of incorrect xsl but 
I haven't spent any time to narrow down specifics.

On Tue, Sep 30, 2014 at 3:41 PM, Matt Hills 
<mhi...@opentext.com<mailto:mhi...@opentext.com>> wrote:
When we call the XalanTransformer transform() method in our 32-bit C/C++ 
application it crashes. I then tried the Xalan program that is built as part of 
the Xalan package. When I run the command line program Xalan I get a 
segmentation fault:

Xalan test.xml test.xsl

The data files are attached.

I am building and running these components on 32-bit RedHat 4:

ICU 53.1
Xerces-c 3.1.1
Xalan-c 1.11

Has anyone seen the Xalan command line program crash like this? Has Xalan been 
tested on Red Hat 4 when built using ICU?

Thanks.




--
"Charlie, what are you thinking about?"
"I'm thinking about what I want and what I need."
"What do you need?"
"I need a peaceful soul"
"What do you want?"
"I want a bigger gun."

Reply via email to