JDK-4906990 : Infinite loop in error handler if TLS is not yet initialized.
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_8
  • CPU: generic
  • Submitted: 2003-08-14
  • Updated: 2012-10-08
  • Resolved: 2003-10-08
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
5.0 b18Fixed
Related Reports
Relates :  
Relates :  
Description
From Swamy:

Date: Thu, 14 Aug 2003 10:59:42 -0500
> From: swamy venkataramanappa <###@###.###>
> Subject: Error msg printing in infinite loop?
> 
> Have you seen this error running in a infinite loop. It is
> annoying. ctrl-c does not work. But "kill" command works.
> 
> after -XX: or in .hotspotrc:  SuppressErrorAt=/os_solaris.cpp:1377
> # To suppress the following error report, specify this argument
> # after -XX: or in .hotspotrc:  SuppressErrorAt=/os_solaris.cpp:1377
> # To suppress the following error report, specify this argument
> # after -XX: or in .hotspotrc:  SuppressErrorAt=/os_solaris.cpp:1377

os_solaris.cpp:1377 is in os::thread_local_storage_at():

   void* os::thread_local_storage_at(int index) {
     // %%% this is used only in threadLocalStorage.cpp
     void* r = NULL;
     if (thr_getspecific((thread_key_t)index, &r))
==>    fatal1("os::thread_local_storage_at: thr_getspecific failed (%s)", strerror(errno));
     return r;
   }

The infinite loop can happen if a fatal error happened very early during 
VM initialization, when ThreadLocalStorage is not yet initialized.


###@###.### 2003-08-15

Do you need information attached so you can reproduce this?

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger FIXED IN: tiger INTEGRATED IN: tiger-b18
14-06-2004

EVALUATION See description. The problematic code (and a few others) are fixed to work properly during early startup. ###@###.### 2003-08-28
28-08-2003