LinuxQuestions.org
Visit Jeremy's Blog.
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 10-12-2008, 03:27 AM   #1
traene
Member
 
Registered: Jan 2005
Distribution: Archlinux, Debian, Centos
Posts: 222

Rep: Reputation: 35
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?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 10-12-2008, 08:58 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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: 36
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, Centos
Posts: 222

Original Poster
Rep: Reputation: 35
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: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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 ?
 
Old 03-09-2024, 03:28 AM   #6
traene
Member
 
Registered: Jan 2005
Distribution: Archlinux, Debian, Centos
Posts: 222

Original Poster
Rep: Reputation: 35
Thanks for the tips, i guess running the program in gdb is a great solution for this, so this alone will progress this thread to "resolved".
Also sorry for the poor quality of the initial post.

I frankly don't remember what was the issue here. Still, I'd like to finally resolve this thread. This comes nearly 16 years late - again, sorry!
Also bumping this old issue is really not that helpful - let's just get over this...

Other tips for resolving such a problem can be found in the following man-pages:
Code:
man core
man 7 signal
Those will provide help for which conditions can lead to missing core files and system capabilities that invoke a core file to be created.

In a nutshell, the following issues could have provoked that behavior:

- disk full or disk quota limits exceeded
- file permissions on the executable, core file directory write permissions or already existing core file with read-only permissions
- filesystem mount issues with "ro" (read-only)
- more than one hardlink on an already existing corefile
- other configuration issues, e.g. kernel core dump capability missing or somehow strange settings (piping corefile to other processes)
 
2 members found this post helpful.
  


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
Core Dump on Solaris (Question about core file) dayalan_cse Solaris / OpenSolaris 5 12-29-2014 07:56 AM
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
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

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

All times are GMT -5. The time now is 01:33 AM.

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