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

RemoteServiceAdminCore missing synchronized block + deadlock

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.0, 1.5.0
    • None
    • common
    • None
    • 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_2.diff
          7 kB
          Amichai Rothman
        2. fix_exportedservices_sync.diff
          3 kB
          Amichai Rothman

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: