From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Daniel Merrill <daniel.merrill@psware.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] psos t_delete causing a SIGSEGV in suspended task.
Date: Fri, 13 Sep 2013 22:54:58 +0200 [thread overview]
Message-ID: <52337BA2.4080106@xenomai.org> (raw)
In-Reply-To: <a61ffb56.00001e48.00000008@dmerrill_win764.PERF.PERFORMANCESOFTWARE>
On 09/13/2013 10:48 PM, Daniel Merrill wrote:
> void main()
>
> {
>
> mlockall(MCL_CURRENT | MCL_FUTURE);
>
> u_long TID, TID2;
>
> u_long args[4] = {TID, 0, 0, 0};
TID here is an uninitialized value, and this is what you pass to
t_delete. I admit the segmentation does not seem like the best reaction,
but the program looks faulty.
> (...)
> t_start(TID2, T_PREEMPT | T_TSLICE, &deleter, args);
--
Gilles.
next prev parent reply other threads:[~2013-09-13 20:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-13 20:48 [Xenomai] psos t_delete causing a SIGSEGV in suspended task Daniel Merrill
2013-09-13 20:54 ` Gilles Chanteperdrix [this message]
[not found] ` <fcac2f91.00001e70.00000001@dmerrill_win764.PERF.PERFORMANCESOFTWARE>
2013-09-13 21:45 ` Daniel Merrill
2013-09-13 21:47 ` Gilles Chanteperdrix
2013-09-13 23:23 ` Daniel Merrill
2013-09-14 13:47 ` Gilles Chanteperdrix
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=52337BA2.4080106@xenomai.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=daniel.merrill@psware.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.