You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Alain Le Guennec (JIRA)" <xa...@xml.apache.org> on 2006/09/04 09:54:22 UTC

[jira] Created: (XALANC-625) Spurious (though harmless) assert failure in XPath::findNodeSet() when an expression contains an empty node-set enclosed in parenthesis

Spurious (though harmless) assert failure in XPath::findNodeSet() when an expression contains an empty node-set enclosed in parenthesis
---------------------------------------------------------------------------------------------------------------------------------------

                 Key: XALANC-625
                 URL: http://issues.apache.org/jira/browse/XALANC-625
             Project: XalanC
          Issue Type: Bug
          Components: XPathC
    Affects Versions: 1.10
         Environment: winxpsp2
            Reporter: Alain Le Guennec
            Priority: Minor


There is a spurious (though apparently harmless) assert failure in XPath::findNodeSet() when compiled in Debug mode
if an expression contains an empty node-set enclosed in parenthesis, as in the following stylesheet:

<?xml version="1.0"  encoding = "ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
		<xsl:variable name="empty-nodeset" select="/.."/>
		<xsl:variable name="foo" select="($empty-nodeset)/@bar"/>
		<xsl:value-of select="count($foo)"/>
	</xsl:template>
</xsl:stylesheet>

Best regards,
Alain Le Guennec.

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Resolved: (XALANC-625) Spurious (though harmless) assert failure in XPath::findNodeSet() when an expression contains an empty node-set enclosed in parenthesis

Posted by "David Bertoni (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANC-625?page=all ]

David Bertoni resolved XALANC-625.
----------------------------------

    Fix Version/s: CurrentCVS
       Resolution: Fixed

Patch committed.

> Spurious (though harmless) assert failure in XPath::findNodeSet() when an expression contains an empty node-set enclosed in parenthesis
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XALANC-625
>                 URL: http://issues.apache.org/jira/browse/XALANC-625
>             Project: XalanC
>          Issue Type: Bug
>          Components: XPathC
>    Affects Versions: 1.10
>         Environment: winxpsp2
>            Reporter: Alain Le Guennec
>         Assigned To: David Bertoni
>            Priority: Minor
>             Fix For: CurrentCVS
>
>         Attachments: assertemptynodeset.xslt, nonemptynodeset.xml, nonemptynodeset.xsl, patch.diff
>
>
> There is a spurious (though apparently harmless) assert failure in XPath::findNodeSet() when compiled in Debug mode
> if an expression contains an empty node-set enclosed in parenthesis, as in the following stylesheet:
> <?xml version="1.0"  encoding = "ISO-8859-1"?>
> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> 	<xsl:template match="/">
> 		<xsl:variable name="empty-nodeset" select="/.."/>
> 		<xsl:variable name="foo" select="($empty-nodeset)/@bar"/>
> 		<xsl:value-of select="count($foo)"/>
> 	</xsl:template>
> </xsl:stylesheet>
> Best regards,
> Alain Le Guennec.

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Assigned: (XALANC-625) Spurious (though harmless) assert failure in XPath::findNodeSet() when an expression contains an empty node-set enclosed in parenthesis

Posted by "David Bertoni (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANC-625?page=all ]

David Bertoni reassigned XALANC-625:
------------------------------------

    Assignee: David Bertoni

> Spurious (though harmless) assert failure in XPath::findNodeSet() when an expression contains an empty node-set enclosed in parenthesis
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XALANC-625
>                 URL: http://issues.apache.org/jira/browse/XALANC-625
>             Project: XalanC
>          Issue Type: Bug
>          Components: XPathC
>    Affects Versions: 1.10
>         Environment: winxpsp2
>            Reporter: Alain Le Guennec
>         Assigned To: David Bertoni
>            Priority: Minor
>         Attachments: assertemptynodeset.xslt, nonemptynodeset.xml, nonemptynodeset.xsl, patch.diff
>
>
> There is a spurious (though apparently harmless) assert failure in XPath::findNodeSet() when compiled in Debug mode
> if an expression contains an empty node-set enclosed in parenthesis, as in the following stylesheet:
> <?xml version="1.0"  encoding = "ISO-8859-1"?>
> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> 	<xsl:template match="/">
> 		<xsl:variable name="empty-nodeset" select="/.."/>
> 		<xsl:variable name="foo" select="($empty-nodeset)/@bar"/>
> 		<xsl:value-of select="count($foo)"/>
> 	</xsl:template>
> </xsl:stylesheet>
> Best regards,
> Alain Le Guennec.

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANC-625) Spurious (though harmless) assert failure in XPath::findNodeSet() when an expression contains an empty node-set enclosed in parenthesis

Posted by "Dmitry Hayes (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANC-625?page=comments#action_12455840 ] 
            
Dmitry Hayes commented on XALANC-625:
-------------------------------------

The patch looks ok . Let's commit it . Thanks!

> Spurious (though harmless) assert failure in XPath::findNodeSet() when an expression contains an empty node-set enclosed in parenthesis
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XALANC-625
>                 URL: http://issues.apache.org/jira/browse/XALANC-625
>             Project: XalanC
>          Issue Type: Bug
>          Components: XPathC
>    Affects Versions: 1.10
>         Environment: winxpsp2
>            Reporter: Alain Le Guennec
>         Assigned To: David Bertoni
>            Priority: Minor
>         Attachments: assertemptynodeset.xslt, nonemptynodeset.xml, nonemptynodeset.xsl, patch.diff
>
>
> There is a spurious (though apparently harmless) assert failure in XPath::findNodeSet() when compiled in Debug mode
> if an expression contains an empty node-set enclosed in parenthesis, as in the following stylesheet:
> <?xml version="1.0"  encoding = "ISO-8859-1"?>
> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> 	<xsl:template match="/">
> 		<xsl:variable name="empty-nodeset" select="/.."/>
> 		<xsl:variable name="foo" select="($empty-nodeset)/@bar"/>
> 		<xsl:value-of select="count($foo)"/>
> 	</xsl:template>
> </xsl:stylesheet>
> Best regards,
> Alain Le Guennec.

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANC-625) Spurious (though harmless) assert failure in XPath::findNodeSet() when an expression contains an empty node-set enclosed in parenthesis

Posted by "David Bertoni (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANC-625?page=comments#action_12455798 ] 
            
David Bertoni commented on XALANC-625:
--------------------------------------

This assert actually uncovered what is a more serious error.  In cases where executeMore() returns a non-null XObjectPtr, that value should be used, but the code in group() is actually ignoring it.

I'm attaching a stylesheet and source document that not only trip the assert, but also return an incorrect result.

A patch will follow.

> Spurious (though harmless) assert failure in XPath::findNodeSet() when an expression contains an empty node-set enclosed in parenthesis
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XALANC-625
>                 URL: http://issues.apache.org/jira/browse/XALANC-625
>             Project: XalanC
>          Issue Type: Bug
>          Components: XPathC
>    Affects Versions: 1.10
>         Environment: winxpsp2
>            Reporter: Alain Le Guennec
>            Priority: Minor
>         Attachments: assertemptynodeset.xslt, nonemptynodeset.xml, nonemptynodeset.xsl
>
>
> There is a spurious (though apparently harmless) assert failure in XPath::findNodeSet() when compiled in Debug mode
> if an expression contains an empty node-set enclosed in parenthesis, as in the following stylesheet:
> <?xml version="1.0"  encoding = "ISO-8859-1"?>
> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> 	<xsl:template match="/">
> 		<xsl:variable name="empty-nodeset" select="/.."/>
> 		<xsl:variable name="foo" select="($empty-nodeset)/@bar"/>
> 		<xsl:value-of select="count($foo)"/>
> 	</xsl:template>
> </xsl:stylesheet>
> Best regards,
> Alain Le Guennec.

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org