celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bjoern Petri (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CELIX-299) dataRace in serviceRegistry_clearServiceRegistrations
Date Thu, 19 Nov 2015 09:54:11 GMT
Bjoern Petri created CELIX-299:
----------------------------------

             Summary: dataRace in serviceRegistry_clearServiceRegistrations
                 Key: CELIX-299
                 URL: https://issues.apache.org/jira/browse/CELIX-299
             Project: Celix
          Issue Type: Bug
            Reporter: Bjoern Petri
            Assignee: Bjoern Petri


The current implementation of serviceRegistry_clearServiceRegistrations, does removes the
bundle entry form the serviceRegistration. When subsequently  unregisterService is called
it cannot remove the registration anymore, but invalidates and destroys it. 

In the next iteration of the while loop in clearServiceRegistrations the same registrations
is retrieved and than removed because it is not valid anymore. 

Before this happens the logWarningServiceRgistration call performs some an invalid access,
which can lead to a segfault. 








--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message