My embedded linux suddenly restarts, how to troubleshoot
I have made a C-program to my Foxboard, an embedded linux computer running 2.6.15. My program loops one time per two seconds and do several tasks.
Now to my problem: When the program has executes a couple of hours, some times 15 hours, the time is very different, the system spontanious reboot. I have placed printouts (printf) in the code but I do not understand where the problem is. May be watchdog?
How should I troubleshoot??? messages and dmesg clears when system reboots.
I have used GDB-debugger with DDD-interface but do not see anything.
Any ideas how to use GDB-debugger???
I think it is a memory leak, but how to trace?