Strange SIGXCPU signal at rt_task_trampoline
Hi all,
I have the strange effect, that I get a reproducable SIGXCPU signal in gdb when running my Xenomai (native skin) application.
It occurs in rt_task_trampoline() within the do..while loop.
The situation is that I am re-creating and starting a task that has been terminated before.
Unfortunately I was not able to create a very simple application that shows this effect.
I am using xenomai (SVN 1882), Pentium 4, gcc 4.1.2
I have enclosed the output of the gdb session:
---------- GDB START ------------
[Thread debugging using libthread_db enabled]
[New Thread -1215682880 (LWP 3132)]
[New Thread -1215687504 (LWP 3135)]
[New Thread -1219687504 (LWP 3138)]
[New Thread -1219822672 (LWP 3160)]
[New Thread -1219957840 (LWP 3161)]
[New Thread -1220093008 (LWP 3162)]
[New Thread -1220228176 (LWP 3163)]
[New Thread -1220363344 (LWP 3164)]
[New Thread -1220498512 (LWP 3165)]
[New Thread -1220633680 (LWP 3166)]
[Thread -1220633680 (zombie) exited]
[Thread -1220363344 (zombie) exited]
[Thread -1220228176 (zombie) exited]
[Thread -1219957840 (zombie) exited]
[Thread -1219822672 (zombie) exited]
[Thread -1220093008 (zombie) exited]
[Thread -1220498512 (zombie) exited]
[New Thread -1219822672 (LWP 3167)]
Program received signal SIGXCPU, CPU time limit exceeded. [Switching to Thread -1219822672 (LWP 3167)]0xb78f1f5e in rt_task_trampoline () from /usr/xenomai/lib/libnative.so.0 (gdb) bt
#0 0xb78f1f5e in rt_task_trampoline () from /usr/xenomai/lib/libnative.so.0 #1 0xb78e1240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #2 0xb79bf32e in clone () from /lib/tls/i686/cmov/libc.so.6
(gdb)
---------- GDB END ----------------
What can this be?
Thanks for any help on that issue!
Regards
Mathias
Signature · 9 lines
Mathias Koehrer [email protected] Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer, nur 44,85 € inkl. DSL- und ISDN-Grundgebühr! http://www.arcor.de/rd/emf-dsl-2
Quoted 12 lines · M. Koehrer
Hi all,
I have the strange effect, that I get a reproducable SIGXCPU signal in gdb when running my Xenomai (native skin) application.
It occurs inrt_task_trampoline()within the do..while loop.
The situation is that I am re-creating and starting a task that has been terminated before.
Unfortunately I was not able to create a very simple application that shows this effect.
I am using xenomai (SVN 1882), Pentium 4, gcc 4.1.2
I have enclosed the output of the gdb session:
Could you try this? TIA,
nucleus/shadow.c +1 -1
@@ -733,7 +733,7 @@xnstat_counter_inc (&thread->stat.ssw);/* Account for secondary mode switch. */ -if (notify &&testbits (thread->status,XNTRAPSW )) +if (notify &&testbits (thread->status,XNTRAPSW |XNSTARTED ) ==XNTRAPSW |XNSTARTED )/* Help debugging spurious relaxes. */ send_sig (SIGXCPU , current,1 );
Signature · 1 line
Philippe.
Hi Philippe,
unfortunately this patch did not help.
It is the same situation as before.
Regards
Mathias
Quoted 14 lines
Quoted 7 lines
I have the strange effect, that I get a reproducable SIGXCPU signal in gdb
when running my Xenomai (native skin) application.
It occurs inrt_task_trampoline()within the do..while loop. The situation is that I am re-creating and starting a task that has been terminated before.
Unfortunately I was not able to create a very simple application thatshows this
Quoted 4 lines
effect.
I am using xenomai (SVN 1882), Pentium 4, gcc 4.1.2 I have enclosed the output of the gdb session:Could you try this? TIA,
Signature · 9 lines
Mathias Koehrer [email protected] Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer, nur 44,85 € inkl. DSL- und ISDN-Grundgebühr! http://www.arcor.de/rd/emf-dsl-2
Quoted 5 lines · M. Koehrer
Hi Philippe,
unfortunately this patch did not help.
It is the same situation as before.
Mm, ok, thanks for trying this out. Is T_WARNSW passed to rt_task_create() in your case?
Signature · 1 line
Philippe.
Aw: Re: Aw: Re: [Xenomai-help] Strange SIGXCPU signal at
HI Philippe,
Quoted 6 lines
Quoted 3 lines
unfortunately this patch did not help.
It is the same situation as before.Mm, ok, thanks for trying this out. Is
T_WARNSWpassed tort_task_create()in your case?
No, I pass T_FPU | T_CPU(0)
Well, I have decided to restructure the application to create the tasks only once during lifetime (which has some other benefits as well). That means, that this issue hopefully will no longer hurt...
Thanks a lot
Mathias
Signature · 9 lines
Mathias Koehrer [email protected] Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer, nur 44,85 € inkl. DSL- und ISDN-Grundgebühr! http://www.arcor.de/rd/emf-dsl-2
Re: Aw: Re: Aw: Re: [Xenomai-help] Strange SIGXCPU signal at
Quoted 5 lines · M. Koehrer
HI Philippe,
Quoted 3 lines
Quoted 3 lines
unfortunately this patch did not help.
It is the same situation as before.
Quoted 8 lines
Quoted 2 lines
Mm, ok, thanks for trying this out. Is
T_WARNSWpassed tort_task_create()in your case?No, I pass
T_FPU|T_CPU(0)Well, I have decided to restructure the application to create the tasks only once during lifetime (which has some other benefits as well). That means, that this issue hopefully will no longer hurt...
As I just read over the related code in the nucleus: SIGXCPU is also raised if the process's memory isn't locked. Did you invoke mlockall? Or do we see a false positive cause be that part here?
Jan
Re: Aw: Re: Aw: Re: [Xenomai-help] Strange SIGXCPU signal at
In reply to M. KoehrerQuoted 6 lines · M. Koehrer
HI Philippe,
Quoted 4 lines
Quoted 3 lines
unfortunately this patch did not help.
It is the same situation as before.
Quoted 7 lines
Quoted 2 lines
Mm, ok, thanks for trying this out. Is
T_WARNSWpassed tort_task_create()in your case?No, I pass
T_FPU|T_CPU(0)Well, I have decided to restructure the application to create the tasks only once during lifetime (which has some other benefits as well). That means, that this issue hopefully will no longer hurt...
Ok; still, I'd like to figure out what's been going on since this might hide a problem.
Do you invoke rt_task_set_mode() from any context before the issue starts showing up?
Quoted 5 lines
Thanks a lot
Mathias
Signature · 1 line
Philippe.