Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-27-2009, 02:37 PM   #1
LQ Newbie
Registered: Apr 2006
Location: Sweden
Distribution: Mandrake 10.1
Posts: 10

Rep: Reputation: 0
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?

Old 10-30-2009, 01:18 AM   #2
Senior Member
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
A couple of thoughts ...

If you suspect the watchdog timer, is there a way to disable it for testing/troubleshooting?

Looking over this page, it sounds like you can have (or maybe it is the default) system messages sent out from your serial port (if you are not using it for something else). Perhaps you could have another computer monitoring/logging that output to help you figure out what is happening?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Computer Restarts while loading Embedded Thin Client OS ravi14 Linux - Embedded & Single-board computer 1 08-17-2009 07:09 AM
Xpert in 8-16 bit microcontroller embedded system now inclining toward embedded linux priyadarshan Linux - Embedded & Single-board computer 2 02-12-2009 04:28 AM
How to avoid fsck if I turn off my embedded system suddenly??? webquinty Linux - Newbie 1 02-03-2009 10:00 AM
LXer: Embedded Linux as Dependable for Developers as RTOSes, says Embedded Market For LXer Syndicated Linux News 0 01-23-2008 11:40 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration