You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by "Bjoern Petri (JIRA)" <ji...@apache.org> on 2015/11/19 10:54:11 UTC
[jira] [Created] (CELIX-299) dataRace in
serviceRegistry_clearServiceRegistrations
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)