LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   RTAI Proramming (https://www.linuxquestions.org/questions/programming-9/rtai-proramming-313248/)

mrgoodtrips 04-14-2005 01:59 PM

RTAI Proramming
 
Hi all,

This is kind of a shot in the dark as what I'm asking is very specialized, but here goes.

I'm running slackware on a PC at work, and I'm developing some RTAI modules and functionalities (this is done in C). So far, I've almost exculsively developed kernel modules using RTAI, but the latest piece cannot be a kernel module because I need to make use of user space libraries to do some serial I/O.

My solution is to use a lxrt process. I have a lxrt process that spawns from its parent process and then converts to hard real time and runs like a kernel module. This lxrt module accesses the same shared memory locations as the actual modules and everything seems fine on the surface. However, if I start and stop the lxrt module 6 or 7 times, the OS completely locks up as if I'm in a deadlock inside one of the realtime modules (I'm not).

I check using ipcs and the results are exactly what I would expect - I'm not leaving any stray shmems, semaphores or message queues... Does anyone know what might cause behavior like this?

Thanks in advance for any help :scratch:


All times are GMT -5. The time now is 12:14 PM.