That sounds good to me. 

Daniel Parker

-----Original Message-----
From: Alexander Broekhuis [mailto:[email protected]] 
Sent: Tuesday, January 06, 2015 08:28
To: Dev
Subject: Re: [jira] [Created] (CELIX-195) SEGFAULT occurs when running a log 
command.

Hi all,

Looking at this issue, both the bundle and the service_reference pointer are 
stored in an log entry. Since log_entries are handled async, there is no 
guarantee that these pointers are still valid.

A possible solution would be to remove the bundle and reference pointer from 
the log_entry, and add some static fields to it for the needed data.

Information that might be needed is:
- symbolic_name
- bundle_id

What do you guys think?

2015-01-05 15:00 GMT-05:00 Daniel Parker (JIRA) <[email protected]>:

> Daniel Parker created CELIX-195:
> -----------------------------------
>
>              Summary: SEGFAULT occurs when running a log command.
>                  Key: CELIX-195
>                  URL: https://issues.apache.org/jira/browse/CELIX-195
>              Project: Celix
>           Issue Type: Bug
>           Components: Log Service
>             Reporter: Daniel Parker
>
>
> If you are running the log helper in an remote service endpoint, then 
> stop the bundle which talks to that endpoint, the bundle pointer for 
> logs associated with that endpoint will become invalid.  If you then 
> run the 'log' command from the shell, a segfault will occur.
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.3.4#6332)
>



--
Met vriendelijke groet,

Alexander Broekhuis

Reply via email to