LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

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

Rep: Reputation: 0
My embedded linux suddenly restarts, how to troubleshoot


Hi,

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?

/Henrik
 
Old 10-30-2009, 01:18 AM   #2
blackhole54
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?
 
  


Reply


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


All times are GMT -5. The time now is 11:38 PM.

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