Project

Profile

Help

Bug #2810

closed

ByteCode generation failure during compilation in 9.7

Added by O'Neil Delpratt over 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Category:
Byte code generation
Sprint/Milestone:
-
Start date:
2014-11-11
Due date:
% Done:

100%

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

Description

The dita test FO/xep step (FO_xep-none.xml is simplest) extracted from tests/john/dita/ATests is failing. Used the command:

-xsl:../DITA-OT1.8.5/plugins/org.dita.pdf2.SAXON/xsl/fo/topic2fo_shell_xep.xsl -s:stage1a.xml -t  -xsltversion:3.0 -diag:none/stats.xml -o:none/out.xml

fails during compilation with the following stack trace:

Generating byte code...
**** endMethod failed
Exception in thread "main" java.lang.AssertionError: The Label: returnNullItem has been used but not marked
	at com.saxonica.ee.bytecode.util.GeneratedMethodInfo.checkLabels(GeneratedMethodInfo.java:147)
	at com.saxonica.ee.bytecode.util.CompilerService.popCurrentMethodInfo(CompilerService.java:874)
	at com.saxonica.ee.bytecode.FilterExpressionCompiler.makeFilterIteratorClass(FilterExpressionCompiler.java:455)
	at com.saxonica.ee.bytecode.FilterExpressionCompiler.compileToIterator(FilterExpressionCompiler.java:366)
	at com.saxonica.ee.bytecode.util.CompilerService.compileToIterator(CompilerService.java:760)
	at com.saxonica.ee.bytecode.StaticFunctionCallCompiler.compileToIterator(StaticFunctionCallCompiler.java:57)
	at com.saxonica.ee.bytecode.util.CompilerService.compileToIterator(CompilerService.java:760)
	at com.saxonica.ee.bytecode.SlashExpressionCompiler.generateMappingFunction(SlashExpressionCompiler.java:115)
	at com.saxonica.ee.bytecode.SlashExpressionCompiler.compileToIterator(SlashExpressionCompiler.java:56)
	at com.saxonica.ee.bytecode.util.CompilerService.compileToIterator(CompilerService.java:760)
	at com.saxonica.ee.bytecode.DocumentSorterCompiler.compileToIterator(DocumentSorterCompiler.java:28)
	at com.saxonica.ee.bytecode.ExpressionCompiler.compileToLoop(ExpressionCompiler.java:226)
	at com.saxonica.ee.bytecode.util.CompilerService.compileToLoop(CompilerService.java:866)
	at com.saxonica.ee.bytecode.CountCompiler.compileToPrimitive(CountCompiler.java:45)
	at com.saxonica.ee.bytecode.ExpressionCompiler.compileItemFromInt(ExpressionCompiler.java:319)
	at com.saxonica.ee.bytecode.CountCompiler.compileToItem(CountCompiler.java:65)
	at com.saxonica.ee.bytecode.util.CompilerService.compileToItem(CompilerService.java:786)
	at com.saxonica.ee.bytecode.ArithmeticCompiler.compileToItem(ArithmeticCompiler.java:58)
	at com.saxonica.ee.bytecode.ToItemCompiler.compileToPush(ToItemCompiler.java:116)
	at com.saxonica.ee.bytecode.util.CompilerService.compileToPush(CompilerService.java:773)
	at com.saxonica.ee.bytecode.LetExpressionCompiler.compileToPush(LetExpressionCompiler.java:105)
	at com.saxonica.ee.bytecode.util.CompilerService.compileToPush(CompilerService.java:773)
	at com.saxonica.ee.bytecode.util.CompilerService.compileToByteCode(CompilerService.java:641)
	at com.saxonica.ee.optim.OptimizerEE.compileToByteCode(OptimizerEE.java:1460)
	at net.sf.saxon.style.XSLTemplate.generateByteCode(XSLTemplate.java:873)
	at net.sf.saxon.style.PrincipalStylesheetModule.compile(PrincipalStylesheetModule.java:1322)
	at net.sf.saxon.style.Compilation.compilePackage(Compilation.java:264)
	at net.sf.saxon.style.StylesheetModule.loadStylesheet(StylesheetModule.java:260)
	at net.sf.saxon.style.Compilation.compileSingletonPackage(Compilation.java:101)
	at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:856)
	at net.sf.saxon.Transform.doTransform(Transform.java:729)
	at net.sf.saxon.Transform.main(Transform.java:78)


Related issues

Copied from Saxon - Bug #2218: ByteCode generation failure during compilation in 9.6ClosedO'Neil Delpratt2014-11-11

Actions
Actions #1

Updated by O'Neil Delpratt over 8 years ago

  • Copied from Bug #2218: ByteCode generation failure during compilation in 9.6 added
Actions #2

Updated by O'Neil Delpratt over 8 years ago

  • Applies to branch 9.8 added

The fix applied under 9.6.0.2 (See https://saxonica.plan.io/issues/2218) needs to be applied here.

Actions #3

Updated by O'Neil Delpratt over 8 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
  • Fix Committed on Branch 9.7, 9.8 added

Bug fixed in the ValueComparisonCompiler class and committed to svn.

Actions #4

Updated by O'Neil Delpratt over 8 years ago

  • Fixed in Maintenance Release 9.7.0.7 added

Bug fix applied in the Saxon 9.7.0.7 maintenance release.

Actions #5

Updated by O'Neil Delpratt over 8 years ago

  • Status changed from Resolved to Closed
Actions #6

Updated by O'Neil Delpratt over 7 years ago

  • Applies to branch trunk added
  • Applies to branch deleted (9.8)
Actions #7

Updated by O'Neil Delpratt over 7 years ago

  • Fix Committed on Branch trunk added
  • Fix Committed on Branch deleted (9.8)

Please register to edit this issue

Also available in: Atom PDF