jamvm is broken due to missing native methods in sun.misc.Unsafe
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenJDK |
Fix Released
|
Medium
|
|||
openjdk-7 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
High
|
Unassigned | ||
Trusty |
Fix Released
|
High
|
Unassigned |
Bug Description
[Issue]
The fix of OpenJDK's bug 8158260 (http://
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:
-------
Error initialising VM (initialiseMain
Check the README for compatible class-libraries
Exception occurred while printing exception (java/lang/
Original exception was java/lang/
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:/
Changed in openjdk-7 (Ubuntu): | |
status: | New → Confirmed |
assignee: | nobody → Tiago Stürmer Daitx (tdaitx) |
summary: |
- jamvm is broken after 2.6.7 update + jamvm is broken due to missing native methods in sun.misc.Unsafe |
description: | updated |
Changed in openjdk: | |
importance: | Unknown → Critical |
status: | Unknown → Confirmed |
Changed in openjdk-7 (Ubuntu Precise): | |
importance: | Undecided → High |
Changed in openjdk-7 (Ubuntu Trusty): | |
importance: | Undecided → High |
Changed in openjdk: | |
importance: | Critical → Medium |
status: | Confirmed → In Progress |
Changed in openjdk: | |
status: | In Progress → Fix Released |
Created attachment 1546
add 2 new sun.misc.unsafe methods to jamvm
[Issue] icedtea. classpath. org/hg/ release/ icedtea7- forest- 2.6/hotspot/ rev/4f8cbd54a9c 6) introduced 2 new native methods to the sun.misc.Unsafe class: isBigEndian0 and unalignedAccess0.
The fix of OpenJDK's bug 8158260 (http://
This completely broke JamVM and as of now it is impossible to start a jamvm session.
jtreg summary results:
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)--- ------- Thread) /versions NullPointerExce ption). .. UnsatisfiedLink Error
-------
Error initialising VM (initialiseMain
Check the README for compatible class-libraries
Exception occurred while printing exception (java/lang/
Original exception was java/lang/
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.