From: Philippe Gerum <rpm@xenomai.org>
To: Russell Johnson <russell.johnson@kratosdefense.com>
Cc: "xenomai@lists.linux.dev" <xenomai@lists.linux.dev>
Subject: Re: More details on health monitoring notifications
Date: Thu, 14 Jul 2022 10:19:41 +0200 [thread overview]
Message-ID: <87bktsdrih.fsf@xenomai.org> (raw)
In-Reply-To: <PH1P110MB1050DA45ACEDB22C7EFA31C0E2839@PH1P110MB1050.NAMP110.PROD.OUTLOOK.COM>
Russell Johnson <russell.johnson@kratosdefense.com> writes:
> [[S/MIME Signed Part:Undecided]]
> Correct, it is running on x86. I am not sure what would be causing a page
>
> fault in the EVL threads as I figured the mlockall call by evl_init would take
>
> care of preventing that from happening.
>
We may have a clue by knowing which type of memory is being referred
to.
- Did you trace the offending access using gdb, is it regular memory?
- Does your application fork() in any way prior to running into this
issue?
>
>
> I have tried to run the app with gdb (used to work fine pre-EVL), but now I
>
Which previous environment was this? Xenomai 3.x + I-pipe?
> get all sorts off exceptions and error codes when trying to run in the
>
> debugger. I quite frequently see EPERM issues with evl mutex unlock/lock (even
>
> though it works fine when not run through a debugger). Also, when I swap the
>
> thread mode flag from T_HMOBS to T_HMSIG and run in the debugger, I get a
>
> "11776 CPU time limit exceeded (core dumped)" error on the create call for an
>
> evl event in one of my threads.
> I am not sure why I am seeing such different
>
> behavior in the debugger versus the normal run when it comes to the evl API
>
> calls. Any ideas?
>
SIGXCPU is an alias of SIGDEBUG, the signal the EVL core uses to warn
you about something wrong in general. e.g. if CONFIG_EVL_DEBUG_WOLI is
set in the kernel configuration and the application is doing something
wrong wrt mutex-based locking patterns, the core would notify it using
SIGDEBUG. The causes are described for the T_WOLI bit at [1]. The core
might also issue SIGDEBUG when the watchdog triggers for the current
thread (CONFIG_EVL_WATCHDOG).
[1] https://evlproject.org/core/user-api/thread/#health-monitoring
--
Philippe.
next prev parent reply other threads:[~2022-07-14 8:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-07 20:02 More details on health monitoring notifications Russell Johnson
2022-07-14 8:19 ` Philippe Gerum [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-07-01 17:19 Russell Johnson
2022-07-05 22:25 ` Russell Johnson
2022-07-06 14:57 ` Philippe Gerum
2022-07-06 19:05 ` Leonid Gasheev via Xenomai
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=87bktsdrih.fsf@xenomai.org \
--to=rpm@xenomai.org \
--cc=russell.johnson@kratosdefense.com \
--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.