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

Disallow installing user signal handlers for SIGBUS on OSX

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9, 10, 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b01
    • OS:
      os_x

      Description

      #section:testng
      ----------messages:(7/349)----------
      command: testng SunMiscSignalTest
      reason: User specified action: run testng/othervm SunMiscSignalTest
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules jdk.unsupported,java.base --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
      Timeout information:
      --- Timeout information end.
      elapsed time (seconds): 1546.741
      ----------configuration:(4/111)----------
      Boot Layer
        add modules: jdk.unsupported java.base
        add exports: java.base/jdk.internal.misc ALL-UNNAMED

      ----------System.out:(54/3029)----------
      [TestNG] Running:
        sun/misc/SunMiscSignalTest.java

      -Xrs: false
      config SunMiscSignalTest.setup(): success
      test SunMiscSignalTest.cannotHandleSIGDFL(): success
      test SunMiscSignalTest.cannotHandleSIGIGN(): success
      test SunMiscSignalTest.checkLastHandler(): success
          oldHandler: java.lang.Terminator$1@1bd0709c
          sun.misc.handle sig: INT, num: 2
      test SunMiscSignalTest.isDaemonThread(): success
      test SunMiscSignalTest.nullSignal(): success
      test SunMiscSignalTest.testEquals("INT", YES, YES, YES, YES): success
      test SunMiscSignalTest.testEquals("TERM", YES, YES, YES, YES): success
      test SunMiscSignalTest.testEquals("ABRT", YES, YES, YES, YES): success
      test SunMiscSignalTest.testEquals("HUP", YES, YES, YES, YES): success
      test SunMiscSignalTest.testEquals("QUIT", YES, NO, NO, NO): success
      test SunMiscSignalTest.testEquals("BUS", YES, YES, YES, YES): success
      test SunMiscSignalTest.testEquals("USR1", YES, YES, YES, YES): success
      test SunMiscSignalTest.testEquals("USR2", YES, YES, YES, YES): success
      test SunMiscSignalTest.testEquals("PIPE", YES, YES, YES, YES): success
      test SunMiscSignalTest.testEquals("ALRM", YES, YES, YES, YES): success
      test SunMiscSignalTest.testEquals("CHLD", YES, YES, YES, YES): success
      test SunMiscSignalTest.testEquals("CONT", YES, YES, YES, YES): success
      test SunMiscSignalTest.testEquals("TSTP", YES, YES, YES, YES): success
      test SunMiscSignalTest.testEquals("TTIN", YES, YES, YES, YES): success
      test SunMiscSignalTest.testEquals("TTOU", YES, YES, YES, YES): success
      test SunMiscSignalTest.testEquals("URG", YES, YES, YES, YES): success
      test SunMiscSignalTest.testEquals("XCPU", YES, YES, YES, YES): success
      test SunMiscSignalTest.testEquals("XFSZ", YES, YES, YES, YES): success
      test SunMiscSignalTest.testEquals("VTALRM", YES, YES, YES, YES): success
      test SunMiscSignalTest.testEquals("PROF", YES, YES, YES, YES): success
      test SunMiscSignalTest.testEquals("WINCH", YES, YES, YES, YES): success
      test SunMiscSignalTest.testEquals("IO", YES, YES, YES, YES): success
      test SunMiscSignalTest.testEquals("SYS", YES, YES, YES, YES): success
          oldHandler: Handler: sem: 0, wasDaemon: true
          IAE message: Unhandled signal: SIGINT
      test SunMiscSignalTest.testRaiseNoConsumer(): success
          oldHandler: Handler: sem: 0, wasDaemon: true
          sun.misc.handle sig: INT, num: 2
      test SunMiscSignalTest.testSunMisc("INT", YES, YES, YES, YES): success
          oldHandler: java.lang.Terminator$1@1bd0709c
          sun.misc.handle sig: TERM, num: 15
      test SunMiscSignalTest.testSunMisc("TERM", YES, YES, YES, YES): success
          oldHandler: SIG_DFL
          sun.misc.handle sig: ABRT, num: 6
      test SunMiscSignalTest.testSunMisc("ABRT", YES, YES, YES, YES): success
          oldHandler: java.lang.Terminator$1@1bd0709c
          sun.misc.handle sig: HUP, num: 1
      test SunMiscSignalTest.testSunMisc("HUP", YES, YES, YES, YES): success
      test SunMiscSignalTest.testSunMisc("QUIT", YES, NO, NO, NO): success
          oldHandler: jdk.internal.misc.Signal$NativeHandler@316a9158
          sun.misc.handle sig: BUS, num: 10
      Timeout signalled after 1,200 seconds

        Attachments

        1. hs_err_pid16958.log
          63 kB
        2. hs_err_pid15772.log
          63 kB
        3. ex.txt
          12 kB
        4. ex2.txt
          15 kB
        5. ex2.txt
          15 kB
        6. stacktrace_mac_osx
          66 kB
        7. BlastIt.java
          1 kB
        8. BlastItv2.java
          0.7 kB

          Issue Links

            Activity

              People

              • Assignee:
                rwestberg Robin Westberg
                Reporter:
                fyuan Frank Yuan (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: