All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Sean McGranaghan <smm@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Getting calling task id inside RTDM driver
Date: Mon, 17 Apr 2006 15:18:41 +0200	[thread overview]
Message-ID: <444395B1.9050603@domain.hid> (raw)
In-Reply-To: <4443899A.4010004@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 1301 bytes --]

Sean McGranaghan wrote:
> After posting I performed a two tests, first using an RTDM event and then using 
> a semaphore as described below. The synchronization worked in both cases, but I 
> think I have another problem. On exit my test application generates a 
> segmentation fault, but only occasionally. I do not get a stack dump in the 
> kernel log and the system does not seem to become unstable. I tried running my 
> test application under strace and gdb. In both cases I could not reproduce the 
> error. I am installing the latest version of Xenomai and adding debugging 
> options to the build. I will post when I know more.

mlockall? That's a typical thing to forget in your application (also
happens to me from time to time...), and it may or may not hit you with
a segfault one day.

> 
> Any suggestions on which Xenomai and kernel options to set for debugging?

The SVN contains some nice new debugging features for RTDM: catch
illegal contexts of rtdm_xxx-services and detect forgotten spinlocks
(via IRQs-on check) on return to the user. The latter already helped to
discover a bug in the xeno_16550A driver.

Moreover, if you are working on x86, the recent work on the kgdb
integration may be interesting as well. See related threads on the list.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

  reply	other threads:[~2006-04-17 13:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-14 14:30 [Xenomai-help] Getting calling task id inside RTDM driver Sean McGranaghan
2006-04-14 19:55 ` Sebastian Smolorz
2006-04-17 12:27   ` Sean McGranaghan
2006-04-17 13:18     ` Jan Kiszka [this message]
2006-04-16 14:03 ` 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=444395B1.9050603@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=smm@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.