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

(process) initFieldIDs() in UNIXProcess_md.c has a race condition bug

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • core-libs
    • b53
    • generic
    • solaris_7

      initFieldIDs() in UNIXProcess_md.c has a race condition bug. If one thread gets past the assignment of field_exitcode, then the next thread coming in will think that all initialization is done, leading to a possible crash when accessing the unitialized field_fd field, or the possibility of getting a SIGCHLD before it is masked off by the thread doing the initialzation in initFieldIDs().

      initFieldIDs() should really be called from the <clinit>, which would guarantee proper synchronization between threads.

      [###@###.### 2004-08-13]

            martin Martin Buchholz
            dlong Dean Long
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: