All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Weinberger <richard@sigma-star.at>
To: Philippe Gerum <rpm@xenomai.org>
Cc: xenomai@lists.linux.dev
Subject: Re: Task exit via rt_task_suspend()?
Date: Mon, 21 Aug 2023 07:49:38 +0200	[thread overview]
Message-ID: <5802232.zQ0Gbyo6oJ@somecomputer> (raw)
In-Reply-To: <87fs4gqmu7.fsf@xenomai.org>

Am Freitag, 18. August 2023, 19:26:15 CEST schrieb Philippe Gerum:
> 
> Richard Weinberger <richard@sigma-star.at> writes:
> 
> > Hi!
> >
> > I have a not yet understood deadlock in a Xenomai application on my desk.
> > It looks like the deadlock is caused by the fact that rt_task_suspend()
> > can cause the calling thread to exit.
> >
> > So, a thread puts itself into suspend and never returns (and exists).
> > Debugging indicates that ret = __RT(kill(pid, SIGSUSP)); in threadobj_suspend()
> > is the place where it enters the kernel and never return and inside the
> > kernel exits.
> >
> > Can this be? :-S
> >
> > Thanks,
> > //richard
> 
> Cobalt signal handling may not be the cause of such exit, syscall
> handling could be, i.e. any code path crossing xnthread_test_cancel()
> starting from cobalt/posix/syscall.c. The best way to find out would be
> ftracing.

Thanks for the info! I'm pretty sure XNCANCELD is not used.
I'll dig deeper.

Thanks,
//richard

-- 
​​​​​sigma star gmbh | Eduard-Bodem-Gasse 6, 6020 Innsbruck, AUT
UID/VAT Nr: ATU 66964118 | FN: 374287y



      reply	other threads:[~2023-08-21  5:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-18  9:28 Task exit via rt_task_suspend()? Richard Weinberger
2023-08-18 17:26 ` Philippe Gerum
2023-08-21  5:49   ` Richard Weinberger [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=5802232.zQ0Gbyo6oJ@somecomputer \
    --to=richard@sigma-star.at \
    --cc=rpm@xenomai.org \
    --cc=xenomai@lists.linux.dev \
    /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.