celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bpe...@apache.org
Subject celix git commit: CELIX-300: Invalid read in serviceRegistry during framework_shutdown
Date Thu, 19 Nov 2015 13:36:38 GMT
Repository: celix
Updated Branches:
  refs/heads/develop ccc83b4e1 -> 144d81ee4


CELIX-300: Invalid read in serviceRegistry during framework_shutdown


Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/144d81ee
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/144d81ee
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/144d81ee

Branch: refs/heads/develop
Commit: 144d81ee41bc7861529e9a868f5901731603e727
Parents: ccc83b4
Author: Bjoern Petri <bpetri@apache.org>
Authored: Thu Nov 19 14:36:09 2015 +0100
Committer: Bjoern Petri <bpetri@apache.org>
Committed: Thu Nov 19 14:36:09 2015 +0100

----------------------------------------------------------------------
 framework/private/src/service_registry.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/144d81ee/framework/private/src/service_registry.c
----------------------------------------------------------------------
diff --git a/framework/private/src/service_registry.c b/framework/private/src/service_registry.c
index 5823c26..81487f2 100644
--- a/framework/private/src/service_registry.c
+++ b/framework/private/src/service_registry.c
@@ -471,12 +471,8 @@ celix_status_t serviceRegistry_setReferenceStatus(service_registry_pt
registry,
 
 static void serviceRegistry_logIllegalReference(service_registry_pt registry __attribute__((unused)),
service_reference_pt reference,
                                                    reference_status_t refStatus) {
-
-    service_registration_pt reg = reference != NULL ? reference->registration : NULL;
-    bundle_pt bundle = reference != NULL ? reference->referenceOwner : NULL;
     fw_log(logger, OSGI_FRAMEWORK_LOG_ERROR,
-           "Error handling service reference %p from registration %p and bundle (owner) %p,
ref has ref status %i",
-           reference, reg, bundle, refStatus);
+           "Error handling service reference %p, status is %i",reference, refStatus);
 }
 
 celix_status_t serviceRegistry_checkReference(service_registry_pt registry, service_reference_pt
ref,


Mime
View raw message