Bug #2699

XSLTTestSuiteDriver doesn't exit for some merge tests

Added by John Lumley over 4 years ago. Updated over 4 years ago.

Start date:
Due date:
% Done:


Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:


When running the XSLT 3 tests merge-072/-074/-077 the individual tests themselves complete, and the final result summary is printed to stderr, but the main program doesn't close, at least within an IntelliJ environment. It appears that these are the ONLY tests in the suite that cause this problem. I suspect some thread closing issue, but such arcane areas are beyond my ken.


#1 Updated by O'Neil Delpratt over 4 years ago

  • Status changed from New to In Progress
  • Assignee set to O'Neil Delpratt

Yes we are aware of this problem in the test suite driver. I had investigated this problem before the last maintenance release. I managed to narrow it down to a few tests in another test set, although I can't quite remember which one. I will try and look into this again now and report back shortly.

Thanks for identifying the test set.

#2 Updated by O'Neil Delpratt over 4 years ago

The test case merge-072 is causing the hanging:

  <test-case name="merge-072">
      <description>Merge failure, using the wrong collation.</description>
      <created by="Michael Kay" on="2015-09-10"/>
         <feature value="streaming"/>
         <stylesheet file="merge-071.xsl"/>
         <param name="collation" select="';caseFirst=upper;alternate=shifted'"/>
         <error code="XTDE2220"/>   

#3 Updated by O'Neil Delpratt over 4 years ago

  • Status changed from In Progress to Resolved
  • Priority changed from Low to Normal
  • Found in version changed from 9.8 to 9.7 9.8
  • Applies to branch 9.7 added
  • Fix Committed on Branch 9.7 added

The problem was in the failing case of the xsl:merge not properly closing after an exception is thrown.

Bug fixed in the processorLeavingTail method of the MergeInstr class by calling the method iter.close which in turn notifies the thread created in the PushToPull mthod

#4 Updated by O'Neil Delpratt over 4 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in Maintenance Release added

Bug fix applied in the Saxon maintenance release.

#5 Updated by O'Neil Delpratt over 4 years ago

  • Sprint/Milestone set to

Please register to edit this issue

Also available in: Atom PDF