All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] gdb and latency
@ 2006-03-31  8:58 ew
  2006-03-31  9:16 ` Philippe Gerum
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ew @ 2006-03-31  8:58 UTC (permalink / raw)
  To: xenomai

Dear Xenomai team,

We're using Xenomai 2.1.0 on an PPC based Freescale controller. Kernel
Version is 2.4.25. Testsuite's latency works fine, except when using GDB.
While debugging the program, the semaphore in line 220 is not caught and
line 225 prints  "failed to pend on semaphore, code -512".
Breakpoints set in this vicinity are ignored. We've tried GDB 5.1 and 6.4.
Do you have an explanation for this bevaviour?

Thanks in advance

O. Flick

---------------------------------------------

ADC GmbH
Systems for industry and automation

Kringelsburg
21379 Scharnebeck
Germany

Tel. +49 4136/90 00-0
Fax  +49 4136/90 00-21

eMail ew@domain.hid
web   http://www.adcgmbh.de




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-help] gdb and latency
  2006-03-31  8:58 [Xenomai-help] gdb and latency ew
@ 2006-03-31  9:16 ` Philippe Gerum
  2006-03-31 15:40 ` Philippe Gerum
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Philippe Gerum @ 2006-03-31  9:16 UTC (permalink / raw)
  To: ew; +Cc: xenomai

ew@domain.hid wrote:
> Dear Xenomai team,
> 
> We're using Xenomai 2.1.0 on an PPC based Freescale controller. Kernel
> Version is 2.4.25. Testsuite's latency works fine, except when using GDB.
> While debugging the program, the semaphore in line 220 is not caught and
> line 225 prints  "failed to pend on semaphore, code -512".
> Breakpoints set in this vicinity are ignored. We've tried GDB 5.1 and 6.4.
> Do you have an explanation for this bevaviour?
>

This is not a latency issue, but a bugous interaction between the 
ptracing and Xenomai we need to fix (-512 is -ERESTARTSYS, which should 
never be visible by the application). Could you describe exactely the 
sequence of GDB commands you pass to reproduce the issue?

> Thanks in advance
> 
> O. Flick
> 
> ---------------------------------------------
> 
> ADC GmbH
> Systems for industry and automation
> 
> Kringelsburg
> 21379 Scharnebeck
> Germany
> 
> Tel. +49 4136/90 00-0
> Fax  +49 4136/90 00-21
> 
> eMail ew@domain.hid
> web   http://www.adcgmbh.de
> 
> 
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
> 


-- 

Philippe.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-help] gdb and latency
  2006-03-31  8:58 [Xenomai-help] gdb and latency ew
  2006-03-31  9:16 ` Philippe Gerum
@ 2006-03-31 15:40 ` Philippe Gerum
  2006-03-31 21:45 ` Philippe Gerum
  2006-03-31 21:47 ` [Xenomai-core] " Philippe Gerum
  3 siblings, 0 replies; 5+ messages in thread
From: Philippe Gerum @ 2006-03-31 15:40 UTC (permalink / raw)
  To: ew; +Cc: xenomai

ew@domain.hid wrote:
> Dear Xenomai team,
> 
> We're using Xenomai 2.1.0 on an PPC based Freescale controller. Kernel
> Version is 2.4.25. Testsuite's latency works fine, except when using GDB.
> While debugging the program, the semaphore in line 220 is not caught and
> line 225 prints  "failed to pend on semaphore, code -512".
> Breakpoints set in this vicinity are ignored. We've tried GDB 5.1 and 6.4.
> Do you have an explanation for this bevaviour?

Bug confirmed here. This is a 2.4-specific issue which needs to be fixed.
After a few tests, 2.6-based configurations seem to be immune to this bug.

> 
> Thanks in advance
> 
> O. Flick
> 
> ---------------------------------------------
> 
> ADC GmbH
> Systems for industry and automation
> 
> Kringelsburg
> 21379 Scharnebeck
> Germany
> 
> Tel. +49 4136/90 00-0
> Fax  +49 4136/90 00-21
> 
> eMail ew@domain.hid
> web   http://www.adcgmbh.de
> 
> 
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
> 


-- 

Philippe.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-help] gdb and latency
  2006-03-31  8:58 [Xenomai-help] gdb and latency ew
  2006-03-31  9:16 ` Philippe Gerum
  2006-03-31 15:40 ` Philippe Gerum
@ 2006-03-31 21:45 ` Philippe Gerum
  2006-03-31 21:47 ` [Xenomai-core] " Philippe Gerum
  3 siblings, 0 replies; 5+ messages in thread
From: Philippe Gerum @ 2006-03-31 21:45 UTC (permalink / raw)
  To: ew; +Cc: xenomai

ew@domain.hid wrote:
> Dear Xenomai team,
> 
> We're using Xenomai 2.1.0 on an PPC based Freescale controller. Kernel
> Version is 2.4.25. Testsuite's latency works fine, except when using GDB.
> While debugging the program, the semaphore in line 220 is not caught and
> line 225 prints  "failed to pend on semaphore, code -512".
> Breakpoints set in this vicinity are ignored. We've tried GDB 5.1 and 6.4.
> Do you have an explanation for this bevaviour?
>

This one was an Adeos bug, actually. This bug only appears in the 
2.4/ppc series, 2.6/ppc is immune; other archs are not concerned by this 
issue.

http://download.gna.org/adeos/patches/v2.4/ppc/adeos-ipipe-2.4.25-ppc-denx-1.0-04.patch


> Thanks in advance
> 
> O. Flick
> 
> ---------------------------------------------
> 
> ADC GmbH
> Systems for industry and automation
> 
> Kringelsburg
> 21379 Scharnebeck
> Germany
> 
> Tel. +49 4136/90 00-0
> Fax  +49 4136/90 00-21
> 
> eMail ew@domain.hid
> web   http://www.adcgmbh.de
> 
> 
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
> 


-- 

Philippe.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Xenomai-core] Re: [Xenomai-help] gdb and latency
  2006-03-31  8:58 [Xenomai-help] gdb and latency ew
                   ` (2 preceding siblings ...)
  2006-03-31 21:45 ` Philippe Gerum
@ 2006-03-31 21:47 ` Philippe Gerum
  3 siblings, 0 replies; 5+ messages in thread
From: Philippe Gerum @ 2006-03-31 21:47 UTC (permalink / raw)
  Cc: xenomai

ew@domain.hid wrote:
> Dear Xenomai team,
> 
> We're using Xenomai 2.1.0 on an PPC based Freescale controller. Kernel
> Version is 2.4.25. Testsuite's latency works fine, except when using GDB.
> While debugging the program, the semaphore in line 220 is not caught and
> line 225 prints  "failed to pend on semaphore, code -512".
> Breakpoints set in this vicinity are ignored. We've tried GDB 5.1 and 6.4.
> Do you have an explanation for this bevaviour?
>

This one was an Adeos bug, actually. This bug only appears in the
2.4/ppc series, 2.6/ppc is immune; other archs are not concerned by this
issue.

http://download.gna.org/adeos/patches/v2.4/ppc/adeos-ipipe-2.4.25-ppc-denx-1.0-04.patch


> Thanks in advance
> 
> O. Flick
> 
> ---------------------------------------------
> 
> ADC GmbH
> Systems for industry and automation
> 
> Kringelsburg
> 21379 Scharnebeck
> Germany
> 
> Tel. +49 4136/90 00-0
> Fax  +49 4136/90 00-21
> 
> eMail ew@domain.hid
> web   http://www.adcgmbh.de
> 
> 
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
> 


-- 

Philippe.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-03-31 21:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-31  8:58 [Xenomai-help] gdb and latency ew
2006-03-31  9:16 ` Philippe Gerum
2006-03-31 15:40 ` Philippe Gerum
2006-03-31 21:45 ` Philippe Gerum
2006-03-31 21:47 ` [Xenomai-core] " Philippe Gerum

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.