Skip to contentSkip to conversation

gdb and latency

Xenomai-help [email protected] 2 participants 5 messages Mar 31, 2006

lore
Share & tools
lore
#0 lore raw

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 [email protected]
web http://www.adcgmbh.de

#1 lore raw
Quoted 9 lines · [email protected] 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?

Quoted 26 lines

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 [email protected]
web http://www.adcgmbh.de

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.
#2 lore raw
In reply to [email protected]
Quoted 8 lines · [email protected] 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.

Quoted 27 lines

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 [email protected]
web http://www.adcgmbh.de

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.
#3 lore raw
In reply to [email protected]
Quoted 9 lines · [email protected] 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

Quoted 26 lines

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 [email protected]
web http://www.adcgmbh.de

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.
#4 lore raw
In reply to [email protected]
Quoted 9 lines · [email protected] 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

Quoted 26 lines

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 [email protected]
web http://www.adcgmbh.de

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.