LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 09:11 PM   #1
khandu
Member
 
Registered: Sep 2003
Posts: 79

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, 03:07 AM   #2
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,146

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


Reply

Tags
core dump, crash, rhel 6.3, ulimit


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
coredump files rupendranaidu Linux - Software 1 09-20-2009 11:40 AM
about coredump swift2008 Programming 2 01-07-2009 07: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 05:58 PM
LXer: Red Hat Ireland to aquire 40% in Indian concern LXer Syndicated Linux News 0 01-23-2006 10:32 AM
unable to aquire agp Kane2002 Slackware 7 02-13-2005 05:41 PM


All times are GMT -5. The time now is 10:56 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration