rt_task_delete doesn't work
Hi,
the function rt_task_delete goes in segmentation fault.
this is the environment:
- kernel 2.6.31.8 arm marvell (test custom porting)
- xenomai 2.5.5.1
- the code:
int main (int argc, char *argv[])
{
// Porta di comunicazione
int s;
RT_TASK pippo;
int err;
mlockall(MCL_CURRENT|MCL_FUTURE);
// gestione signal handler
struct sigaction sa;
sa.sa_sigaction = (void *)sigHandler;
sigemptyset (&sa.sa_mask);
sa.sa_flags = SA_SIGINFO;
sigaction(SIGTERM, &sa, NULL);
sigaction(SIGINT, &sa, NULL);
sigaction(SIGPIPE, &sa, NULL);
sigaction(SIGFPE, &sa, NULL);
sigaction(SIGSEGV, &sa, NULL);
PrintTimeMex( TRUE,RT_VERSION"\n" );
unlink( LOGEXT_FILE );
err = rt_task_create( &pippo, "pippo", 0x2000, 20, T_FPU );
err = rt_task_delete( &pippo );...
...
...
Can anyone help me ?
Thanks for all
Quoted 8 lines · Roberto Bielli
Hi,
the function
rt_task_deletegoes in segmentation fault.this is the environment:
- kernel 2.6.31.8 arm marvell (test custom porting)
- xenomai 2.5.5.1
Have you tried xenomai 2.5.6 ?
Quoted 21 lines
- the code:
int main (int argc, char *argv[]){ // Porta di comunicazione int s; RT_TASK pippo; int err; mlockall(MCL_CURRENT|MCL_FUTURE); // gestione signal handler struct sigaction sa; sa.sa_sigaction = (void *)sigHandler; sigemptyset (&sa.sa_mask); sa.sa_flags = SA_SIGINFO; sigaction(SIGTERM, &sa, NULL); sigaction(SIGINT, &sa, NULL); sigaction(SIGPIPE, &sa, NULL); sigaction(SIGFPE, &sa, NULL);
Quoted 8 lines
sigaction(SIGSEGV, &sa, NULL);
PrintTimeMex( TRUE,RT_VERSION"\n" );
unlink( LOGEXT_FILE );
err = rt_task_create( &pippo, "pippo", 0x2000, 20, T_FPU );Have you tried checking rt_task_create return value?
Quoted 16 lines
err = rt_task_delete( &pippo );...
...
...Can anyone help me ?
Thanks for all
_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core
Signature · 1 line
Gilles.