Project

Profile

Help

Bad parent pointer message in Saxon-HE-9.8.0-2

Added by Vladimir Nesterovsky 28 days ago

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.


Replies (2)

RE: Bad parent pointer message in Saxon-HE-9.8.0-2 - Added by Michael Kay 28 days ago

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.

RE: Bad parent pointer message in Saxon-HE-9.8.0-2 - Added by Michael Kay 28 days ago

Logged as a bug here:

https://saxonica.plan.io/issues/3316

Please track this issue for an explanation and eventual resolution.

    (1-2/2)

    Please register to reply