LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 10-12-2008, 03:27 AM   #1
traene
Member
 
Registered: Jan 2005
Distribution: Archlinux, Debian, grml
Posts: 210

Rep: Reputation: 33
Process crashes and does not dump core


A process occasionally crashes and it does not dump core. ulimit settings should allow this, because we do a 'ulimit -c unlimited'. Write permissions on the CWD are given.

However, I understand that the core is only written on distinct signals: ABRT, SEGV, etc. By what means can i check which signal was recieved by the process, when it crashed?
 
Old 10-12-2008, 08:58 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OL
Posts: 9,311

Rep: Reputation: 271Reputation: 271Reputation: 271
Perhaps the process is just exiting without crashing. You can launch the process under the control of a debugger and you'll know why it ended.
 
Old 10-12-2008, 09:35 AM   #3
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 34
You cannot see what signal was sent unless you add signal handling to the original process, so that it writes something to a logfile. Are there any logs? Did you check syslog to see if something else is going on?
 
Old 10-13-2008, 02:46 PM   #4
traene
Member
 
Registered: Jan 2005
Distribution: Archlinux, Debian, grml
Posts: 210

Original Poster
Rep: Reputation: 33
I'll try adding signal handling to the process.
 
Old 10-13-2008, 03:37 PM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OL
Posts: 9,311

Rep: Reputation: 271Reputation: 271Reputation: 271
What makes you believe the program crashes ? Is there an error message telling it ?
Does it happen shortly after starting of only after a while ?
Did you check for system messages ?
What OS are you running ?
Did you try my gdb suggestion ?
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
analyze process dump using GDB kskkumar Linux - Software 2 05-16-2009 05:41 AM
RHEL5 crashes, dump file? sdc312 Linux - Newbie 1 05-15-2008 10:31 AM
Core Dump on Solaris (Question about core file) dayalan_cse Solaris / OpenSolaris 3 10-06-2007 02:26 AM
restart process after dump abselect Linux - General 1 10-18-2006 09:22 PM
Tux Racer crashes X... where is the core dump? trusted_content Linux - General 4 06-08-2003 07:08 AM


All times are GMT -5. The time now is 12:44 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
Open Source Consulting | Domain Registration