From: Jan Kiszka <jan.kiszka@web.de>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: Xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] Mayday issues again
Date: Sat, 20 Jun 2015 17:01:09 +0200 [thread overview]
Message-ID: <55858035.1090803@web.de> (raw)
In-Reply-To: <a7e2b8e6e4623f66073ed7256f00d22f.squirrel@sourcetrek.com>
On 2015-06-20 16:46, Gilles Chanteperdrix wrote:
>
> Jan Kiszka wrote:
>> Hi Philippe,
>>
>> the mayday mechanism is causing troubles to me again.
>>
>> First of all, there is a bug /wrt restarting the mayday syscall. We
>> current don't restart on pending signals, thus destroy the register of
>> the interrupted thread that contains the syscall return code. See my
>> for-forge branch for a fix proposal.
>>
>> But actually I would like to get rid of the syscall trampoline
>> completely if somehow possible, at least for certain archs. The reason
>> is that it ruins debuggability. If a RT thread is stopped by gdb with
>> the help of the mayday mechanism, it ends up waiting for resumption on
>> the mayday page. Even worse, backtracing is broken, at least on x86.
>
> The problem here seems to be mixing mayday with gdb. As its name
> indicates, the mayday mechanism is something exceptional, that should not
> happen during a casual debugging session with gdb.
Yes, mayday is a misnomer today. It is also used to synchronously inject
Linux signals into the RT threads (handle_sigwake_event ->
__xnthread_kick -> ipipe_raise_mayday), like SIGSTOP.
Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://xenomai.org/pipermail/xenomai/attachments/20150620/d73c711b/attachment.sig>
next prev parent reply other threads:[~2015-06-20 15:01 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-20 14:34 [Xenomai] Mayday issues again Jan Kiszka
2015-06-20 14:46 ` Gilles Chanteperdrix
2015-06-20 15:01 ` Jan Kiszka [this message]
2015-06-20 18:15 ` Philippe Gerum
2015-06-21 17:53 ` Jan Kiszka
2015-06-21 18:57 ` Philippe Gerum
2015-07-07 9:27 ` Philippe Gerum
2015-07-07 12:53 ` Philippe Gerum
2015-07-07 13:01 ` Jan Kiszka
2015-07-07 13:24 ` Philippe Gerum
2015-07-08 10:31 ` Jan Kiszka
2015-07-08 11:56 ` Philippe Gerum
2015-07-08 12:24 ` Jan Kiszka
2015-07-08 12:29 ` Philippe Gerum
2015-07-08 12:32 ` Gilles Chanteperdrix
2015-07-08 12:33 ` Jan Kiszka
2015-07-08 12:43 ` Philippe Gerum
2015-07-08 12:52 ` Jan Kiszka
2015-07-08 13:00 ` Philippe Gerum
2015-07-08 13:04 ` Jan Kiszka
2015-07-08 13:10 ` Philippe Gerum
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=55858035.1090803@web.de \
--to=jan.kiszka@web.de \
--cc=gilles.chanteperdrix@xenomai.org \
--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.