SIGXCPU with rt_mutex_release
Quoted 7 lines
I guess the test could be simpler, simply:
rt_mutex_acquirert_task_creatert_mutex_releasert_mutex_acquirert_mutex_release
Yes this is minimal subset.
Quoted 7 lines
Anyway, calling
rt_task_createwhile holding a real-time mutex is itself a priority inversion: any thread in primary mode waiting for the mutex will now have to wait for task running in secondary mode, so may be block during an unbounded amount of time. So, using a real-time mutex for this is completely useless you should be using a glibcpthread_mutex_t. If compiling for the posix skin, use__real_pthread_mutex_lock.
I deeply understand your point, but in case of OROCOS framework this mutex blocking occurs only during task creation and setting environment up. After that, when real time task perform its job, it run without blocking from secondary domain. Of course you are right that in this case the standard mutex will be better.
Quoted 2 lines
Now, how this can cause the issue you observe remains to be understood, and probably requires a fix.
I will be thankful for your help in solving this problem. Till then I will use Jan's patch.
Mariusz