You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Eric Vermetten <EV...@nl.alpnet.com> on 2001/02/10 19:39:35 UTC

--Java bug report-- forwarded for Xalan (Xerces)

Dear all,
Hereby the bug report I sent to SUN, which may have some
impact on Xalan and Xerces,

regards,
Eric Vermetten


<!-...@-->
______Subject:
# HotSpot Virtual Machine Error, EXCEPTION_STACK_OVERFLOW
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Error ID: 4F533F57494E13120E43505002D4

______Using:
Java:
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

OS:    NT 4.00.1381
Xerces: version 1.2.2
Xalan:  version 1.2.2

______Description:
When going from 859 -> 860 -> 861 -> 862 characters in XML element a
+) 859: XSLT transformation is succesfull (NO FILES for this situation
included)
+) 860 and 862: produce "normal" <<EXCEPTION_STACK_OVERFLOW exception>>'s
+) 861: the Hotspot Virual Machine Error occurs.

*) Xalan1.xsl is used in all three samples

<!--++++++++++++ Xalan1.xsl ++++++++++++++++++++-->
<?xml version="1.0"?> 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="html"/>

  <xsl:template match="/">
	<xsl:element name="wrap" >
		<xsl:apply-templates />
	</xsl:element>
  </xsl:template>

<xsl:template name="reverse">
   <xsl:param name="index" />

    <xsl:if test="$index &gt; 0">
        <xsl:call-template name="reverse">
           <xsl:with-param name="index" select="$index - 1" />
        </xsl:call-template>

          <xsl:value-of select="concat($index,'|')" />
    </xsl:if>
</xsl:template>

<xsl:template match="text()">
   <xsl:call-template name="reverse">
      <xsl:with-param name="index" select="string-length(.)"/>
   </xsl:call-template>
</xsl:template>


</xsl:stylesheet>

<!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++-->
<!--+++++++++ Java Error Stuff [-1-  860 characters in element a]
+++++++++++++++++-->
<!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++-->

<!--++++++++++++ Xalan1.xml ++++++++++++++++++++-->
<?xml version="1.0"?>
<wrap><a>0123456789012345678901234567890123456789012345678901234567890123456
7890123456789012345678901234567890123456789012345678901234567890123456789012
3456789012345678901234567890123456789012345678901234567890123456789012345678
9012345678901234567890123456789012345678901234567890123456789012345678901234
5678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456
7890123456789012345678901234567890123456789012345678901234567890123456789012
3456789012345678901234567890123456789012345678901234567890123456789012345678
9012345678901234567890123456789012345678901234567890123456789012345678901234
5678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456
789012345678901234567890123456789</a></wrap>

<!--++++++++++++ Xalan 1.2.2 transformation log output
++++++++++++++++++++-->
>>>>>>> Xalan Version 1.2.2, XML4J Version Xerces 1.2.2<<<<<<<
========= Parsing file:D:/e/sunXalan/Xalan1.xsl ==========
Parse of file:D:/e/sunXalan/Xalan1.xsl took 1292 milliseconds
========= Parsing file:D:/e/sunXalan/Xalan1.xml ==========
Parse of file:D:/e/sunXalan/Xalan1.xml took 210 milliseconds
=============================
Transforming...
# 
# An EXCEPTION_STACK_OVERFLOW exception has been detected in native code
outside the VM.
# Program counter=0x77f0d53f
#
# 
# An EXCEPTION_STACK_OVERFLOW exception has been detected in native code
outside the VM.
# Program counter=0x77f0d53f
#
# 
# An EXCEPTION_STACK_OVERFLOW exception has been detected in native code
outside the VM.
# Program counter=0x77f0d53f
#
Process completed with exit code -1073741571


<!--++++++++++++ Xalan 1.2.2 transformation result ++++++++++++++++++++-->
**EMPTY FILE OUTPUT**


<!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++-->
<!--++++++++++++ Java Error Stuff [-2-  861 characters in element a]
++++++++++++++++++++-->
<!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++-->

<!--++++++++++++ Xalan1.xml ++++++++++++++++++++-->
<?xml version="1.0"?>
<wrap><a>0123456789012345678901234567890123456789012345678901234567890123456
7890123456789012345678901234567890123456789012345678901234567890123456789012
3456789012345678901234567890123456789012345678901234567890123456789012345678
9012345678901234567890123456789012345678901234567890123456789012345678901234
5678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456
7890123456789012345678901234567890123456789012345678901234567890123456789012
3456789012345678901234567890123456789012345678901234567890123456789012345678
9012345678901234567890123456789012345678901234567890123456789012345678901234
5678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456
7890123456789012345678901234567890</a></wrap>

<!--++++++++++++ Xalan 1.2.2 transformation log output
++++++++++++++++++++-->
>>>>>>> Xalan Version 1.2.2, XML4J Version Xerces 1.2.2<<<<<<<
========= Parsing file:D:/e/sunXalan/Xalan1.xsl ==========
Parse of file:D:/e/sunXalan/Xalan1.xsl took 1302 milliseconds
========= Parsing file:D:/e/sunXalan/Xalan1.xml ==========
Parse of file:D:/e/sunXalan/Xalan1.xml took 220 milliseconds
=============================
Transforming...
#
# HotSpot Virtual Machine Error, EXCEPTION_STACK_OVERFLOW
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Error ID: 4F533F57494E13120E43505002D4
#

abnormal program termination
Process completed with exit code 3

<!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++-->
<!--++++++++++++ Java Error Stuff [-3-  862 characters in element a]
++++++++++++++++++++-->
<!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++-->

<!--++++++++++++ Xalan1.xml ++++++++++++++++++++-->
<?xml version="1.0"?>
<wrap><a>0123456789012345678901234567890123456789012345678901234567890123456
7890123456789012345678901234567890123456789012345678901234567890123456789012
3456789012345678901234567890123456789012345678901234567890123456789012345678
9012345678901234567890123456789012345678901234567890123456789012345678901234
5678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456
7890123456789012345678901234567890123456789012345678901234567890123456789012
3456789012345678901234567890123456789012345678901234567890123456789012345678
9012345678901234567890123456789012345678901234567890123456789012345678901234
5678901234567890123456789012345678901234567890123456789012345678901234567890
1234567890123456789012345678901234567890123456789012345678901234567890123456
78901234567890123456789012345678901</a></wrap>

<!--++++++++++++ Xalan 1.2.2 transformation log output
++++++++++++++++++++-->
>>>>>>> Xalan Version 1.2.2, XML4J Version Xerces 1.2.2<<<<<<<
========= Parsing file:D:/e/sunXalan/Xalan1.xsl ==========
Parse of file:D:/e/sunXalan/Xalan1.xsl took 1312 milliseconds
========= Parsing file:D:/e/sunXalan/Xalan1.xml ==========
Parse of file:D:/e/sunXalan/Xalan1.xml took 211 milliseconds
=============================
Transforming...
# 
# An EXCEPTION_STACK_OVERFLOW exception has been detected in native code
outside the VM.
# Program counter=0x50397d07
#
# 
# An EXCEPTION_STACK_OVERFLOW exception has been detected in native code
outside the VM.
# Program counter=0x50397d07
#
# 
# An EXCEPTION_STACK_OVERFLOW exception has been detected in native code
outside the VM.
# Program counter=0x50397d07
#
Process completed with exit code -1073741571