LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-19-2009, 10:12 PM   #1
ithawtewrong
Member
 
Registered: Jul 2004
Location: Mile High
Posts: 161

Rep: Reputation: 30
Segfault in application, but no core or application failure...how to troubleshoot.


I am trying to troubleshoot an application that is generating several segfaults with an error 14, but the application is not crashing. The program continues to run. I would assume I can connect to a running process to debug it, but I'm not sure what to gather. The program has several background processes associated with it so I'm sure I'll need to attach to the actual internal process.

Does anyone have any experience in this to offer some insight?
 
Old 02-20-2009, 02:31 AM   #2
vkmgeek
Member
 
Registered: Feb 2006
Location: Ahmedabad
Distribution: rhel5
Posts: 185
Blog Entries: 2

Rep: Reputation: 31
you can attach debugger (like gdb) to running process.
run gdb
and then
attach <process id>

but you ll not be able to debug it if the application was not compiled with debug information
 
Old 02-20-2009, 05:32 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Another way is to run the application through a tracer:
strace -f -o /tmp/logapp appname

And then maybe in /tmp/logapp there are some information when it happens and for which system call.
 
Old 02-20-2009, 07:59 AM   #4
ithawtewrong
Member
 
Registered: Jul 2004
Location: Mile High
Posts: 161

Original Poster
Rep: Reputation: 30
vkmgeek - I'll check with the APP team to see if they compiled with debug or not.

nx5000 - I thought about this, but it takes over 4 hours for the segfault and the machine is under pretty heavy load at the time. I thought this would generate....well how about we call it a ton of information. I do realize this may be my only option though.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE jar MIME is application/zip and not application/java-archive in Ubuntu Intrepid? arobinson74 Linux - Software 2 09-18-2009 11:40 AM
Update OpenGeu application menu after installing an application silencer07 Linux - Desktop 0 10-20-2008 09:19 PM
Application Launch Failure - several distros gastroman Linux - Desktop 9 01-18-2007 01:48 AM
send signal to privileged application from unprivileged application aral Programming 5 10-27-2006 12:34 PM
how i migrate windows application to Linux base application vandarakalpesh Linux - Software 0 06-26-2004 03:34 AM


All times are GMT -5. The time now is 07:03 AM.

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