PengZheng commented on issue #406:
URL: https://github.com/apache/celix/issues/406#issuecomment-1079686588


   During the `bundleActivator_stop` of topological manager, 
`endpointDescription_destroy` in `endpointDiscoveryPoller_poll` happened 
between `serviceRegistration_unregister(activator->endpointListenerService)` 
and `topologyManager_closeImports`. Thus use-after-free follows. The correct 
way of unregistering endpointListenerService is to do it under the protection 
of `manager->importedServicesLock`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@celix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to