United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6225719 : Incorrect DES key generated using HotSpot Server VM

Details
Type:
Bug
Submit Date:
2005-02-04
Status:
Resolved
Updated Date:
2010-08-18
Project Name:
JDK
Resolved Date:
2005-04-25
Component:
hotspot
OS:
linux_2.4
Sub-Component:
compiler
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
1.4.2_06
Fixed Versions:
1.4.2_09 (b01)

Related Reports
Relates:

Sub Tasks

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



Hardware and Software, Engineered to Work Together