Bad parent pointer message in Saxon-HE-9.8.0-2
Saxon-HE-9.8.0-2 from maven issues a following text on output during compilation:
*** Bad parent pointer found in param at ...my.xslt#7 *** *** Bad parent pointer found in $e at ...my.xslt#9 *** *** Bad parent pointer found in $e at ...my.xslt#9 ***
on the following xslt:
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xsl:template name="t" as="node()*"> <xsl:param name="e" as="element()?"/> <xsl:sequence select="$e, $e"/> </xsl:template> </xsl:stylesheet>
Not sure whether it's an error of an info but it looks scaring.
This does not happen with earlier versions.
P.S. Use any input.
Thanks for reporting it. I have reproduced it.
The "bad parent pointer found" indicates that something has gone wrong usually while rewriting the expression tree during optimization. It's an early indicator of problems: very often the code recovers from the problem (the tree can be repaired) but sometimes a crash occurs later on as a consequence. So you're right, it's an indicator that there's a problem we need to fix.
Logged as a bug here:
Please track this issue for an explanation and eventual resolution.
Please register to reply