Re: [xslt] libxslt causing Bus error on Mac OS X



Syd Bauman wrote:
> summary
> -------
> Trying to run xsltproc using a particular stylesheet causes "Bus
> error" in Mac OS X (both on a PowerPC and an Intel system). It does
> not matter what the input file is. The same version of xsltproc works
> just fine for lots of other stylesheets; on Ubuntu a slightly
> different version of xsltproc works using the same problematic
> stylesheet.
> 
> 
> setup
> -----
> The stylesheet is non-trivial. To generate it:
> $ cd /tmp/
> $ svn co https://tei.svn.sourceforge.net/svnroot/tei/trunk/Stylesheets
> $ cd Stylesheets/
> $ make dist
> 
> Then, to run a test:
> $ cd /tmp/
> $ xsltproc -v --stringparam lang en --stringparam TEIC true Stylesheets/release/tei-xsl/p5/odds/odd2relax.xsl text.xml
> where "test.xml" can be any input.

Just for fun I tried to duplicate this on my OSX with fink, same xsltproc
as you with 'test.xml' being
<?xml version="1.0"?>
<empty>
</empty>

$ /sw/bin/xsltproc --version
Using libxml 20627, libxslt 10115 and libexslt 812
xsltproc was compiled against libxml 20622, libxslt 10115 and libexslt 812
libxslt 10115 was compiled against libxml 20622
libexslt 812 was compiled against libxml 20622

No crash.

I then tried with SVN libxslt & xsltproc
$ ~/dev/libxslt/svn/xsltproc/xsltproc --version
Using libxml 20627, libxslt 10122-SVN1445 and libexslt 813
xsltproc was compiled against libxml 20627, libxslt 10122 and libexslt 813
libxslt 10122 was compiled against libxml 20627
libexslt 813 was compiled against libxml 20627

No crash.

I had a look at the extension loading and the fink xsltproc output was:
...
add extension prefix exsl
Registering extension prefix exsl : http://exslt.org/common
LIBXSLT_PLUGINS_PATH is (null)
Attempting to load plugin: /sw/lib/libxslt/1.1/exslt_org_common.so for URI: http
://exslt.org/common
xmlCheckFilename failed for plugin: /sw/lib/libxslt/1.1/exslt_org_common.so
add extension prefix estr
Registering extension prefix estr : http://exslt.org/strings
LIBXSLT_PLUGINS_PATH is (null)
Attempting to load plugin: /sw/lib/libxslt/1.1/exslt_org_strings.so for URI: htt
p://exslt.org/strings
xmlCheckFilename failed for plugin: /sw/lib/libxslt/1.1/exslt_org_strings.so
add extension prefix edate
Registering extension prefix edate : http://exslt.org/dates-and-times
LIBXSLT_PLUGINS_PATH is (null)
Attempting to load plugin: /sw/lib/libxslt/1.1/exslt_org_dates_and_times.so for
URI: http://exslt.org/dates-and-times
xmlCheckFilename failed for plugin: /sw/lib/libxslt/1.1/exslt_org_dates_and_time
s.so
exclude result prefix exsl

and clearly, with no crash.

You probably need to explain more, it might be something else in your
environment.

Dave



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]