Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-4003

Fix Deadlock on ProgressMonitor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.3
    • Component/s: Plugin
    • Labels:
      None

      Description

      ProgressMonitor implementation was inspired by ProgressReport one.
      And we recently discovered in the ProgressReport code a bug. The following test is not reliable:

       while (!Thread.interrupted()) { ... }
      

      Because:
      The done() method calls thread.interrupt().
      But "interrupt()" only works once the thread has reached the "alive" state, and not before!

      See sonar-analyzer-commons/issues/151

        Attachments

          Activity

            People

            Assignee:
            quentin.jaquier Quentin Jaquier
            Reporter:
            alban.auzeill Alban Auzeill
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: