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

Debugger does not call quitEvent() when program it is debugging exits

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 1.1.2
    • 1.0, 1.1.1, 1.1.2
    • core-svc
    • b01
    • generic, x86, sparc
    • generic, windows_nt
    • Not verified

    Description

      When a debugger uses sun.tools.debug, and the program it is
      debugging exits, the RemoteDebugger is supposed to make a
      callback to quitEvent().
       
      My experience is that sometimes this callback is made,
      and more often it isn't made. Often (if the debugger
      is run in verbose mode, which can be done by typing "jdb
      -dbgtrace" if using jdb) there is a printToConsole event
      saying
       
        [debugger: junk.main() exited]
       
      but no corresponding quitEvent() call. I can rerun the
      same program and sometimes get quitEvent(), sometimes not.
       
      How can a debugger reliably know when the program being
      debugged has exited?
       

      Attachments

        Issue Links

          Activity

            People

              rfield Robert Field (Inactive)
              mchansunw Mei Chan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: