LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-19-2006, 08:54 AM   #1
duckie316
LQ Newbie
 
Registered: Aug 2003
Posts: 5

Rep: Reputation: 0
Generating a core file - on purpose


RHEL 2.4.21-32.0.1
I need to reliably generate core dump files for the purpose of testing ulimit -c and sysctl.conf settings before deploying modifications to the field. I only have the RHEL distribution to work with, so games mentioned in some threads are not a reliable source of cores <grin>.

The plan is that I would be able to generate a core file and test that the ulimit -c numericvalue and the kernel.core_pattern = /somewritable/path of the sysctl.conf is appropriate for our environment.

Thanks in advance
 
Old 07-19-2006, 09:10 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

This should work:

kill -s SIGSERV <pid>

pid being a running program.

Hope this helps.
 
Old 07-20-2006, 08:11 AM   #3
duckie316
LQ Newbie
 
Registered: Aug 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Druuna,

Thanks for the direction. It worked but with one typo -or- system difference.

"kill -s SIGSEGV PID" created the core file when I specified the PID of a running script.

Many thanks!
 
Old 07-20-2006, 09:02 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

That was indeed a type. Sorry about that!

To give you an idea of all the 'signals' that can be used: man 7 signal
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Accessing Network attached storage from Linux system for file sharing and backup purpose LXer Syndicated Linux News 0 05-20-2006 02:03 AM
generating the map file for binary image steve_e Linux - Software 0 05-15-2006 05:45 AM
Purpose of /boot/map file in LILO vmniza Linux - General 1 07-12-2005 09:01 PM
generating kernel configuration file adtomar Linux - Laptop and Netbook 6 12-16-2004 01:18 AM
what purpose is for ".wbm" file? heero82 Linux - Software 8 06-29-2003 11:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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