From: Jan Kiszka <jan.kiszka@domain.hid>
To: Peter Soetens <peter.soetens@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Debugging in Xenomai
Date: Fri, 24 Nov 2006 11:41:21 +0100 [thread overview]
Message-ID: <4566CC51.20400@domain.hid> (raw)
In-Reply-To: <200611241020.45706.peter.soetens@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1506 bytes --]
Peter Soetens wrote:
> On Thursday 23 November 2006 16:25, Daniel Schnell wrote:
>> One of the next steps would be finding out which actual function back
>> trace the suspicious thread has. So I execute gdb and try to attach to
>> the appropriate process, which works. Problem: sending Ctrl-C doesn't
>> work, independant of if gdb is executed via ssh or serial console. So I
>> cannot stop the actual program beeing debugged, rendering the gdb
>> approach useless. Also sending SIGINT to the GDB process doesn't work.
>> It seems to be simply ignored. As I understand CTRL-C is effectively
>> sending SIGINT and is sent to GDB itself and not to the underlying appl.
>
> We had a similar issue while debugging an RTNET app (main thread + 1 xenomai
> posix skin thread) under xenomai. I don't recall exactly the circumstances,
> but the app was blocked on a socket, and a Ctrl-C did not work. A 'killall
> gdb' (SIGTERM) did come through and killed gdb. If you (the Xeno/RTNet
> developers)'re interested in this case, I'll see if I can get more info.
You're welcome.
I just checked the behaviour of examples/xenomai/posix/eth_p_all over
gdb. I can interrupt the blocking recv - so far so good - but the
syscall is unfortunately not replayed when continuing. Instead, the
program just terminates because some error (EINTR) is reported to the
application.
[Too lazy to dig:] Philippe, isn't syscall restarting after an
interruption the job of the Xenomai nucleus?
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2006-11-24 10:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-23 15:25 [Xenomai-help] Debugging in Xenomai Daniel Schnell
2006-11-23 15:57 ` Jan Kiszka
2006-11-23 17:23 ` Philippe Gerum
2006-11-23 17:56 ` Gilles Chanteperdrix
2006-11-24 9:20 ` Peter Soetens
2006-11-24 10:41 ` Jan Kiszka [this message]
2006-11-24 11:09 ` Philippe Gerum
2006-11-24 12:10 ` Jan Kiszka
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=4566CC51.20400@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=peter.soetens@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.