Jeroen Van den Keybus wrote:
 > Gilles,
 > I cannot reproduce those messages after turning nucleus debugging on.
 > Instead, I now either get relatively more failing mutexes or even hard
 > lockups with the test program I sent to you. If the computer didn't crash,
 > dmesg contains 3 Xenomai messages relating to a task being movend to
 > secondary domain after exception #14. As when the computer crashes: I have
 > written the last kernel panic message on a paper. Please tell if you want
 > also the addresses or (part of) the call stack.

Could you try adding a call to mlockall(MCL_CURRENT|MCL_FUTURE) ? 

Also note that you do not need protecting accesses to file descriptor
with rt_mutexes. stdio file descriptor are protected with pthread
mutexes, and pthread mutexes functions cause threads migration to
secondary mode. And unix file descriptor are passed to system calls,
which also cause migration to secondary mode.


                                            Gilles Chanteperdrix.

Reply via email to