celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pepijn Noltes (Jira)" <j...@apache.org>
Subject [jira] [Closed] (CELIX-299) dataRace in serviceRegistry_clearServiceRegistrations
Date Tue, 17 Sep 2019 17:44:00 GMT

     [ 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

View raw message