You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Stan <sy...@oblix.com> on 2001/03/13 03:42:32 UTC

xml:space in testXSLT causes core dump

Hi,

    Feeding the following xsl and xml into testXSLT from the debug build of Xalan 1.1
produces the following core dump:

begin XSL:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:template match="/">
   <SCRIPT language="JavaScript" xml:space="preserve" >
         <xsl:choose>
         </xsl:choose>
   </SCRIPT>
</xsl:template>
</xsl:stylesheet>
end XSL

begin XML:
<?xml version="1.0"?>
<docs>
</docs>
end XML

begin output:
E:\oisdir\oblix\apps\corpdir\bin\template>testxslt_d -in space.xml -xsl space.xs
l -out space.out
========= Parsing space.xsl ==========
Detected memory leaks!
Dumping objects ->
{5628} normal block at 0x00CB3B00, 20 bytes long.
 Data: <                > 0A 00 09 00 09 00 09 00 09 00 09 00 20 00 20 00
{5627} normal block at 0x00CB3040, 120 bytes long.
 Data: <f i l e : / / / > 66 00 69 00 6C 00 65 00 3A 00 2F 00 2F 00 2F 00
{5626} normal block at 0x00CB30F0, 74 bytes long.
 Data: <h t t p : / / w > 68 00 74 00 74 00 70 00 3A 00 2F 00 2F 00 77 00
{5625} normal block at 0x00CB3170, 8 bytes long.
 Data: <x s l   > 78 00 73 00 6C 00 00 00
{5624} normal block at 0x00CB31B0, 48 bytes long.
 Data: <     6          > 90 89 CA 00 80 36 CB 00 90 89 CA 00 CC CD CD CD
{5621} normal block at 0x00CB3290, 48 bytes long.
 Data: < 2       2      > 90 32 CB 00 90 89 CA 00 90 32 CB 00 CD CD CD CD
{5619} normal block at 0x00CB32F0, 32 bytes long.
 Data: < 2       2      > F0 32 CB 00 80 87 CA 00 F0 32 CB 00 CD CD CD CD
{5617} normal block at 0x00CB3340, 80 bytes long.
 Data: <@3  P   @3      > 40 33 CB 00 50 88 CA 00 40 33 CB 00 CD CD CD CD
{5615} normal block at 0x00CB3680, 48 bytes long.
 Data: < 1   1   1      > B0 31 CB 00 B0 31 CB 00 B0 31 CB 00 CD CD CD CD
{5613} normal block at 0x00CB33C0, 164 bytes long.
 Data: <  j   j         > A8 15 6A 00 94 15 6A 00 00 CD CD CD CC CC CD CD
{4891} normal block at 0x00CA8780, 32 bytes long.
 Data: <                > 00 00 00 00 00 00 00 00 00 00 00 00 CD CD CD CD
{4889} normal block at 0x00CA8850, 80 bytes long.
 Data: <                > 00 00 00 00 00 00 00 00 00 00 00 00 CD CD CD CD
{4885} normal block at 0x00CA8990, 48 bytes long.
 Data: <                > 00 00 00 00 00 00 00 00 00 00 00 00 CD CD CD CD
Object dump complete.


    Removing the xml:space in the <SCRIPT> tag, and also, not having XSL directives in the
<SCRIPT> tag scope does not cause this dump.

-Stan