LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-17-2010, 10:51 PM   #1
prashanth22
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Rep: Reputation: 0
Require help in debugging Signal 9 issue


Hi,

I am currently running Linux 2.6.18 kernel on ARM9 which has some application ported for sensor management. When i run my stack as mentioned in the below test, it crashes generating "SIGNAL 9" error.

My sensor management stack on startup invokes Process "A" which in turn creates lot of Processes (B, C, D etc..) for managing different modules on my board basically targeted at monitoring different sensors, board interface like LAN, Serial, etc.. When i turn off the power and turn on the power repeatedly, i see Process "A" gets SIGNAL 9 because one of the child got terminated and due to which Process "A" restarts (restarting process is part of my app algorithm). As it restarts, whole of sensor logic goes for a toss leading to unexpected behavior. I am stuck on this issue for a long time and have hit road block...

1. Firstly FW is running from SPI flash
2. As soon as my Linux kerenel starts, it would launch my app, so do i need to use ulimit before starting the main app which spans many other process?
3. How do we find which process generated SIGNAL 9?
4. Is their any way it can be avoided?
5. When the crash happens, can i get some debug log?
6. Any other suggestion would be helpful...

PS: I am having problem runnin gdb so this solution is ruled out

Thanks
Prashanth
 
Old 01-17-2010, 11:05 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Suggestion: install a sigaction()" signal handler; this should give you the sender's PID:

http://www.ibm.com/developerworks/li...-sigdebug.html

ALSO: You absolutely, positively, without a doubt need a reliable debugger (e.g. gdb). If Gdb doesn't work yet ... then get it (or a reasonable substitute) working. You *are* going to find bugs (like this one) ... and you're going to be more or less helpless without a good debugger. Please make it an urgent priority - you'll project will be much happier.

IMHO .. PSM
 
Old 01-24-2010, 11:01 PM   #3
prashanth22
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the suggestion...

As far as i know we won't be able to catch SIGNAL 9 (as it boils down to SIGKILL), neither install a SIGNAL handler... when i Googled, i found the same info... correct me if i am wrong or if you have w link wherein they explain how to trap SIGNAL 9, it would be of great help...

Prashanth
 
  


Reply

Tags
debugging, embedded, linux, signal



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Require help in debugging Signal 9 issue prashanth22 Linux - Embedded & Single-board computer 0 01-17-2010 10:49 PM
Apache Auth: Using Require User and Require Group newmanium2001 Linux - Software 1 08-25-2009 02:39 PM
Bash script debugging issue internetSurfer Programming 4 01-28-2008 08:24 PM
Debugging Issue AMMullan Programming 2 01-13-2004 02:04 PM
Signal 11 caught by ps :: Permissions issue? fergusoa Linux - General 2 10-22-2003 07:03 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:35 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration