Bug#999900: epubcheck: java.lang.StackOverflowError

2022-01-27 Thread Mathieu Malaterre
Control: severity -1 important

Since this bug affects a limited set of architecture, I do not believe
severity can be set to `grave` (please correct if wrong).

On amd64:

```
% epubcheck /usr/share/doc/debian-policy/policy.epub
Validating using EPUB version 3.2 rules.
ERROR(PKG-006): /usr/share/doc/debian-policy/policy.epub(-1,-1):
Mimetype file entry is missing or is not the first file in the
archive.
INFO(HTM_053): /usr/share/doc/debian-policy/policy.epub/ch-opersys.xhtml(95,30):
Found an external file link (file://) in file: "reference external"
href="file:///usr/sh".

Check finished with errors
Messages: 0 fatals / 1 error / 0 warnings / 1 info

EPUBCheck completed
```



Bug#999900: epubcheck: java.lang.StackOverflowError

2021-11-18 Thread Jakub Wilk

Package: epubcheck
Version: 4.2.4-2
Severity: grave

On i386, epubcheck seems to always fail with stack overflow:

$ dpkg-query -W debian-policy
debian-policy   4.6.0.1

$ epubcheck /usr/share/doc/debian-policy/policy.epub
java.lang.StackOverflowError
at 
com.thaiopensource.relaxng.pattern.DuplicateAttributeDetector.startChoice(DuplicateAttributeDetector.java:42)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:30)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
[…]
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.OneOrMorePattern.checkRestrictions(OneOrMorePattern.java:36)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.InterleavePattern.checkRestrictions(InterleavePattern.java:37)
at 
com.thaiopensource.relaxng.pattern.InterleavePattern.checkRestrictions(InterleavePattern.java:35)
at 
com.thaiopensource.relaxng.pattern.ElementPattern.checkRestrictions(ElementPattern.java:42)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:34)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at 
com.thaiopensource.relaxng.pattern.ChoicePattern.checkRestrictions(ChoicePattern.java:31)
at