Hi All,

I am trying to test rt_cond_bind() and rt_task_unblock() API with a
simple thread program using the Xenomai native skin, and with xenomai
3.0.6.

But, during call to rt_task_unblock(&task1) from the main function, I
get the segmentation fault.

# ./cond_bin_test
PINTU: Inside bind_test task....
PINTU: Before rt_task_unblock
Segmentation fault (core dumped)

This is the code snippet for the program:

void bind_test(...)
{
        ....
        err = rt_cond_bind(&cond, "COND1", TM_INFINITE);
        if (err == -EINTR)
               printf("error....");
}

int main(...)
{
         ....
         rt_task_create(&bind_test, .....);
         rt_task_start(&bind_test, .......);

         err = rt_task_unblock(&bind_test);

         rt_task_delete(&bind_test);


         return 0;
}

What is wrong with the above sample ?
I suppose this code was working on Xenomai 2.6.x

If there is any thing missing please let me know.


Thank You!

Regards,
Pintu

_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai

Reply via email to