You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@celix.apache.org by Alexander Broekhuis <a....@gmail.com> on 2015/01/06 14:28:05 UTC
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) <ji...@apache.org>:
> 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
RE: [jira] [Created] (CELIX-195) SEGFAULT occurs when running a log
command.
Posted by Daniel Parker <Da...@myfuelmaster.com>.
That sounds good to me.
Daniel Parker
-----Original Message-----
From: Alexander Broekhuis [mailto:a.broekhuis@gmail.com]
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) <ji...@apache.org>:
> 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
Re: [jira] [Created] (CELIX-195) SEGFAULT occurs when running a log
command.
Posted by Bjoern Petri <bj...@sundevil.de>.
Hi Alexander,
seems fine to me as well.
Regards,
Bjoern
On 01/06/2015 02:28 PM, Alexander Broekhuis wrote:
> 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) <ji...@apache.org>:
>
>> 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)
>>
>
>