From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Daniel Simon <Daniel.Simon@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] rt_task_inquire and NULL 2nd arg
Date: Wed, 31 Oct 2007 21:09:34 +0100 [thread overview]
Message-ID: <18216.57598.559447.478769@domain.hid> (raw)
In-Reply-To: <20071031154106.29f66afc@domain.hid>
Daniel Simon wrote:
> Hello all,
>
> I am testing some former programs with xenomai-2.4-rc4/kernel-2.6.23.1/pentiumM;
>
> Calling rt_task_inquire(Id, NULL) with a null second argument now
> freezes or reboots the pc...
>
> I had no problem with this call with a former (2.3.1) xenomai version. Is it a
> known behaviour?
the rt_task_inquire system call checks that the "info" pointer points to
a piece of writable memory and returns -EFAULT otherwise. So, what you
should get is a segmentation fault, no freeze or reboot. Actually, I
have tested a small test which segfaults as expected. Could you provide
us with the simple test that causes a freeze or reboot ?
--
Gilles Chanteperdrix.
next prev parent reply other threads:[~2007-10-31 20:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-31 14:41 [Xenomai-help] rt_task_inquire and NULL 2nd arg Daniel Simon
2007-10-31 20:09 ` Gilles Chanteperdrix [this message]
2007-11-04 11:09 ` Daniel Simon
2007-11-04 17:52 ` Philippe Gerum
2007-11-04 19:10 ` Jan Kiszka
2007-11-04 20:08 ` Philippe Gerum
2007-11-04 20:55 ` Jan Kiszka
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=18216.57598.559447.478769@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=Daniel.Simon@domain.hid \
--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.