You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by "Pepijn Noltes (Jira)" <ji...@apache.org> on 2019/09/17 17:44:00 UTC

[jira] [Closed] (CELIX-299) dataRace in serviceRegistry_clearServiceRegistrations

     [ https://issues.apache.org/jira/browse/CELIX-299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pepijn Noltes closed CELIX-299.
-------------------------------
    Resolution: Fixed

> 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
>            Priority: Major
>
> 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
(v8.3.2#803003)