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

HsErrFileUtils.checkHsErrFileContent() fails to check the last pattern.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 21
    • 21
    • hotspot
    • b15
    • generic
    • generic

      When last pattern in deque [positivePatternStack] is not matching in HsErrFile, it comes out of the loop and check whether the positivePatternStack is empty or not, which turns to be empty since pollFirst() removes the pattern.

      This has been noticed in the TestSigInfoInHsErrFile.java where the segfault address for AIX is set as "0x0*1400" instead of "0xffffffffffffffff", which should throw the expected error but the error is neglected due to empty deque and the test is passed.

      Expected/Desired Behaviour :

      END.
      STDERR:
      java.lang.RuntimeException: hs-err file incomplete (first missing pattern: siginfo: si_signo: \d+ \(SIGSEGV\), si_code: \d+ \(SEGV_.*\), si_addr: 0x0*1400.*)
              at HsErrFileUtils.checkHsErrFileContent(HsErrFileUtils.java:136)
              at HsErrFileUtils.checkHsErrFileContent(HsErrFileUtils.java:71)
              at TestSigInfoInHsErrFile.main(TestSigInfoInHsErrFile.java:74)
              at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
              at java.base/java.lang.reflect.Method.invoke(Method.java:578)
              at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
              at java.base/java.lang.Thread.run(Thread.java:1623)

      JavaTest Message: Test threw exception: java.lang.RuntimeException
      JavaTest Message: shutting down test


      TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: hs-err file incomplete (first missing pattern: siginfo: si_signo: \d+ \(SIGSEGV\), si_code: \d+ \(SEGV_.*\), si_addr: 0x0*1400.*)

            varadam Varada M
            varadam Varada M
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: