All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Juan Antonio Garcia Redondo <juan-antonio.garcia@domain.hid>
Cc: jagredondo@domain.hid, xenomai@xenomai.org
Subject: Re: [Xenomai-help] RTDM driver hangs
Date: Tue, 04 Nov 2008 18:29:07 +0100	[thread overview]
Message-ID: <49108663.4060202@domain.hid> (raw)
In-Reply-To: <20081104132227.GA25486@domain.hid>

Juan Antonio Garcia Redondo wrote:
> Hi all,
> 
> I've been invetigating further the problem and I've found that the
> crash occurs in the following situation (now just one process using a
> rtdm driver):
> 
> o A real time process call to rtdm_ioctl function.
> o The rtdm_ioctl function blocks at rtdm_task_sleep (or any other blocking
> system call).
> o Arrive a signal which switch the process to executable state. The
> blocking system call returns -EINTR.
> o Whithout exit the RTDM driver, call to another blocking system call
> (rtdm_task_timedwait for instance). This system call returns -EINTR and the
> rtdm_ioctl function retuns -EINTR.

This is most probably the primary error: You should return to userspace
quickly, without further blocking, if a signal is pending.

However, the following crash is not OK. Maybe some code path lacks a
robustness check, maybe something more seriously is broken. Will try to
debug this with your test once time permits.

Thanks for reporting,
Jan

-- 
Siemens AG, Corporate Technology, CT SE 2 ES-OS
Corporate Competence Center Embedded Linux


      reply	other threads:[~2008-11-04 17:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-30  9:44 [Xenomai-help] RTDM driver hangs Juan Antonio Garcia Redondo
2008-11-04 13:22 ` Juan Antonio Garcia Redondo
2008-11-04 17:29   ` Jan Kiszka [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=49108663.4060202@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=jagredondo@domain.hid \
    --cc=juan-antonio.garcia@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.