[ http://issues.apache.org/jira/browse/XALANC-447?page=history ]
     
Matt Hoyt resolved XALANC-447:
------------------------------

    Resolution: Fixed

Robert,
Thank you for the bug report and investigation.  It uncovered a couple of 
issues:

After some digging,  I managed to reproduce the exact bug when using a simple 
input document containing only a root element.
1) When an exception occured, an assertion/abort was generated because the 
XObjectPtr stack still had references to XObjects after the engine reset had 
freed the allocators.   This was fixed by clearing the stack before resetting 
the engine.
2) This example should not cause any exception.  The source of the exception 
was caused when an <xsl:for-each> element contained any <xsl:variables> but 
when executed did not select any children the variable stack became 
inconsistent.  This was fixed by checking to see if any children were executed 
before popping values off the stack.

Please try the latest CVS.

> Xalan crashes with "pure virtual method called"
> -----------------------------------------------
>
>          Key: XALANC-447
>          URL: http://issues.apache.org/jira/browse/XALANC-447
>      Project: XalanC
>         Type: Bug
>   Components: XalanC
>     Versions: 1.9
>  Environment: Linux/x86
>     Reporter: Robert Schiele
>      Fix For: CurrentCVS

>
> When you run the stylesheet
> <xsl:stylesheet version="1.0" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>   <xsl:template match="*">
>     <xsl:apply-templates select="current()" mode="a"/>
>   </xsl:template>
>   <xsl:template match="*" mode="a">
>     <xsl:apply-templates select="current()" mode="b"/>
>   </xsl:template>
>   <xsl:template match="*" mode="b">
>     <xsl:call-template name="a">
>       <xsl:with-param name="a">
>         <xsl:for-each select="*">
>           <xsl:variable name="a"/>
>         </xsl:for-each>
>       </xsl:with-param>
>     </xsl:call-template>
>   </xsl:template>
>   <xsl:template name="a"/>
> </xsl:stylesheet>
> on any XML file with "Xalan file.xml file.xsl" Xalan crashes with
> pure virtual method called
> Aborted
> This happens with self built Xalan and with the provided binaries for RedHat 
> 8.0.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to