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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 9, 10
    • hotspot
    • None
    • b21

      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.

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

              Created:
              Updated:
              Resolved: