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

JDWP: Mixing application suspends and debugger suspends can cause hangs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 5.0
    • core-svc
    • b51
    • generic
    • generic

      A customer has found out the operation which can make jdb freeze easily.

      REPRODUCE :
       1) Please compile the attached test program(suspendtest.java)
       2) launch "jdb suspendtest"
          then please track the following commands for jdb

      goedel[13]% jdb suspendtest
      Initializing jdb ...
      > run
      run suspendtest
      Set uncaught java.lang.Throwable
      Set deferred uncaught java.lang.Throwable
      >
      VM Started: issue suspend()
      issue resume()
                             <==== Here, press "enter"
      > threads
      Group system:
        (java.lang.ref.Reference$ReferenceHandler)0xdd Reference Handler cond. waiting
        (java.lang.ref.Finalizer$FinalizerThread)0xdc Finalizer cond. waiting
        (java.lang.Thread)0xdb Signal Dispatcher running
      Group main:
        (java.lang.Thread)0x1 main cond. waiting
        (suspendtest)0x10b Thread-0 running
        (suspendtest)0x10c Thread-1 running
      > thread 0x10c
      Thread-1[1] where
      Current thread isn't suspended.
      Thread-1[1] suspend

      << Here, NO REPLY >>

      ^Cgoedel[14]%
      ###@###.### 2005-2-03 00:33:15 GMT

            jjh James Holmlund (Inactive)
            tbaba Tadayuki Baba (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: