linux random reboots while running my program
Posted on 2004-08-24
I am using a RH9.0 system kernel 2.4.20-31.9. I experience this problem on my knoppix 2.4.26 machine too.
The problem occurs when I am running a program that I wrote that controls a USB HID device. I run this program with a certain frequency as I am adding new things to it all the time. The final product will need to speak back and forth with the USB device almost constantly (every three seconds or more to be exact). it does not yet talk every three seconds as I have the device in debug mode currently. So anyhow. The reboots occur at random time intervals. Sometimes I can only only run my program three or four times, and other times I can run it all day, about 200 times. The programs total execution at present is about 1.35 minutes on average. I have run my program inside Etnus TotalView memory debugging program, and found nothing, no memory leaks, no heap dump, no stack overflows. Does anyonw have any ideas. I would post my code but it is confidential. Are there any errors that I may not be catching that can cause the machine to reboot instantly if not caught. Like for instance: I believed that i was receiving a ctrl-alt-del signal in my receive buffer that the OS was picking up and using as if I had pressed that buttons on the keyboard. I deactivated (read: commented out) the ca: trapping in my inittab file, yet i still got a reboot about 10 minutes later. Any ideas at all would be helpful. also if it helps any, the kernel mode driver uses a ringbuffer in user space. I am sure this is not the problem as i can find no memory leaks in the ringbuffer but I haven't used a ring buffer since college so i could be missing something.
Thanks in advance for your help