All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Webb <jeff.webb@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] switchtest and Xenomai 2.2.4
Date: Thu, 26 Oct 2006 11:44:24 -0500	[thread overview]
Message-ID: <4540E5E8.9010608@domain.hid> (raw)
In-Reply-To: <4540DACA.2050406@domain.hid>

Gilles Chanteperdrix wrote:
> Jeff Webb wrote:
>> Gilles Chanteperdrix wrote:
>>
>>> After the first Ctrl-C that does not work, could you try and attach gdb
>>> to see where the threads are stopped ?
>>
>>
>> I tried to do this, but was unable to determine the stopping point 
>> using gdb.
>
> type simply: "info threads"
> then change thread to the main thread with "thread x", where x is the 
> lowest thread id as listed by "info threads"
> then type: "backtrace"

If I try to connect to the process after I press the ctrl-c one time, I get:

# gdb --pid=2660
Attaching to process 2660
warning: The current VSYSCALL page code requires an existing excuitable. [sic]
Use "add-symbol-file-from-memory" to load the VSYSCALL page by hand

Then the whole machine locks up, and I am forced to reboot.

I am able to connect before I press ctrl-c:

(gdb) thread 1
[Switching to thread 1 (Thread -1208273216 (LWP 2634))]#0  0xffffe410 in ?? ()
(gdb) backtrace
#0  0xffffe410 in ?? ()
#1  0xbfd96294 in ?? ()
#2  0x00000000 in ?? ()
(gdb) c
Continuing.

Then I type ctrl-c, and the machine locks up, as before.  The machine does not lock up, if I am not connected via gdb.

> /proc/xenomai/sched gives an information on the status that is easier to
> understand.

Before pressing ctrl-c:

$ cat /proc/xenomai/sched
CPU  PID    PRI      PERIOD   TIMEOUT    STAT       NAME
  0  0       -1      0        0          R          ROOT/0
  1  0       -1      0        0          R          ROOT/1
  0  2641     0      0        0          X          switchtest
  0  0        1      0        0          W          rtk1/0
  0  0        1      0        0          W          rtk2/0
  0  0        1      0        0          Wf         rtk3/0
  0  0        1      0        0          Wf         rtk4/0
  0  0        1      0        0          Wf         rtk5/0
  0  0        1      0        0          Wf         rtk6/0
  0  2643     1      0        0          X          rtup0-7
  0  2644     1      0        0          X          rtup0-8
  0  2645     1      0        0          X          rtup_ufpp0-9
  0  2646     1      0        0          X          rtup_ufpp0-10
  0  2647     1      0        0          W          rtus0-11
  0  2648     1      0        0          W          rtus0-12
  0  2649     1      0        0          W          rtus_ufps0-13
  0  2650     1      0        0          W          rtus_ufps0-14
  0  2651     1      0        0          X          rtuo0-15
  0  2652     1      0        0          X          rtuo0-16
  0  2653     1      0        0          X          rtuo_ufpp0-17
  0  2654     1      0        0          X          rtuo_ufpp0-18
  0  2655     1      0        0          X          rtuo_ufps0-19
  0  2656     1      0        0          X          rtuo_ufps0-20
  0  2657     1      0        0          X          rtuo_ufpp_ufps0-21
  0  2658     1      0        0          X          rtuo_ufpp_ufps0-22
  1  0        1      0        0          W          rtk1/1
  1  0        1      0        0          W          rtk2/1
  1  0        1      0        0          Wf         rtk3/1
  1  0        1      0        0          Wf         rtk4/1
  1  0        1      0        0          Wf         rtk5/1
  1  0        1      0        0          Wf         rtk6/1
  1  2660     1      0        0          X          rtup1-7
  1  2661     1      0        0          X          rtup1-8
  1  2662     1      0        0          X          rtup_ufpp1-9
  1  2663     1      0        0          X          rtup_ufpp1-10
  1  2664     1      0        0          W          rtus1-11
  1  2665     1      0        0          W          rtus1-12
  1  2666     1      0        0          W          rtus_ufps1-13
  1  2667     1      0        0          W          rtus_ufps1-14
  1  2668     1      0        0          W          rtuo1-15
  1  2669     1      0        0          W          rtuo1-16
  1  2670     1      0        0          W          rtuo_ufpp1-17
  1  2671     1      0        0          W          rtuo_ufpp1-18
  1  2672     1      0        0          W          rtuo_ufps1-19
  1  2673     1      0        0          W          rtuo_ufps1-20
  1  2674     1      0        0          W          rtuo_ufpp_ufps1-21
  1  2675     1      0        0          W          rtuo_ufpp_ufps1-22

After pressing ctrl-c once:

$ cat /proc/xenomai/sched
CPU  PID    PRI      PERIOD   TIMEOUT    STAT       NAME
  0  0       -1      0        0          R          ROOT/0
  1  0       -1      0        0          R          ROOT/1
  0  2641     0      0        0          X          switchtest
  0  0        1      0        0          W          rtk1/0
  0  0        1      0        0          W          rtk2/0
  0  0        1      0        0          Wf         rtk3/0
  0  0        1      0        0          Wf         rtk4/0
  0  0        1      0        0          Wf         rtk5/0
  0  0        1      0        0          Wf         rtk6/0
  0  2647     1      0        0          R          rtus0-11
  0  2648     1      0        0          R          rtus0-12
  0  2649     1      0        0          R          rtus_ufps0-13
  0  2650     1      0        0          R          rtus_ufps0-14
  0  2651     1      0        0          R          rtuo0-15
  0  2652     1      0        0          R          rtuo0-16
  0  2653     1      0        0          R          rtuo_ufpp0-17
  0  2654     1      0        0          R          rtuo_ufpp0-18
  0  2655     1      0        0          R          rtuo_ufps0-19
  0  2656     1      0        0          R          rtuo_ufps0-20
  0  2657     1      0        0          R          rtuo_ufpp_ufps0-21
  0  2658     1      0        0          R          rtuo_ufpp_ufps0-22
  1  0        1      0        0          W          rtk1/1
  1  0        1      0        0          W          rtk2/1
  1  0        1      0        0          Wf         rtk3/1
  1  0        1      0        0          Wf         rtk4/1
  1  0        1      0        0          Wf         rtk5/1
  1  0        1      0        0          Wf         rtk6/1
  1  2660     1      0        0          X          rtup1-7
  1  2661     1      0        0          X          rtup1-8
  1  2662     1      0        0          X          rtup_ufpp1-9
  1  2663     1      0        0          X          rtup_ufpp1-10
  1  2664     1      0        0          W          rtus1-11
  1  2665     1      0        0          W          rtus1-12
  1  2666     1      0        0          W          rtus_ufps1-13
  1  2667     1      0        0          W          rtus_ufps1-14
  1  2668     1      0        0          X          rtuo1-15
  1  2669     1      0        0          X          rtuo1-16
  1  2670     1      0        0          X          rtuo_ufpp1-17
  1  2671     1      0        0          X          rtuo_ufpp1-18
  1  2672     1      0        0          X          rtuo_ufps1-19
  1  2673     1      0        0          X          rtuo_ufps1-20
  1  2674     1      0        0          X          rtuo_ufpp_ufps1-21
  1  2675     1      0        0          X          rtuo_ufpp_ufps1-22

After pressing ctrl-c twice:

webb-ja@domain.hid:~$ cat /proc/xenomai/sched
CPU  PID    PRI      PERIOD   TIMEOUT    STAT       NAME
  0  0       -1      0        0          R          ROOT/0
  1  0       -1      0        0          R          ROOT/1
  0  0        1      0        0          W          rtk1/0
  0  0        1      0        0          W          rtk2/0
  0  0        1      0        0          Wf         rtk3/0
  0  0        1      0        0          Wf         rtk4/0
  0  0        1      0        0          Wf         rtk5/0
  0  0        1      0        0          Wf         rtk6/0
  1  0        1      0        0          W          rtk1/1
  1  0        1      0        0          W          rtk2/1
  1  0        1      0        0          Wf         rtk3/1
  1  0        1      0        0          Wf         rtk4/1
  1  0        1      0        0          Wf         rtk5/1
  1  0        1      0        0          Wf         rtk6/1
  1  2665     1      0        0          R          rtus1-12
  1  2666     1      0        0          R          rtus_ufps1-13
  1  2667     1      0        0          R          rtus_ufps1-14


  reply	other threads:[~2006-10-26 16:44 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-15 21:32 [Xenomai-core] Xenomai v2.2.4 Philippe Gerum
2006-10-25 20:10 ` [Xenomai-help] switchtest and Xenomai 2.2.4 Jeff Webb
2006-10-25 23:43   ` Jeff Webb
2006-10-26  8:21     ` Gilles Chanteperdrix
2006-10-26 15:51       ` Jeff Webb
2006-10-26 15:56         ` Gilles Chanteperdrix
2006-10-26 16:44           ` Jeff Webb [this message]
2006-10-26 16:55             ` Jan Kiszka
2006-10-26 18:53               ` Jeff Webb
2006-10-26  7:35   ` Gilles Chanteperdrix
     [not found]   ` <454078AD.5000907@domain.hid>
     [not found]     ` <4540DE60.40209@domain.hid>
     [not found]       ` <4540E1AB.2040200@domain.hid>
     [not found]         ` <4540EABD.10403@domain.hid>
     [not found]           ` <4540ECA6.5000604@domain.hid>
2006-10-26 19:49             ` Jeff Webb
2006-10-27  8:18               ` Gilles Chanteperdrix
2006-10-27 14:45                 ` Jeff Webb
2006-10-27 15:05                   ` Gilles Chanteperdrix
2006-10-27 16:25                     ` Jeff Webb

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=4540E5E8.9010608@domain.hid \
    --to=jeff.webb@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.org \
    --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.