[Xenomai] Weird behavior during debug
norbert.lange at andritz.com
Wed Dec 20 18:49:07 CET 2017
>From: Jan Kiszka [mailto:jan.kiszka at siemens.com]
>Sent: Dienstag, 19. Dezember 2017 19:57
>To: Lange Norbert; Xenomai (xenomai at xenomai.org); Philippe Gerum
>Subject: Re: Weird behavior during debug
>EMAIL from a NON-ANDRITZ SOURCE: as a security measure, please exercise
>caution with email content and any links or attachments.
>On 2017-12-19 14:44, Lange Norbert wrote:
>> Problem persists in ipipe-core-4.9.51-x86-4, ipipe-4.4 kernel crashes at boot
>(likely no good support for this SOC).
>> Used program is attached, it is being executed twice, once directly via serial
>or ssh, once via gdbserver or gdb (tested various combinations).
>> The directly executed program will stop (supposedly at read), as soon as the
>debugged program is halted.
>OK, now I get the point: You need
>but that is only in next so far.
I applies cleanly on the wip/rtnet branch, so I did test it and indeed it fixes the issue.
>What happens in stable (and also in older versions) is that all Xenomai
>timers in the system are stopped once one Xenomai application enters a
>ptrace state. That is going to vanish in the next version, and we may
>consider taking it to stable as well. What do you think, Philippe?
I don't know the direction where you want to go with the cobalt functionality,
this change is IMHO badly needed as digging into one process should never affect others.
However, there still is a difference to Linux behavior, namely that a periodic timerfd will read the
count of expired events after continuing. The cobalt implementation will just forget about them.
I suppose this hackaround is necessary so one-shot events aren`t dropped?
/* Hide overruns due to the most recent ptracing session. */
if (xnthread_test_localinfo(waiter, XNHICCUP))
This message and any attachments are solely for the use of the intended recipients. They may contain privileged and/or confidential information or other information protected from disclosure. If you are not an intended recipient, you are hereby notified that you received this email in error and that any review, dissemination, distribution or copying of this email and any attachment is strictly prohibited. If you have received this email in error, please contact the sender and delete the message and any attachment from your system.
ANDRITZ HYDRO GmbH
Rechtsform/ Legal form: Gesellschaft mit beschränkter Haftung / Corporation
Firmensitz/ Registered seat: Wien
Firmenbuchgericht/ Court of registry: Handelsgericht Wien
Firmenbuchnummer/ Company registration: FN 61833 g
More information about the Xenomai