JDK-6225719 : Incorrect DES key generated using HotSpot Server VM
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 1.4.2_06
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux_2.4
  • CPU: x86
  • Submitted: 2005-02-04
  • Updated: 2010-08-18
  • Resolved: 2005-04-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2_09 b01Fixed
Related Reports
Relates :  
Description
Customer has reported an problem when using HotSpot Server VM, and needs a fix urgently.

Java HotSpot Client VM, is the default VM, and is designed for applications running in a client environment. Where as Java HotSpot Server VM is designed for applications running in a server environment and provides maximum program execution speed.

However, Client and Server VM should give the same results. Customer is getting different results using Server VM in J2SE 1.4.2_06 vs J2SE 1.5.0 onwards. Is there any significant bug that was fixed in the  Server VM in J2SE 1.5.0 ?

Attached is the testcase. This is internal security Kerberos code used to generate Des keys from passwords. The method char_to_key generates same key for same password. In the testcode this method is invoked in a loop. When the testcode is run with -server option for 100 times, the different keys are being generated for the same password.

Here is how you can reproduce the problem:

% java -server DesTest 1
This will print the generated Des Keys.

% java -server DesTest 100
You will notice different Des Keys.
(It starts to occur with loopcount of 6)

Now try using the client VM
% java DesTest 100
The generated Des keys are the same.
HotSpot client VM seems to work correctly.

NOTE: This problem only occurs when using Server VM in J2SE 1.4.2_06, and is not seen when using Server VM in J2SE 1.5.0 onwards.

Thanks,
Seema
###@###.### 2005-2-04 19:01:59 GMT

Comments
EVALUATION This was fixed in 5.0 under bug 5037108. Reassigning to CTE for consideration for a 1.4.2 update. ###@###.### 2005-2-05 01:50:17 GMT
2005-02-04