OpenJdk 7 and OpenJdk 8 miss-report the os.arch field and cause java apps to crash.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openjdk-7 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
openjdk-8 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Problem Description
=======
OpenJdk 7 and OpenJdk 8 miss report the os.arch field and cause java apps to crash.
When we run under OpenJDK on a ubuntu ppc64el system the os.arch system properites gets reported as ppc64.
This causes multiple java libraries to load the wrong native architecture modules as it thinks this is a big endian machine, rather than a ppc64le machine.
---uname output---
Linux tulgpu002 3.16.0-30-generic #40-Ubuntu SMP Mon Jan 12 22:07:11 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux
Machine Type = 8247-42L
Steps to Reproduce
=======
make sure an openjdk is installed.
sudo apt-get install openjdk-7-jdk
Create a very simple java properties dumper.
cat >sysprop.java <<EOF
class sysprop{
public static void main(String[] args){
System.
}
}
EOF
and run it and look for the os.arch output.
javac sysprop.java
ralphbel@
os.arch=ppc64
sun.arch.
== Comment: #2 - Ralph E. Bellofatto <email address hidden> - 2015-03-17 05:39:29 ==
Acutally this is ubuntu 14.10.
ralphbel@
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.10
Release: 14.10
Codename: utopic
I suspect this problem also exists on the ubuntu 14.04 releases although we have not tried that yet...
== Comment: #3 - Ralph E. Bellofatto <email address hidden> - 2015-03-17 05:51:04 ==
more information on the package we are using:
ralphbel@
openjdk-7-jdk:
Installed: 7u75-2.
and
ralphbel@
openjdk-8-jdk:
Installed: 8u40~b09-1
== Comment: #4 - Ralph E. Bellofatto <email address hidden> - 2015-03-18 15:04:51 ==
This is an interesting comment in the openJDK bugs database:
*******
https:/
*******
apparently there was a decision to NOT give the architecture a unique name, and that is inconstant with other JDK/JRE's, and it breaks a LOT of code.
tags: | added: architecture-ppc64le bugnameltc-122843 severity-critical targetmilestone-inin1404 |
affects: | ubuntu → openjdk-7 (Ubuntu) |
------- Comment From <email address hidden> 2015-03-31 11:22 EDT-------
This has been already handled for RedHat and patches are already submitted:
See: http:// mail.openjdk. java.net/ pipermail/ hotspot- dev/2015- February/ 017266. html cr.openjdk. java.net/ ~andrew/ rh1191652/ root cr.openjdk. java.net/ ~andrew/ rh1191652/ jdk
> I now have these changes working on 8u31:
>
> http://
> http://
Is this good enough for Ubuntu integration ?