You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/05/15 22:49:04 UTC

[Bug 1758] New - axes108 select="@*/following::comment()" axis causes endless loop

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1758

*** shadow/1758	Tue May 15 13:49:04 2001
--- shadow/1758.tmp.2166	Tue May 15 13:49:04 2001
***************
*** 0 ****
--- 1,73 ----
+ +============================================================================+
+ | axes108 select="@*/following::comment()" axis causes endless loop          |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 1758                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: 2.0.1                   |
+ |   Resolution:                            Platform: Sun                     |
+ |     Severity: Critical                 OS/Version: Solaris                 |
+ |     Priority: High                      Component: org.apache.xalan.xsltc  |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xalan-dev@xml.apache.org                                     |
+ |  Reported By: tamiro@east.sun.com                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ The axes tests axes108, axes110, and axes112 get stuck in endless loops causing
+ Java to overflow its stack. They have the following apply-templates
+ instructions:
+ 
+ axes108.xsl:      <xsl:apply-templates select="@*/following::comment()"/>
+ axes110.xsl:      <xsl:apply-templates
+ select="@*/following::processing-instruction()"/>
+ axes112.xsl:      <xsl:apply-templates select="@*/following::text()"/>
+ 
+ Interestingly, axes88 works!
+ axes88.xsl:      <xsl:apply-templates select="@*/following::*"/>
+ 
+ Here's what the output form axes108 looks like:
+ 
+ <?xml version="1.0" encoding="utf-8" ?>
+ <out>c2c3FirstLast<out>c2c3FirstLast<out>c2c3FirstLast<out>c2c3FirstLast<out>c2c3FirstLast<out>c2c3FirstLast<out>c2c3FirstLast<out>c2c3FirstLast<out>c2c3FirstLast<out>c2c3FirstLast<out>c2c3FirstLast<out>c2c3FirstLast<out>c2c3FirstLast<out>c2c3FirstLast<out>c2c3FirstLast<out>c2c3FirstLast<out>c2c3FirstLast<out>c2c3FirstLast<out>c2c3FirstLast<out>c2c3FirstLast<out>c2c3FirstLast<out>c2c3FirstLast<out>c2c3FirstLast<out>c2c3FirstLast<out>c2c3FirstLast<out>
+ Exception in thread "main" java.lang.StackOverflowError
+         at
+ org.apache.xalan.xsltc.runtime.TextOutput.lookupNamespace(TextOutput.java:699)
+         at
+ org.apache.xalan.xsltc.runtime.TextOutput.closeStartTag(TextOutput.java:238)
+         at
+ org.apache.xalan.xsltc.runtime.TextOutput.characters(TextOutput.java:367)
+         at org.apache.xalan.xsltc.dom.DOMImpl.characters(DOMImpl.java:2185)
+         at org.apache.xalan.xsltc.dom.DOMAdapter.characters(DOMAdapter.java:208)
+         at axes108.applyTemplates()
+         at axes108.applyTemplates()
+         at axes108.applyTemplates()
+         at axes108.applyTemplates()
+         at axes108.applyTemplates()
+         at axes108.applyTemplates()
+         at axes108.applyTemplates()
+         at axes108.applyTemplates()
+         at axes108.applyTemplates()
+ 
+ When you run the Xalan conformance test suite, it blows up when it gets to these
+ axes tests. Here's what happens
+ 
+ Runtime Error: null
+     FAIL!  StylesheetTestlet axes106.xsl
+     FAIL!  StylesheetTestlet axes107.xsl
+     FAIL!  StylesheetTestlet axes108.xsl threw: java.lang.StackOverflowError
+     FAIL!  StylesheetTestlet axes109.xsl
+     PASS!  StylesheetTestlet axes11.xsl
+ An irrecoverable stack overflow has occurred.
+ The conformance automation tried to keep going and soon thereafter
+ Java gave up the ghost with
+ 
+ #
+ # HotSpot Virtual Machine Error, Unexpected Signal 11
+ # Please report this error at
+ # http://java.sun.com/cgi-bin/bugreport.cgi
+ #
+ # Error ID: 4F533F534F4C415249530E435050079A 01
+ #
+ # Problematic Thread: prio=5 tid=0x29970 nid=0x1 runnable 
+ #