← Back to team overview

openjdk team mailing list archive

[Bug 1611598] Re: jamvm is broken due to missing native methods in sun.misc.Unsafe

 

This bug was fixed in the package openjdk-7 -
7u111-2.6.7-0ubuntu0.14.04.3

---------------
openjdk-7 (7u111-2.6.7-0ubuntu0.14.04.3) trusty-security; urgency=medium

  * debian/rules:
    - fix typo (aarch64 -> arm64) and disable precompiled headers for
      arm64
    - remove compile file generated by automake during debian cleanup

openjdk-7 (7u111-2.6.7-0ubuntu0.14.04.2) trusty-security; urgency=medium

  * debian/patches/it-jamvm-8158260-unsafe-methods.patch: fix JAMVM
    after the introduction of two new Unsafe methods in the OpenJDK
    hotspot. Closes: #833933. (LP: #1611598)

openjdk-7 (7u111-2.6.7-0ubuntu0.14.04.1) trusty-security; urgency=medium

  [ Matthias Klose ]
  * Fix handling of /usr/lib/jvm/*/jre/lib/zi if internal tzdata is used
    (Andreas Beckmann). Closes: #821858.
  * Add missing includes for aarch64 hotspot backport (building without pch).
  * Use in-tree lcms for backports.

  [ Tiago Stürmer Daitx ]
  * IcedTea release 2.6.7 (based on 7u111):
  * Security fixes
    - S8079718, CVE-2016-3458: IIOP Input Stream Hooking
    - S8145446, CVE-2016-3485: Perfect pipe placement (Windows only)
    - S8147771: Construction of static protection domains under Javax
      custom policy
    - S8148872, CVE-2016-3500: Complete name checking
    - S8149962, CVE-2016-3508: Better delineation of XML processing
    - S8150752: Share Class Data
    - S8151925: Font reference improvements
    - S8152479, CVE-2016-3550: Coded byte streams
    - S8155981, CVE-2016-3606: Bolster bytecode verification
    - S8155985, CVE-2016-3598: Persistent Parameter Processing
    - S8158571, CVE-2016-3610: Additional method handle validation
  * debian/rules:
    - Create symbolic link in source package (thanks Avinash).
      Closes: #832720.
    - Use in-tree lcms (LP: #913434)
  * debian/JB-jre-headless.prerm.in: check for /var/lib/binfmts/jar
    instead of /var/lib/binfmts/@basename@ before removing jar entry
    from binfmts. Closes: #821146.

 -- Tiago Stürmer Daitx <tiago.daitx@xxxxxxxxxxxxx>  Thu, 11 Aug 2016
23:28:50 +0000

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-7 in Ubuntu.
https://bugs.launchpad.net/bugs/1611598

Title:
  jamvm is broken due to missing native methods in sun.misc.Unsafe

Status in OpenJDK:
  In Progress
Status in openjdk-7 package in Ubuntu:
  Confirmed
Status in openjdk-7 source package in Precise:
  Fix Released
Status in openjdk-7 source package in Trusty:
  Fix Released

Bug description:
  [Issue]
  The fix of OpenJDK's bug 8158260 (http://icedtea.classpath.org/hg/release/icedtea7-forest-2.6/hotspot/rev/4f8cbd54a9c6) introduced 2 new native methods to the sun.misc.Unsafe class: isBigEndian0 and unalignedAccess0.

  This completely broke JamVM and as of now it is impossible to start a
  jamvm session.

  jtreg summary results for OpenJDK 7:
  hotspot   - Test results: passed: 5; failed: 309; error: 7
  langtools - Test results: passed: 374; failed: 1,593; error: 1

  An error output from a testcase:
  ----------System.err:(6/344)----------
  Error initialising VM (initialiseMainThread)
  Check the README for compatible class-libraries/versions
  Exception occurred while printing exception (java/lang/NullPointerException)...
  Original exception was java/lang/UnsatisfiedLinkError
  Error: Could not create the Java Virtual Machine.
  Error: A fatal exception has occurred. Program will exit.
  result: Failed. Unexpected exit from test [exit code: 1]

  Running java -jamvm -version fails the same way.

  [Fix]
  The simple fix is to add both methods to the natives.c file in the classlib/openjdk directory.

  I have tested this with IcedTea 2.6.7 and now jtreg passes:
  hotspot   - Test results: passed: 220; failed: 90; error: 11
  langtools - Test results: passed: 1,901; failed: 65; error: 2

  I have reported this upstream at https://sourceforge.net/p/jamvm/code
  /merge-requests/1/ and it is now waiting review.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openjdk/+bug/1611598/+subscriptions


References