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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 6
    • Affects Version/s: 6
    • Component/s: 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]

            Assignee:
            Martin Buchholz
            Reporter:
            Dean Long
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: