United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6668837 Failure to unlock Kernel-related mutex in error cases causes browser hangs
JDK-6668837 : Failure to unlock Kernel-related mutex in error cases causes browser hangs

Details
Type:
Bug
Submit Date:
2008-02-28
Status:
Closed
Updated Date:
2010-09-08
Project Name:
JDK
Resolved Date:
2008-05-16
Component:
deploy
OS:
windows
Sub-Component:
deployment_toolkit
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10 (b21)

Related Reports
Relates:

Sub Tasks

Description
preJVMStart() in src/windows/native/sun/jkernel/kernel.cpp in the Java SE workspace does not unlock the jvmStart mutex along all error paths, in particular the one where rt.jar does not exist. For the developers of the Java Plug-In where we run applets directly against our development builds that contain no rt.jar, this means that if you try to launch applets in both Firefox 3 and IE, the second browser that tries to launch an applet will hang until the first browser is exited, since the first browser will have had the rt.jar-related error in the in-browser JVM which will cause the mutex to be held for the lifetime of the browser process. This can happen between arbitrary Java processes for certain kernel-related error conditions.

                                    

Comments
EVALUATION

Must unlock jvmStart mutex along all error paths.
                                     
2008-02-28
EVALUATION

Added code to unlock jvmStart mutex along all error paths.

Verified via manual tests and code inspection. Not feasible to write a
test case.
                                     
2008-02-29
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/deployment_data/6u10/6668837.0
                                     
2008-02-29



Hardware and Software, Engineered to Work Together