On 13/12/2011 14:35, Norman Walsh wrote:
Hi,

When using Saxon EE (but not HE), I have a pipeline that crashes like this:

----------------------------------------------------------------------
*** Internal Saxon error: local variable encountered whose binding has been deleted

Unfortunately this is a diagnostic that indicates the expression tree is in an invalid state, and despite all the detail that's dumped out, it tells us little about how it came to get into that state; to discover that we have to follow the internal logic of the optimizer, which means that we need a repro.

I think George Bina reported the same Calabash problem a few days ago? - and I put it on one side because we were preoccupied getting 9.4 out of the door. He supplied a bit more information and I'll see if this is enough to reconstruct it.

Michael Kay
Saxonica
Variable name: zz:zz1675131781
Line number of reference: 1 in null
Line number of declaration: 1 in null
DECLARATION:
<let variable="zz:zz1675131781" as="xs:string?">
  <be>
    <lazy>
      <checkCardinality occurs="zero or one">
        <forEach>
          <path>
            <path>
              <root/>
              <axis name="child" nodeTest="element()"/>
            </path>
            <axis name="attribute" nodeTest="{http://www.w3.org/XML/1998/namespace}base"/>
          </path>
          <return>
            <functionCall name="string">
              <dot/>
            </functionCall>
          </return>
        </forEach>
      </checkCardinality>
    </lazy>
  </be>
  <return>
    <path>
      <path>
        <root/>
        <axis name="descendant-or-self" nodeTest="node()"/>
      </path>
      <filterExpression>
        <axis name="child" nodeTest="element()"/>
        <indexedLookup>
          <variableReference name="zz:zz218280630" slot="1"/>
          <functionCall name="p:resolve-uri">
            <checkCardinality occurs="exactly one">
              <forEach>
                <axis name="attribute" nodeTest="href"/>
                <return>
                  <functionCall name="string">
                    <dot/>
                  </functionCall>
                </return>
              </forEach>
            </checkCardinality>
            <variableReference name="zz:zz1675131781" slot="-999"/>
          </functionCall>
        </indexedLookup>
      </filterExpression>
    </path>
  </return>
</let>SEVERE: Pipeline failed: java.lang.IllegalStateException: *** Internal Saxon error: local variable encountered whose binding has been deleted

I'm a little bit confused about how EE initializes itself, but I think
that's a separate issue. I fear it'll be very hard to produce a simple
test case for this problem, but I'll see what I can do.

In the meantime, if the trace above is sufficient to be helpful,
please let me know.

                                        Be seeing you,
                                          norm



------------------------------------------------------------------------------
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/


_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help