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

Test com/sun/jdi/JdbStopInNotificationThreadTest.java can still fail after JDK-8366850

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 26
    • 26
    • core-svc
    • master

      [debuggee] Listening for transport dt_socket at address: 54261
      [jdb] Set uncaught java.lang.Throwable
      [jdb] Set deferred uncaught java.lang.Throwable
      [jdb] Initializing jdb ...
      [jdb]
      [jdb] VM Started: > No frames on the current call stack
      [jdb]
      [jdb] main[1]
      > stop at JdbStopInNotificationThreadTestTarg:54
      [jdb] Deferring breakpoint JdbStopInNotificationThreadTestTarg:54.
      [jdb] It will be set after the class is loaded.
      [jdb] main[1]
      > run
      [jdb] > Set deferred breakpoint JdbStopInNotificationThreadTestTarg:54
      [jdb]
      [jdb] Breakpoint hit: "thread=main", JdbStopInNotificationThreadTestTarg.main(), line=54 bci=0
      [jdb] 54 test(); // @1 breakpoint
      [jdb]
      [jdb] main[1]
      > threads
      [jdb] Group system:
      [jdb] (java.lang.ref.Reference$ReferenceHandler)637 Reference Handler running
      [jdb] (java.lang.ref.Finalizer$FinalizerThread)638 Finalizer cond. waiting
      [jdb] (java.lang.Thread)639 Signal Dispatcher running
      [jdb] (java.lang.Thread)640 Attach Listener running
      [jdb] (java.lang.Thread)641 Notification Thread running
      [jdb] Group main:
      [jdb] (java.lang.Thread)1 main running (at breakpoint)
      [jdb] Group InnocuousThreadGroup:
      [jdb] (jdk.internal.misc.InnocuousThread)676 Common-Cleaner cond. waiting
      [jdb] main[1]
      > stop at JdbStopInNotificationThreadTestTarg$1:70
      [jdb] Deferring breakpoint JdbStopInNotificationThreadTestTarg$1:70.
      [jdb] It will be set after the class is loaded.
      [jdb] main[1]
      > cont
      [debuggee] Setting threashold for pool G1 Old Gen percentage:0.1
      [jdb] > Set deferred breakpoint JdbStopInNotificationThreadTestTarg$1:70
      [jdb]
      [jdb] Exception occurred: java.lang.OutOfMemoryError (uncaught)"thread=main", JdbStopInNotificationThreadTestTarg.test(), line=80 bci=50
      [jdb] 80 numbers.add(new Object[1000]);
      [jdb]
      [jdb] main[1]
      =======================================
      Exception thrown during test execution: '^Breakpoint hit: "thread=Notification Thread", JdbStopInNotificationThreadTestTarg\\$1\\.handleNotification\\(\\), line=70.*\\R70\\s+System\\.out\\.println\\("Memory usage low!!!"\\);.*' missing from stdout/stderr
      =======================================
      > quit
      [debuggee] Listening for transport dt_socket at address: 54271
      ----------System.err:(91/4781)*----------
       stdout: [Set uncaught java.lang.Throwable
      Set deferred uncaught java.lang.Throwable
      Initializing jdb ...

      VM Started: > No frames on the current call stack

      main[1]
      Deferring breakpoint JdbStopInNotificationThreadTestTarg:54.
      It will be set after the class is loaded.
      main[1]
      > Set deferred breakpoint JdbStopInNotificationThreadTestTarg:54

      Breakpoint hit: "thread=main", JdbStopInNotificationThreadTestTarg.main(), line=54 bci=0
      54 test(); // @1 breakpoint

      main[1]
      Group system:
        (java.lang.ref.Reference$ReferenceHandler)637 Reference Handler running
        (java.lang.ref.Finalizer$FinalizerThread)638 Finalizer cond. waiting
        (java.lang.Thread)639 Signal Dispatcher running
        (java.lang.Thread)640 Attach Listener running
        (java.lang.Thread)641 Notification Thread running
      Group main:
        (java.lang.Thread)1 main running (at breakpoint)
      Group InnocuousThreadGroup:
        (jdk.internal.misc.InnocuousThread)676 Common-Cleaner cond. waiting
      main[1]
      Deferring breakpoint JdbStopInNotificationThreadTestTarg$1:70.
      It will be set after the class is loaded.
      main[1]
      > Set deferred breakpoint JdbStopInNotificationThreadTestTarg$1:70

      Exception occurred: java.lang.OutOfMemoryError (uncaught)"thread=main", JdbStopInNotificationThreadTestTarg.test(), line=80 bci=50
      80 numbers.add(new Object[1000]);

      main[1] ];
       stderr: [Set uncaught java.lang.Throwable
      Set deferred uncaught java.lang.Throwable
      Initializing jdb ...

      VM Started: > No frames on the current call stack

      main[1]
      Deferring breakpoint JdbStopInNotificationThreadTestTarg:54.
      It will be set after the class is loaded.
      main[1]
      > Set deferred breakpoint JdbStopInNotificationThreadTestTarg:54

      Breakpoint hit: "thread=main", JdbStopInNotificationThreadTestTarg.main(), line=54 bci=0
      54 test(); // @1 breakpoint

      main[1]
      Group system:
        (java.lang.ref.Reference$ReferenceHandler)637 Reference Handler running
        (java.lang.ref.Finalizer$FinalizerThread)638 Finalizer cond. waiting
        (java.lang.Thread)639 Signal Dispatcher running
        (java.lang.Thread)640 Attach Listener running
        (java.lang.Thread)641 Notification Thread running
      Group main:
        (java.lang.Thread)1 main running (at breakpoint)
      Group InnocuousThreadGroup:
        (jdk.internal.misc.InnocuousThread)676 Common-Cleaner cond. waiting
      main[1]
      Deferring breakpoint JdbStopInNotificationThreadTestTarg$1:70.
      It will be set after the class is loaded.
      main[1]
      > Set deferred breakpoint JdbStopInNotificationThreadTestTarg$1:70

      Exception occurred: java.lang.OutOfMemoryError (uncaught)"thread=main", JdbStopInNotificationThreadTestTarg.test(), line=80 bci=50
      80 numbers.add(new Object[1000]);

      main[1] ]
       exitValue = -1

      [debuggee] Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
      [debuggee] at JdbStopInNotificationThreadTestTarg.test(JdbStopInNotificationThreadTest.java:80)
      [debuggee] at JdbStopInNotificationThreadTestTarg.main(JdbStopInNotificationThreadTest.java:54)
      java.lang.RuntimeException: '^Breakpoint hit: "thread=Notification Thread", JdbStopInNotificationThreadTestTarg\\$1\\.handleNotification\\(\\), line=70.*\\R70\\s+System\\.out\\.println\\("Memory usage low!!!"\\);.*' missing from stdout/stderr
      at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:372)
      at JdbStopInNotificationThreadTest.runCases(JdbStopInNotificationThreadTest.java:137)
      at lib.jdb.JdbTest.run(JdbTest.java:96)
      at JdbStopInNotificationThreadTest.main(JdbStopInNotificationThreadTest.java:124)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1474)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: '^Breakpoint hit: "thread=Notification Thread", JdbStopInNotificationThreadTestTarg\\$1\\.handleNotification\\(\\), line=70.*\\R70\\s+System\\.out\\.println\\("Memory usage low!!!"\\);.*' missing from stdout/stderr
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: '^Breakpoint hit: "thread=Notification Thread", JdbStopInNotificationThreadTestTarg\\$1\\.handleNotification\\(\\), line=70.*\\R70\\s+System\\.out\\.println\\("Memory usage low!!!"\\);.*' missing from stdout/stderr

            cjplummer Chris Plummer
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: