[ 
http://issues.apache.org/jira/browse/XALANC-447?page=comments#action_57380 ]
     
Robert Schiele commented on XALANC-447:
---------------------------------------

Ok, this is because StylesheetExecutionContextDefault::reset() calls for 
cleanup m_xsltProcessor->reset() first which destructs the object itself and 
later cleans up the pointer stack with m_xobjectPtrStack.clear() which triggers 
deletion of the reference. In between these two lines there is a dangling 
reference. Deleting this dangling reference kills the process.

Is it safe to move cleanup of the pointer stack upwards or the processor reset 
downwards? I am not aware of other dependencies between all those functions.

> 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