Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4906990

Infinite loop in error handler if TLS is not yet initialized.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 5.0
    • 5.0
    • hotspot
    • None
    • b18
    • generic
    • solaris_8

      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?

            hhuangsunw Hui Huang (Inactive)
            hhuangsunw Hui Huang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: