On 06.11.19 10:18, Davy via Xenomai wrote:
> 
> Hi,
> 
> Thanks for patching the shared sessions. It works.
> 
> Now I have another segmentation error that appears when a task ends or is
> deleted :
> 
> 
> 
> RT_TASK task;
> void foo(){
>       int i = 3;
>       while(i--){
>               printf("Hello !\n");
>               rt_task_sleep(1000000000);
>       }
>       return;
> }
> int main(int argc, char *argv[]){
>       int n;
>       if (mlockall( MCL_CURRENT | MCL_FUTURE )!=0)
>               return 1;
>       if ((n=rt_task_spawn( &task, NULL, 0, 99, T_JOINABLE, &foo, NULL))!=0){
>               rt_printf("rt_task_spawn error %d\n",n);
>               return 1;
>       }
>       printf("Join task\n");
>       rt_task_join(&task);
>       return EXIT_SUCCESS;
> }
> 
> 
> $ sudo ./foo
> Hello !
> Join task
> Hello !
> Hello !
> Erreur de segmentation
> 

Works find here. Could you use a debugger to find out where the
exception is thrown?

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

Reply via email to