xmlgraphics-commons version 1.4.dfsg-3ubuntu1 failed to build with openjdk-7

Bug #888129 reported by James Page
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openjdk-7 (Ubuntu)
Fix Released
Undecided
James Page
Quantal
Fix Released
Undecided
James Page
xmlgraphics-commons (Ubuntu)
Fix Released
High
James Page
Quantal
Fix Released
High
James Page

Bug Description

During a rebuild test on precise with default-jdk switched to openjdk-7, a build failure was detected for xmlgraphics-commons version 1.4.dfsg-3ubuntu1.

See attached log for full build failure details.

This log snippet might also be of interest:

    [javac] JPEGDecodeParam decodeParam,
    [javac] ^
    [javac] symbol: class JPEGDecodeParam
    [javac] location: class TIFFImage
    [javac] /«PKGBUILDDIR»/src/java/org/apache/xmlgraphics/java2d/StrokingTextHandler.java:58: warning: [deprecation] drawString(String,float,float) in TextHandler has been deprecated
    [javac] public void drawString(String text, float x, float y) {
    [javac] ^
    [javac] /«PKGBUILDDIR»/src/java/org/apache/xmlgraphics/xmp/XMPSchemaRegistry.java:54: warning: [deprecation] PDFAOldXMPSchema in org.apache.xmlgraphics.xmp.schemas.pdf has been deprecated
    [javac] addSchema(new PDFAOldXMPSchema());
    [javac] ^
    [javac] /«PKGBUILDDIR»/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFImage.java:146: error: cannot find symbol
    [javac] JPEGImageDecoder decoder = decodeParam == null ?
    [javac] ^
    [javac] symbol: class JPEGImageDecoder
    [javac] location: class TIFFImage
    [javac] /«PKGBUILDDIR»/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFImage.java:147: error: cannot find symbol
    [javac] JPEGCodec.createJPEGDecoder(jpegStream) :
    [javac] ^
    [javac] symbol: variable JPEGCodec
    [javac] location: class TIFFImage
    [javac] /«PKGBUILDDIR»/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFImage.java:148: error: cannot find symbol
    [javac] JPEGCodec.createJPEGDecoder(jpegStream,
    [javac] ^
    [javac] symbol: variable JPEGCodec
    [javac] location: class TIFFImage
    [javac] /«PKGBUILDDIR»/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFImage.java:594: error: cannot find symbol
    [javac] JPEGImageDecoder decoder =
    [javac] ^
    [javac] symbol: class JPEGImageDecoder
    [javac] location: class TIFFImage
    [javac] /«PKGBUILDDIR»/src/java/org/apache/xmlgraphics/image/codec/tiff/TIFFImage.java:595: error: cannot find symbol
    [javac] JPEGCodec.createJPEGDecoder(tableStream);
    [javac] ^
    [javac] symbol: variable JPEGCodec
    [javac] location: class TIFFImage
    [javac] 10 errors
    [javac] 11 warnings

BUILD FAILED
/«PKGBUILDDIR»/build.xml:222: Compile failed; see the compiler error output for details.

Total time: 5 seconds
make: *** [debian/stamp-ant-build] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
────────────────────────────────────────────────────────────────────────────────
Build finished at 20111109-1225

Finished
────────

E: Build failure (dpkg-buildpackage died)

Revision history for this message
James Page (james-page) wrote : Build log
tags: added: amd64 auto java7-ftbfs
James Page (james-page)
tags: added: prop-api
James Page (james-page)
Changed in xmlgraphics-commons (Ubuntu):
status: New → In Progress
importance: Undecided → High
assignee: nobody → James Page (james-page)
Revision history for this message
James Page (james-page) wrote :

    [junit] Testsuite: org.apache.xmlgraphics.image.loader.ImageLoaderTestCase
    [junit] #
    [junit] # A fatal error has been detected by the Java Runtime Environment:
    [junit] #
    [junit] # SIGSEGV (0xb) at pc=0x00002ae77100b1f8, pid=29173, tid=47171943581440
    [junit] #
    [junit] # JRE version: 7.0_03-b147
    [junit] # Java VM: OpenJDK 64-Bit Server VM (22.0-b10 mixed mode linux-amd64 compressed oops)
    [junit] # Derivative: IcedTea7 2.1.1pre
    [junit] # Distribution: Ubuntu 12.04 LTS, package 7~u3-2.1.1~pre1-1ubuntu3
    [junit] # Problematic frame:
    [junit] # C [liblcms2.so.2+0x121f8] cmsSaveProfileToIOhandler+0x38
    [junit] #
    [junit] # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
    [junit] #
    [junit] # An error report file with more information is saved as:
    [junit] # /«PKGBUILDDIR»/hs_err_pid29173.log
    [junit] #
    [junit] # If you would like to submit a bug report, please include
    [junit] # instructions on how to reproduce the bug and visit:
    [junit] # https://bugs.launchpad.net/ubuntu/+source/openjdk-7/
    [junit] #
    [junit] Testsuite: org.apache.xmlgraphics.image.loader.ImageLoaderTestCase
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit]
    [junit] Testcase: org.apache.xmlgraphics.image.loader.ImageLoaderTestCase:testICCProfiles: Caused an ERROR
    [junit] Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.
    [junit] junit.framework.AssertionFailedError: Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.
    [junit]

Revision history for this message
James Page (james-page) wrote :

Patch from upstream VCS fixes compilation - however iccProfile test causes OpenJDK7 to die.

Revision history for this message
James Page (james-page) wrote :

I'm wondering whether this is related to the ICC handling issue identified in bug 888123.

Revision history for this message
James Page (james-page) wrote :

If I switch out the symbolic link in /usr/lib/jvm/default-java/jre/lib/cmm to be a copy of the directory from the openjdk-7 install then I no longer get this SIGSEV.

However I do get:

    [junit] Testcase: testICCProfiles(org.apache.xmlgraphics.image.loader.ImageLoaderTestCase): FAILED
    [junit] Embedded ICC Profiles are not the same size! expected:<556> but was:<912>
    [junit] junit.framework.AssertionFailedError: Embedded ICC Profiles are not the same size! expected:<556> but was:<912>
    [junit] at org.apache.xmlgraphics.image.loader.ImageLoaderTestCase.testICCProfiles(ImageLoaderTestCase.java:176)

Revision history for this message
James Page (james-page) wrote :

Test failure reported upstream - able to reproduce on openjdk and oracle java 7.

https://issues.apache.org/bugzilla/show_bug.cgi?id=53328

Revision history for this message
James Page (james-page) wrote :

Same underlying cause as bug 888123 in openjdk-7 ICC profile handling causes the SIGSEV.

Changed in openjdk-7 (Ubuntu Quantal):
status: New → In Progress
assignee: nobody → James Page (james-page)
Revision history for this message
James Page (james-page) wrote :
tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xmlgraphics-commons - 1.4.dfsg-4ubuntu2

---------------
xmlgraphics-commons (1.4.dfsg-4ubuntu2) quantal; urgency=low

  * Fix FTBFS with openjdk-7 as default-jdk (LP: #888129):
    - d/patches/java7-compat.patch: Cherry picked patch from upstream
      VCS which removes the use of Sun Java 6 internal API's.
    - d/patches/disable-iccprofile-test.patch: Disable failing test
      with openjdk-7 until resolved upstream.
 -- James Page <email address hidden> Wed, 30 May 2012 17:21:51 +0100

Changed in xmlgraphics-commons (Ubuntu Quantal):
status: In Progress → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openjdk-7 - 7~u3-2.1.1~pre1-1ubuntu4

---------------
openjdk-7 (7~u3-2.1.1~pre1-1ubuntu4) quantal; urgency=low

  * Cherry picked patch from openjdk-6 to fix handling of
    ICC profiles (LP: #888123, #888129).
 -- James Page <email address hidden> Wed, 30 May 2012 16:55:20 +0100

Changed in openjdk-7 (Ubuntu Quantal):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.