LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-20-2013, 01:09 PM   #1
lwang3rock
LQ Newbie
 
Registered: Nov 2012
Posts: 20

Rep: Reputation: Disabled
kill -3 didn't generate core file on centos5


Hi,
I tried "kill -3 <pid>", but no core file was generated.
I tried "kill -6 <pid>" or "kill -11 <pid>", these two all generated core files, but the process were killed. So I think my other setting should be fine, including ulimit, core_pattern...
I don't know why "kill -3 <pid>" didn't generate core file. I need this because I need the core file. After I invoke "kill -3 <pid>", the process was still running when I checked using "ps -ef"
Code:
[ipbx@lab33 ~]$ ~/testS&
[1] 442416
[ipbx@lab33 ~]$ kill -s SIGQUIT 442416
[ipbx@lab33 ~]$ la ~/tmp
total 91032
drwxrwxr-x   2 ipbx ipbx     4096 Jun 20 10:00 .
drwxr-xr-x. 43 ipbx ipbx     4096 Jun 20 09:47 ..
-rw-------   1 ipbx ipbx   700416 Jun 20 10:00 core-bash-11-1001-1001-440636-1371747625
-rw-------   1 ipbx ipbx 62664704 Jun 20 06:35 core-java-6-1001-1001-431229-1371735344
-rw-------   1 ipbx ipbx 59412480 Jun 20 09:39 core-java-6-1001-1001-439925-1371746351
-rw-------   1 ipbx ipbx   319488 Jun 20 09:59 core-sleep-3-1001-1001-442350-1371747560
note that core file was not generated with that pid 442416
Code:
[ipbx@lab33 ~]$ uname -a
Linux lab33 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Thanks,
3rock
 
Old 06-20-2013, 03:33 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Check your ulimits - (ulimit -cH) to see what your limits are. Likely it is set to 0.

goobered - you can get core dumps. signal 3 is SIGQUIT, so it exits without dumping.

signal 6 is SIGABRT, which calls for a core dump.

If the process catches signals, then it can choose to ignore some, or do specific things for that signal. this holds true for all signals except SIGKILL (9).

Last edited by jpollard; 06-20-2013 at 03:38 PM.
 
  


Reply



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
kill < file (Feeding kill from file), PID, <, awk, grep jaffd Programming 4 04-09-2010 04:06 PM
Core dump issues. Program crashes but does not generate core dump file sabeel_ansari Programming 1 10-07-2009 04:23 PM
How to generate a core dump programmatically? mistretzu Programming 1 07-18-2008 09:06 AM
Why program received SIGQUIT quited but did NOT generate the core file ???? cryincold Programming 2 02-27-2008 04:26 AM
Fedora 2 Core - how to add rpm's I didn't install? kylecarrington Linux - Newbie 4 03-06-2005 04:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:34 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