LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 11-15-2012, 08:11 PM   #1
khandu
Member
 
Registered: Sep 2003
Posts: 93

Rep: Reputation: 0
Question How to simulate crash to aquire coredump?


Hi

We are running an ldap server on RHEL 6.. its run as user "user1"

in .bash_profile we have set

Code:
ulimit -c unlimited
to collect coredump on crash..


the system crashed (we think) and we had to restart the service. but we did not see any core dump file generated in home directory of user1.

Can we write some program and put it in crontab for "user1" which will crash in say 10 sec or so and then we can see if core dump file is generated or not?

We are not sure if our coredump settings are right or not.. when we login as "user1" and do "ulimit -a" we get
Quote:
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 62830
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 1024
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

When we login as root we get

Quote:
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 62830
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 1024
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

How can we test our core dump?

Thing to note is : when we run a command of ldap as "user1" (which has a known bug) and gives us a segmentation fault (core dumped) .. we get the file in home directory
 
Old 11-16-2012, 02:07 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
there are signals which cause coredump, for example kill -3 will do this.
 
  


Reply

Tags
core dump, crash, rhel 6.3, ulimit



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
coredump files rupendranaidu Linux - Software 1 09-20-2009 10:40 AM
about coredump swift2008 Programming 2 01-07-2009 06:57 AM
mplayer and fglrx [gl] Could not aquire buffer for dr Expect a _major_ speed penalty Debian_Poland Linux - Software 1 04-07-2006 04:58 PM
LXer: Red Hat Ireland to aquire 40% in Indian concern LXer Syndicated Linux News 0 01-23-2006 09:32 AM
unable to aquire agp Kane2002 Slackware 7 02-13-2005 04:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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