* [Xenomai-core] [BUG] deleting a T_SUSP'ed native task
@ 2006-02-04 8:50 Jan Kiszka
2006-02-05 15:31 ` [Xenomai-core] " Gilles Chanteperdrix
2006-02-14 14:23 ` Gilles Chanteperdrix
0 siblings, 2 replies; 4+ messages in thread
From: Jan Kiszka @ 2006-02-04 8:50 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai-core
[-- Attachment #1: Type: text/plain, Size: 1966 bytes --]
Hi Gilles,
were you able to successfully run my T_SUSP test-case after the latest
changes? For me this code still causes fatal exceptions:
#include <stdio.h>
#include <sys/mman.h>
#include <native/task.h>
void func(void *arg)
{
printf("you should not see this\n");
rt_task_suspend(NULL);
}
int main(int argc, char **argv)
{
RT_TASK task;
mlockall(MCL_CURRENT|MCL_FUTURE);
rt_task_create(&task, "T_SUSP-test", 0, 10, T_SUSP);
rt_task_start(&task, func, NULL);
printf("deleting...\n");
rt_task_delete(&task);
return 0;
}
This is the output of the locked up system:
[ 115.263641] Xenomai: fatal: xnshadow_relax() failed for thread
T_SUSP-test[871]
[ 115.263650] CPU PID PRI TIMEOUT STAT NAME
[ 115.263656] 0 0 10 0 00500088 ROOT
[ 115.263661] > 0 871 10 0 00301880 T_SUSP-test
[ 115.263666] Timer: oneshot [tickval=1 ns, elapsed=115298322556]
[ 115.263671]
[ 115.300112] ce853f24 d085fa78 c1300000 d08606f8 d0a21d70 00000367
ce853fbc c0301780
[ 115.309231] 58454e4f ce853f74 d0859cfe 00000001 00000018
b7db4000 ce853f80 d0a21a60
[ 115.319295] cf09a570 c04f2d80 c0301780 c04f2d80 ce853fa8
c013b695 00000021 c04f2d80
[ 115.329359] Call Trace:
[ 115.332497] [<c0103784>] show_stack+0x94/0xe0
[ 115.337847] [<d085903a>] xnshadow_relax+0x19a/0x230 [xeno_nucleus]
[ 115.345418] [<d0859cfe>] hisyscall_event+0xde/0x3a0 [xeno_nucleus]
[ 115.352961] [<c013b695>] __ipipe_dispatch_event+0x95/0x130
[ 115.359657] [<c010e571>] __ipipe_syscall_root+0x31/0xf0
[ 115.366038] [<c0103070>] system_call+0x20/0x41
And then this:
[ 115.550244] Xenomai: watchdog triggered -- suspending runaway thread
'T_SUSP-test'
[ 115.554242] Xenomai: watchdog triggered -- suspending runaway thread
'T_SUSP-test'
[ 115.558241] Xenomai: watchdog triggered -- suspending runaway thread
'T_SUSP-test'
...
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-02-15 8:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-04 8:50 [Xenomai-core] [BUG] deleting a T_SUSP'ed native task Jan Kiszka
2006-02-05 15:31 ` [Xenomai-core] " Gilles Chanteperdrix
2006-02-14 14:23 ` Gilles Chanteperdrix
2006-02-15 8:24 ` Jan Kiszka
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.