Skip to content

Stack overflow with the Oracle runtime environment #1673

Description

@ways2read

I'm on a Windows machine running Java(TM) SE Runtime Environment (build 1.8.0_471-b09) from Oracle.

I run EPUBCheck, messages fly past and then I see the happy result:

Messages: 0 fatals / 0 errors / 0 warnings / 0 infos
However, if I think to scroll all the way back to the top of the messages I see that I had a stack overflow:

>java -jar epubcheck.jar 9780472901234.epub
Validating using EPUB version 3.3 rules.
java.lang.StackOverflowError
        at com.thaiopensource.relaxng.pattern.InterleavePattern.checkRestrictions(InterleavePattern.java:35)
        at com.thaiopensource.relaxng.pattern.InterleavePattern.checkRestrictions(InterleavePattern.java:35)

So I run EPUBCheck with -Xss to increase the thread stack size:

java -Xss10m -jar epubcheck.jar 9780472901234.epub

and the result is:

Check finished with errors
Messages: 1 fatal / 238 errors / 562 warnings / 0 infos

I guess three parts to this issue:

  • There was a stack overflow using the 32-bit JRE from java.com (the default offering)
  • I did not know there was a stack overflow until I happened to scroll all the way to the top.
  • What I actually saw was that EPUBCheck reported that there were 0 issues.

Metadata

Metadata

Assignees

Labels

status: acceptedReady to be further processedtype: false-negativeThis issue is about invalid content being incorrectly accepted

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions