Skip to contentSkip to conversation

xenomai exceptions tracing

Xenomai-help Yigal Goldberger 3 participants 5 messages Jul 22, 2009

lore
Share & tools
lore
#0 lore raw

Hi all,
I'm using kernel 2.6.29.4 with xenomai .
I'm getting an exception 769 . I'd like to know what this exception means (or hints where to look for it ).

6>MTD_open
<6>MTD_ioctl
<6>MTD_open
<6>MTD_ioctl
<6>Xenomai: Switching 802Rdr to secondary mode after exception #769 from user-sp ace at 0x10017cec (pid 974)
<6>Xenomai: Posix: closing message queue descriptor 3.
<6>Xenomai: Posix: closing message queue descriptor 4.
<6>Xenomai: Posix: closing message queue descriptor 5.
<6>Xenomai: Posix: closing message queue descriptor 7.
<6>Xenomai: Posix: closing message queue descriptor 8.
<6>Xenomai: Posix: closing message queue descriptor 9.
<6>Xenomai: Posix: closing message queue descriptor 10.
<6>Xenomai: Posix: closing message queue descriptor 11.
<6>Xenomai: Posix: closing message queue descriptor 12.
<6>Xenomai: Posix: closing message queue descriptor 14.
<6>Xenomai: Posix: closing message queue descriptor 15.

Thanks,
Yigal Goldberger.

#1 lore raw
Quoted 3 lines · Yigal Goldberger

Hi all, I'm using kernel 2.6.29.4 with xenomai . I'm getting an exception 769 . I'd like to know what this exception means (or hints where to look for it ).

Well the meaning of exceptions is dependent on the platform you are using, so we can not answer without more information.

Quoted 3 lines

(...)<6>Xenomai:
Switching 802Rdr to secondary mode after exception #769 from user-sp ace at 0x10017cec (pid 974)

However, you can ask to receive a signal at the point where the exception happens, doing as in ksrc/skins/native/snippets/sigxcpu.c, only using pthread_set_mode_np instead of rt_task_set_mode, if you use the posix skin.

Alternatively, you have a way of knowing directly where the exception happens by disassembling your example program and look where 0x10017cec is.

P.S: if you do not like the way your message looks when I rewrap it, send it correctly wrapped.

Signature · 1 line
                                          Gilles
#2 lore raw
In reply to Yigal Goldberger
Quoted 4 lines · Yigal Goldberger

Hi all,
I'm using kernel 2.6.29.4 with xenomai .
I'm getting an exception 769 . I'd like to know what this exception means (or hints where to look for it ).

It looks like you are running a ppc system. Those are minor MMU faults, due to PTE misses that happen on some platforms (83xx and 85xx come to mind). Those get reported because you turned the nucleus debug switch on. Nothing bad in your case.

Quoted 28 lines

6>MTD_open
<6>MTD_ioctl
<6>MTD_open
<6>MTD_ioctl
<6>Xenomai: Switching 802Rdr to secondary mode after exception #769 from user-sp ace at 0x10017cec (pid 974)
<6>Xenomai: Posix: closing message queue descriptor 3.
<6>Xenomai: Posix: closing message queue descriptor 4.
<6>Xenomai: Posix: closing message queue descriptor 5.
<6>Xenomai: Posix: closing message queue descriptor 7.
<6>Xenomai: Posix: closing message queue descriptor 8.
<6>Xenomai: Posix: closing message queue descriptor 9.
<6>Xenomai: Posix: closing message queue descriptor 10.
<6>Xenomai: Posix: closing message queue descriptor 11.
<6>Xenomai: Posix: closing message queue descriptor 12.
<6>Xenomai: Posix: closing message queue descriptor 14.
<6>Xenomai: Posix: closing message queue descriptor 15.

Thanks,
Yigal Goldberger.

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

Signature · 1 line
Philippe.
#3 lore raw

Hi Philippe,
Thanks for replying .
Indeed it's a powerpc . it is a mpc8272 freescale powerpc family cpu.
I printed the kmsg log and that's what I printed in this email below ,
from the kmsg log I see that the next message after this exception is
from where the application is being shut down .
Could this be a response to this exception , or is it just by chance printed straight after ? Thanks,
Yigal.

Quoted 66 lines · Philippe Gerum

From: Philippe Gerum <[email protected]>
Subject: Re: [Xenomai-help] xenomai exceptions tracing
To: "Yigal Goldberger" <[email protected]>
Cc: [email protected]
Date: Wednesday, July 22, 2009, 12:07 PM

Quoted 3 lines · Yigal Goldberger

Hi all,
I'm using kernel 2.6.29.4 with xenomai .
I'm getting an exception 769 . I'd like to know what

this exception means (or hints where to look for it ).

Quoted 1 line

It looks like you are running a ppc system. Those are minor MMU faults,
due to PTE misses that happen on some platforms (83xx and 85xx come to
mind). Those get reported because you turned the nucleus debug switch
on. Nothing bad in your case.

Quoted 5 lines

6>MTD_open
<6>MTD_ioctl
<6>MTD_open
<6>MTD_ioctl
<6>Xenomai: Switching 802Rdr to secondary mode

after exception #769 from user-sp

Quoted 2 lines

ace at 0x10017cec (pid 974)
<6>Xenomai: Posix: closing message queue

descriptor 3.

Quoted 1 line

<6>Xenomai: Posix: closing message queue

descriptor 4.

Quoted 1 line

<6>Xenomai: Posix: closing message queue

descriptor 5.

Quoted 1 line

<6>Xenomai: Posix: closing message queue

descriptor 7.

Quoted 1 line

<6>Xenomai: Posix: closing message queue

descriptor 8.

Quoted 1 line

<6>Xenomai: Posix: closing message queue

descriptor 9.

Quoted 1 line

<6>Xenomai: Posix: closing message queue

descriptor 10.

Quoted 1 line

<6>Xenomai: Posix: closing message queue

descriptor 11.

Quoted 1 line

<6>Xenomai: Posix: closing message queue

descriptor 12.

Quoted 1 line

<6>Xenomai: Posix: closing message queue

descriptor 14.

Quoted 1 line

<6>Xenomai: Posix: closing message queue

descriptor 15.

Quoted 11 lines

Thanks,
Yigal Goldberger.

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

Signature · 1 line
Philippe.
#4 lore raw
Quoted 7 lines · Yigal Goldberger

Hi Philippe,
Thanks for replying .
Indeed it's a powerpc . it is a mpc8272 freescale powerpc family cpu.
I printed the kmsg log and that's what I printed in this email below ,
from the kmsg log I see that the next message after this exception is
from where the application is being shut down .
Could this be a response to this exception , or is it just by chance printed straight after ?

This kind of exception is handled internally between the linux kernel and the Xenomai core, it would not stop the application. Xenomai would only kill a kernel-based RT thread dereferencing a bad memory area (with a non-ambiguous message in the klog), which is certainly not the case here. Linux would kill a userland thread doing the same (RT / non-RT, regardless) with a signal.

This is not what happens here. You may want to enable CONFIG_PRINTK_TIME to have timestamps on your kernel messages, in order to confirm this.

Quoted 74 lines

Thanks,
Yigal.

Quoted 66 lines · Philippe Gerum

From: Philippe Gerum <[email protected]>
Subject: Re: [Xenomai-help] xenomai exceptions tracing
To: "Yigal Goldberger" <[email protected]>
Cc: [email protected]
Date: Wednesday, July 22, 2009, 12:07 PM

Quoted 3 lines · Yigal Goldberger

Hi all,
I'm using kernel 2.6.29.4 with xenomai .
I'm getting an exception 769 . I'd like to know what

this exception means (or hints where to look for it ).

Quoted 1 line

It looks like you are running a ppc system. Those are minor MMU faults,
due to PTE misses that happen on some platforms (83xx and 85xx come to
mind). Those get reported because you turned the nucleus debug switch
on. Nothing bad in your case.

Quoted 5 lines

6>MTD_open
<6>MTD_ioctl
<6>MTD_open
<6>MTD_ioctl
<6>Xenomai: Switching 802Rdr to secondary mode

after exception #769 from user-sp

Quoted 2 lines

ace at 0x10017cec (pid 974)
<6>Xenomai: Posix: closing message queue

descriptor 3.

Quoted 1 line

<6>Xenomai: Posix: closing message queue

descriptor 4.

Quoted 1 line

<6>Xenomai: Posix: closing message queue

descriptor 5.

Quoted 1 line

<6>Xenomai: Posix: closing message queue

descriptor 7.

Quoted 1 line

<6>Xenomai: Posix: closing message queue

descriptor 8.

Quoted 1 line

<6>Xenomai: Posix: closing message queue

descriptor 9.

Quoted 1 line

<6>Xenomai: Posix: closing message queue

descriptor 10.

Quoted 1 line

<6>Xenomai: Posix: closing message queue

descriptor 11.

Quoted 1 line

<6>Xenomai: Posix: closing message queue

descriptor 12.

Quoted 1 line

<6>Xenomai: Posix: closing message queue

descriptor 14.

Quoted 1 line

<6>Xenomai: Posix: closing message queue

descriptor 15.

Quoted 11 lines

Thanks,
Yigal Goldberger.

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

Signature · 1 line
Philippe.
Signature · 1 line
Philippe.