Uploaded image for project: 'CXF Distributed OSGi'
  1. CXF Distributed OSGi
  2. DOSGI-169

RemoteServiceAdminCore missing synchronized block + deadlock

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.0, 1.5.0
    • Fix Version/s: None
    • Component/s: common
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      In RemoteServiceAdminCore.removeExportRegistrations() the exportedServices map is used in a HashMap copy constructor without being synchronized (this is easily visually mistaken for a single atomic operation, but is actually an iteration on the map - an in any case, should be synchronized for proper visibility). The copy constructor call should be placed in a syncrhonized block with exportedServices as the monitor, just like all other accesses to this map.

        Attachments

        1. fix_exportedservices_sync.diff
          3 kB
          Amichai Rothman
        2. fix_exportedservices_sync_2.diff
          7 kB
          Amichai Rothman

          Activity

            People

            • Assignee:
              cschneider Christian Schneider
              Reporter:
              amichai Amichai Rothman
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: