All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Stoidner, Christoph" <c.stoidner@arvero.de>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] Sleeping function called from invalid context
Date: Wed, 10 Dec 2014 17:26:25 +0100	[thread overview]
Message-ID: <20141210162625.GL1524@hermes.click-hack.org> (raw)
In-Reply-To: <2a74ff40de88431da68f4922b415da89@EX132MBOX1A.de2.local>

On Wed, Dec 10, 2014 at 04:23:51PM +0000, Stoidner, Christoph wrote:
> 
> >
> > Anyway, is not it simply a deadlock in your application ?
> 
> I don't think so. Here is a list of all tasks:
> 
> ~ # cat /proc/xenomai/stat 
> CPU  PID    MSW        CSW        PF    STAT       %CPU  NAME
>   0  0      0          7452       0     00500080   98.9  ROOT
>   0  83     196        196        0     00300380    0.0  DOS4
>   0  81     13         13         0     00300380    0.0  DOS5
>   0  97     618        830        0     00300380    0.0  @WDG
>   0  101    751        1127       0     00300380    0.0  HSSR
>   0  128    1268       2186       0     00300380    0.0  DOS8
>   0  129    1          1          0     00300380    0.0  @CGI
>   0  130    7          10         0     00300182    0.0  LOG 
>   0  131    1          2          0     00300184    0.0  IOXP
>   0  142    20         42         0     00300380    0.0  KTMR
>   0  151    1652       1901       0     00300380    0.0  Sdrv
>   0  152    383        489        0     00300380    0.0  LApp
>   0  156    0          1          0     00300380    0.0  DOS9
>   0  0      0          14937556   0     00000000    1.0  IRQ16: [timer]
> 
> Most of them are in state 00300380, that means:
>   XNSTARTED
>   XNMAPPED
>   XNRELAXED
>   XNFPU
>   XNSHADOW
> 
> For a deadlock I would expect all threads must be wait for a semaphore or something else (state flag XNPEND). However all tasks are freezed.

Well no, XNRELAXED state means that it is suspended from xenomai
scheduler point of view, and handled by Linux scheduler. So, if
there is a deadlock, it happens in secondary mode.

-- 
					    Gilles.


  reply	other threads:[~2014-12-10 16:26 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-06 14:19 [Xenomai] Sleeping function called from invalid context Stoidner, Christoph
2014-12-06 14:25 ` Gilles Chanteperdrix
2014-12-06 15:11   ` Stoidner, Christoph
2014-12-07 12:32     ` Stoidner, Christoph
2014-12-07 12:40 ` Gilles Chanteperdrix
2014-12-07 13:50   ` Stoidner, Christoph
2014-12-07 13:52     ` Gilles Chanteperdrix
2014-12-07 15:05       ` Stoidner, Christoph
2014-12-09 20:06         ` Stoidner, Christoph
2014-12-09 20:08           ` Gilles Chanteperdrix
2014-12-09 20:18             ` Stoidner, Christoph
2014-12-09 20:24               ` Gilles Chanteperdrix
2014-12-09 20:34                 ` Stoidner, Christoph
2014-12-09 20:37                   ` Gilles Chanteperdrix
2014-12-09 20:47                     ` Stoidner, Christoph
2014-12-09 20:55                       ` Gilles Chanteperdrix
2014-12-09 20:49           ` Stoidner, Christoph
2014-12-09 20:59             ` Gilles Chanteperdrix
2014-12-10 16:23               ` Stoidner, Christoph
2014-12-10 16:26                 ` Gilles Chanteperdrix [this message]
2014-12-10 18:23                   ` Stoidner, Christoph
2014-12-10 18:41                     ` Gilles Chanteperdrix
  -- strict thread matches above, loose matches on Subject: below --
2014-12-10 18:58 Stoidner, Christoph
2014-12-10 19:01 ` Gilles Chanteperdrix
2014-12-11 10:00   ` Stoidner, Christoph
2014-12-11 10:05     ` Gilles Chanteperdrix
2014-12-11 10:18       ` Stoidner, Christoph
2014-12-11 10:22         ` Gilles Chanteperdrix
2014-12-11 10:29           ` Stoidner, Christoph
2014-12-11 10:47             ` Gilles Chanteperdrix
2014-12-11 11:17               ` Stoidner, Christoph
2014-12-11 14:47                 ` Gilles Chanteperdrix
2014-12-11 15:47                   ` Stoidner, Christoph
2014-12-11 16:06                     ` Gilles Chanteperdrix
2014-12-11 16:31                       ` Stoidner, Christoph
2014-12-11 16:38                         ` Gilles Chanteperdrix
2014-12-11 19:23                           ` Stoidner, Christoph
2014-12-12 16:42                             ` Stoidner, Christoph
2014-12-15 11:42                               ` Stoidner, Christoph
2014-12-15 13:23                                 ` Gilles Chanteperdrix
2014-12-15 13:29                                   ` Stoidner, Christoph
2014-12-15 14:20                                     ` Gilles Chanteperdrix
2014-12-15 15:11                                       ` Stoidner, Christoph
2014-12-15 15:19                                         ` Gilles Chanteperdrix
2014-12-17 12:24                                           ` Stoidner, Christoph
2014-12-17 12:38                                             ` Gilles Chanteperdrix
2014-12-17 13:22                                             ` Gilles Chanteperdrix
2014-12-17 15:46                                               ` Gilles Chanteperdrix
2014-12-17 22:40                                                 ` Stoidner, Christoph

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=20141210162625.GL1524@hermes.click-hack.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=c.stoidner@arvero.de \
    --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.