LinuxQuestions.org
Register a domain and help support LQ
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-18-2012, 08:50 PM   #1
khandu
Member
 
Registered: Sep 2003
Posts: 76

Rep: Reputation: 0
Question How to enable coredump for one user in all shells in RHEL 6.3 ?


We have added the following line for "user1" in .bash_profile

Code:
ulimit -c unlimited
But it is not generating command for a process (application) started at startup - slapd

Now can it be that ulimit is set only for BASH prompt and not for other prompts or whichever prompt RHEL takes for starting up the slapd startup scriptin /etc/init.d/ ? maybe our logic is wrong..

We don't want to enable ulimit globally for all users .. just for this one user but it is not working as currently setup..

any suggestions.. and how can i test the theory once the slapd is running..
 
Old 11-20-2012, 08:11 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,900

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Hi,

To enable coredumps for a user edit (as root) the file /etc/security/limits.conf and add:
Code:
user1    soft    core            unlimited
Regards
 
Old 11-20-2012, 04:37 PM   #3
khandu
Member
 
Registered: Sep 2003
Posts: 76

Original Poster
Rep: Reputation: 0
Thanks

We have it in that file now..

also in /etc/init.d/slapd we have added

Quote:
. /etc/init.d/functions
DAEMON_COREFILE_LIMIT='unlimited'
Then restarted slapd and then to crash slapd as user we did

Quote:
$kill -11 PID

OR

$kill -3 PID
no core dump found..

What else can be going wrong??

Last edited by khandu; 11-20-2012 at 05:28 PM.
 
Old 11-21-2012, 02:24 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,900

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
To produce a coredump, you can use gdb. Find the PID of the running program (slapd in your case) and run gdb against that PID. Once inside gdb use gcore:
Code:
#gdb --pid=XXX
(gdb) gcore
There should be a core.XXX created in the current directory.

You may also have a look here for a complete guide about debugging using a coredump

Regards
 
  


Reply

Tags
core dump, 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
user-define signal handler & coredump for signal 11(SIGSEGV) Alexlun Linux - Software 2 05-24-2009 06:37 AM
motd and setting up different shells to different user groups torrent55 Debian 4 11-03-2008 04:53 PM
Enable telnet for root user on RHEL 4 ES phanee Linux - Server 3 04-15-2008 09:33 AM
changing user shells Syncrm Linux - General 3 02-17-2002 03:36 PM


All times are GMT -5. The time now is 03:11 AM.

Main Menu
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