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

sun/misc/SunMiscSignalTest.java failed intermittently

    Details

    • Subcomponent:
    • Resolved In Build:
      b108

      Description

      It failed intermittently (frequently). Most failure happened on Linux 32 bit, but also observed on Solaris x64, Solaris sparcv9, Linux x64 and Mac OS x 64 bit.

      Please refer to the copied test logs below. Other failures look similar:

      ----------messages:(3/133)----------
      command: testng SunMiscSignalTest
      reason: User specified action: run testng/othervm SunMiscSignalTest
      elapsed time (seconds): 1.674
      ----------System.out:(192/11777)----------
      [TestNG] Running:
        sun/misc/SunMiscSignalTest.java

      -Xrs: false
      config SunMiscSignalTest.setup(): success
      test SunMiscSignalTest.cannotHandleSIGDFL(): success
      test SunMiscSignalTest.cannotHandleSIGIGN(): success
      test SunMiscSignalTest.checkLastHandler(): success
      test SunMiscSignalTest.isDaemonThread(): failure
      java.lang.AssertionError: raising s.m.Signal did not get a callback; expected [true] but found [false]
      at org.testng.Assert.fail(Assert.java:94)
      at org.testng.Assert.failNotEquals(Assert.java:494)
      at org.testng.Assert.assertEquals(Assert.java:123)
      at org.testng.Assert.assertEquals(Assert.java:286)
      at SunMiscSignalTest.isDaemonThread(SunMiscSignalTest.java:303)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
      at org.testng.TestRunner.privateRun(TestRunner.java:767)
      at org.testng.TestRunner.run(TestRunner.java:617)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
      at org.testng.SuiteRunner.run(SuiteRunner.java:240)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
      at org.testng.TestNG.run(TestNG.java:1057)
      at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:163)
      at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:147)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
      at java.lang.Thread.run(Thread.java:804)
      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
      test SunMiscSignalTest.testRaiseNoConsumer(): success
      test SunMiscSignalTest.testSunMisc("INT", YES, YES, YES, YES): failure
      java.lang.AssertionError: handler not invoked; expected [YES] but found [NO]
      at org.testng.Assert.fail(Assert.java:94)
      at org.testng.Assert.failNotEquals(Assert.java:494)
      at org.testng.Assert.assertEquals(Assert.java:123)
      at SunMiscSignalTest.testSunMisc(SunMiscSignalTest.java:211)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
      at org.testng.TestRunner.privateRun(TestRunner.java:767)
      at org.testng.TestRunner.run(TestRunner.java:617)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
      at org.testng.SuiteRunner.run(SuiteRunner.java:240)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
      at org.testng.TestNG.run(TestNG.java:1057)
      at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:163)
      at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:147)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
      at java.lang.Thread.run(Thread.java:804)
      test SunMiscSignalTest.testSunMisc("TERM", YES, YES, YES, YES): success
          sun.misc.handle sig: TERM, num: 15
          sun.misc.handle sig: ABRT, num: 6
      test SunMiscSignalTest.testSunMisc("ABRT", YES, YES, YES, YES): success
      test SunMiscSignalTest.testSunMisc("HUP", YES, YES, YES, YES): failure
      java.lang.AssertionError: handler not invoked; expected [YES] but found [NO]
      at org.testng.Assert.fail(Assert.java:94)
      at org.testng.Assert.failNotEquals(Assert.java:494)
      at org.testng.Assert.assertEquals(Assert.java:123)
      at SunMiscSignalTest.testSunMisc(SunMiscSignalTest.java:211)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
      at org.testng.TestRunner.privateRun(TestRunner.java:767)
      at org.testng.TestRunner.run(TestRunner.java:617)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
      at org.testng.SuiteRunner.run(SuiteRunner.java:240)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
      at org.testng.TestNG.run(TestNG.java:1057)
      at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:163)
      at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:147)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
      at java.lang.Thread.run(Thread.java:804)
      test SunMiscSignalTest.testSunMisc("QUIT", YES, NO, NO, NO): success
          sun.misc.handle sig: BUS, num: 7
      test SunMiscSignalTest.testSunMisc("BUS", YES, YES, YES, YES): success
          sun.misc.handle sig: USR1, num: 10
      test SunMiscSignalTest.testSunMisc("USR1", YES, YES, YES, YES): success
          sun.misc.handle sig: USR2, num: 12
      test SunMiscSignalTest.testSunMisc("USR2", YES, YES, YES, YES): success
          sun.misc.handle sig: PIPE, num: 13
      test SunMiscSignalTest.testSunMisc("PIPE", YES, YES, YES, YES): success
          sun.misc.handle sig: ALRM, num: 14
      test SunMiscSignalTest.testSunMisc("ALRM", YES, YES, YES, YES): success
          sun.misc.handle sig: CHLD, num: 17
      test SunMiscSignalTest.testSunMisc("CHLD", YES, YES, YES, YES): success
          sun.misc.handle sig: CONT, num: 18
      test SunMiscSignalTest.testSunMisc("CONT", YES, YES, YES, YES): success
          sun.misc.handle sig: TSTP, num: 20
      test SunMiscSignalTest.testSunMisc("TSTP", YES, YES, YES, YES): success
      test SunMiscSignalTest.testSunMisc("TTIN", YES, YES, YES, YES): success
          sun.misc.handle sig: TTIN, num: 21
          sun.misc.handle sig: TTOU, num: 22
      test SunMiscSignalTest.testSunMisc("TTOU", YES, YES, YES, YES): success
          sun.misc.handle sig: URG, num: 23
      test SunMiscSignalTest.testSunMisc("URG", YES, YES, YES, YES): success
          sun.misc.handle sig: XCPU, num: 24
      test SunMiscSignalTest.testSunMisc("XCPU", YES, YES, YES, YES): success
          sun.misc.handle sig: XFSZ, num: 25
      test SunMiscSignalTest.testSunMisc("XFSZ", YES, YES, YES, YES): success
          sun.misc.handle sig: VTALRM, num: 26
      test SunMiscSignalTest.testSunMisc("VTALRM", YES, YES, YES, YES): success
          sun.misc.handle sig: PROF, num: 27
      test SunMiscSignalTest.testSunMisc("PROF", YES, YES, YES, YES): success
          sun.misc.handle sig: WINCH, num: 28
      test SunMiscSignalTest.testSunMisc("WINCH", YES, YES, YES, YES): success
      test SunMiscSignalTest.testSunMisc("IO", YES, YES, YES, YES): success
          sun.misc.handle sig: IO, num: 29
      test SunMiscSignalTest.testSunMisc("SYS", YES, YES, YES, YES): success
          sun.misc.handle sig: SYS, num: 31
      test SunMiscSignalTest.testSunMiscIAE(""): success
      test SunMiscSignalTest.testSunMiscIAE("I"): success
      test SunMiscSignalTest.testSunMiscIAE("SIG"): success
      test SunMiscSignalTest.testSunMiscIAE("SIGabc"): success
      test SunMiscSignalTest.testSunMiscIAE("SIGINT"): success
      test SunMiscSignalTest.testSunMiscIAE("abc"): success

      ===============================================
      sun/misc/SunMiscSignalTest.java
      Total tests run: 58, Failures: 3, Skips: 0
      ===============================================

      ----------System.err:(14/796)----------
      java.lang.Exception: failures: 3
      at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:166)
      at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:147)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
      at java.lang.Thread.run(Thread.java:804)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rriggs Roger Riggs
                Reporter:
                xiaofeya Xiaofeng Yang
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: