All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] rt_task_delete doesn't work
@ 2011-06-09 16:43 Roberto Bielli
  2011-06-09 17:53 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 2+ messages in thread
From: Roberto Bielli @ 2011-06-09 16:43 UTC (permalink / raw)
  To: xenomai

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Xenomai-core] rt_task_delete doesn't work
  2011-06-09 16:43 [Xenomai-core] rt_task_delete doesn't work Roberto Bielli
@ 2011-06-09 17:53 ` Gilles Chanteperdrix
  0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2011-06-09 17:53 UTC (permalink / raw)
  To: Roberto Bielli; +Cc: xenomai

On 06/09/2011 06:43 PM, Roberto Bielli wrote:
> 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

Have you tried xenomai 2.5.6 ?

> 
> - 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 );

Have you tried checking rt_task_create return value?

>      err = rt_task_delete( &pippo );
> ...
> ...
> ...
> 
> 
> 
> Can anyone help me ?
> 
> Thanks for all
> 
> _______________________________________________
> Xenomai-core mailing list
> Xenomai-core@domain.hid
> https://mail.gna.org/listinfo/xenomai-core
> 


-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-09 17:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-09 16:43 [Xenomai-core] rt_task_delete doesn't work Roberto Bielli
2011-06-09 17:53 ` Gilles Chanteperdrix

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.