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

os::Posix::is_valid_signal() should, if it uses sigaddset, initialize the signal set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9, 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      os::Posix::is_valid_signal() uses sigaddset() to validate the signal (because the range of valid signals depends on if and how many real time signals the system supports, which is a runtime setting).

      It uses sigaddset() but does not initialize the signal set beforehand. This is invalid and the behaviour is undefined, even if it seemed to work in the practice.

        Attachments

          Activity

            People

            Assignee:
            stuefe Thomas Stuefe
            Reporter:
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: