Gang,
We have a system with many threads running simultaneously at various
seemingly random priorities (in fact, they are randomish) all using periodic
mode with different scheduling cycles (though there may be cases where more
than one becomes computable at the same time). We have recently developed a
problem in that the system will be chugging along merrily and then, for no
apparent reason, stop running completely. I am *NOT* saying the system
crashes - the Linux thread is still running just fine (you can attach via
telnet, do an lsmod, cat the various display FIFOs to see that nothing is
coming out, etc.) - it is just our RTLinux threads that have stopped.
To diagnose this I put a quick rtf_put at the beginning of each
thread so that it would print that it is executing to a FIFO. The hang
always appears to happen in the same code which I am more than willing to
scour for the offending lines. Unfortunately I have no clue what could
cause this sort of hang.
When the entire system hangs it indicates a tight loop with no exit
and no usleep or any such. This is *NOT* that case - this is something new
(to me) where *ONLY* the RTLinux threads stop running. It is almost as if
someone had told the scheduler to go on holiday after starting the Linux
process. Very odd.
None of these threads does much in the way of hardware access
(mostly serial sends and receives). We are using a newer version of rt_com
that nicely handles IRQ sharing (it also had a buffer full bug which we
fixed). Other than that there is nothing the least it interesting about any
of this code (except that it does what we need to have done).
Any pointers or suggestions for the types of code that could create
this "all threads hang but Linux continues" behavior greatly appreciated.
Regards,
Steve Cohen
--------------------------
Stephen D. Cohen
Engineering Manager
Xybion Sensor Positioning Systems
11528 53rd Street North
Clearwater, FL 33760
Voice: (727) 299-0150
Fax: (727) 299-0804
[EMAIL PROTECTED]
www.xybion.com
***********************************************************************
This email, and any attachments, contains confidential and privileged information
intended for the use of the addressee. If you are not the intended recipient or an
authorized representative of the recipient, do not read or distribute the contents of
this email and delete it from your system. This email and all attachments have been
scanned for viruses and are believed to be virus free. However, it is the recipient's
responsibility to ensure that they are virus free. Xybion does not accept any
responsibility for any loss or damage arising in any way from use of this email and
attachments. Xybion also does not accept responsibility for personal email or email
not associated with its business purposes.
***********************************************************************
_______________________________________________
Rtl mailing list
[EMAIL PROTECTED]
http://www2.fsmlabs.com/mailman/listinfo.cgi/rtl