From: Philippe Gerum <rpm@xenomai.org>
To: ali hagigat <hagigatali@gmail.com>,
Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] a question about rt_mutex_acquire()
Date: Tue, 18 Mar 2014 16:47:59 +0100 [thread overview]
Message-ID: <53286AAF.20708@xenomai.org> (raw)
In-Reply-To: <CAKKWdtd5y4PF+oEhap-pxNckSTsWquBxj_Y5zG7ZByY+X5e_NA@mail.gmail.com>
On 03/18/2014 04:42 PM, ali hagigat wrote:
> On 3/11/14, ali hagigat <hagigatali@gmail.com> wrote:
>> On 3/10/14, Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> wrote:
>>> On 03/10/2014 04:01 PM, ali hagigat wrote:
>>>> rt_mutex_acquire() creates a segmentation fault, why?
>>>
>>> Because rt_mutex_create failed? Otherwise we would see the message
>>> "success"?
>>>
>>> Is this a game? Or are you using Xenomai for a real project?
>>>
>>>
>>> --
>>> Gilles.
>>>
>>
>> I am just testing Xenomai. If i comment rt_mutex_acquire() I see the
>> message, "success", and a real time mutex is created correctly. by
>> uncommenting "rt_mutex_acquire()" there is a segmentation fault.
>>
>
> Why there is a segmentation fault?
>
Because rt_mutex_acquire() runs before rt_mutex_create(). Check your
code to find out why.
--
Philippe.
prev parent reply other threads:[~2014-03-18 15:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-10 15:01 [Xenomai] a question about rt_mutex_acquire() ali hagigat
2014-03-10 15:17 ` Gilles Chanteperdrix
2014-03-11 12:23 ` ali hagigat
2014-03-18 15:42 ` ali hagigat
2014-03-18 15:47 ` Philippe Gerum [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53286AAF.20708@xenomai.org \
--to=rpm@xenomai.org \
--cc=gilles.chanteperdrix@xenomai.org \
--cc=hagigatali@gmail.com \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.