Return-Path: X-Original-To: apmail-celix-commits-archive@www.apache.org Delivered-To: apmail-celix-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C4355CA78 for ; Wed, 7 Jan 2015 20:53:33 +0000 (UTC) Received: (qmail 47367 invoked by uid 500); 7 Jan 2015 20:53:34 -0000 Delivered-To: apmail-celix-commits-archive@celix.apache.org Received: (qmail 47330 invoked by uid 500); 7 Jan 2015 20:53:34 -0000 Mailing-List: contact commits-help@celix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@celix.apache.org Delivered-To: mailing list commits@celix.apache.org Received: (qmail 47320 invoked by uid 500); 7 Jan 2015 20:53:34 -0000 Delivered-To: apmail-incubator-celix-commits@incubator.apache.org Received: (qmail 47317 invoked by uid 99); 7 Jan 2015 20:53:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jan 2015 20:53:34 +0000 Date: Wed, 7 Jan 2015 20:53:34 +0000 (UTC) From: "Daniel Parker (JIRA)" To: celix-commits@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Reopened] (CELIX-200) SEGFAULT occurs when remote services are closed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CELIX-200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Parker reopened CELIX-200: --------------------------------- Upon closer inspection it appears that there is still a bug. The segfault is gone, but now the logs are not being written with the log writer like they're supposed to be. > SEGFAULT occurs when remote services are closed > ----------------------------------------------- > > Key: CELIX-200 > URL: https://issues.apache.org/jira/browse/CELIX-200 > Project: Celix > Issue Type: Improvement > Components: Remote Service Admin > Reporter: Daniel Parker > Assignee: Alexander Broekhuis > Fix For: next-incubating > > > In remote_services/topology_manager/private/src/topology_manager.c::topologyManager_removeImportedService(), services are removed with hashMap_remove() rather than hashMapIterator_remove(), which can cause the iterator to get out of sync with the hashMap and SEGFAULT. Note that this doesn't cause an error if there is only a single proxy registered. -- This message was sent by Atlassian JIRA (v6.3.4#6332)