Core Dump of a process in Red Hat Linux 5.9

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Core Dump of a process in Red Hat Linux 5.9
# 1  
Old 08-04-2015
RedHat Core Dump of a process in Red Hat Linux 5.9

Hello All,

I am new joiner of this forum.I am new to Linux shell scripting.
At present I have identified 1 application which stalls very frequently (PID is say xyz) and I am not having much information in its application log to identify the root cause of stalling. I need to take the core dump in order to analyze it further.
I think I require some shell script in order to achieve the same.Preferably I want to do it through GCORE utility of GDB.

Can any one help me out in this regard?
I am using Red Hat Enterprise Linux server release 5.9
Kernel version is 2.6.18

Regards
# 2  
Old 08-04-2015
Just an obnoxious question: are you forced to use this obsolete version of RH? My first remark would be, unfortunately, to upgrade the install so you have access to the latest versions of the various tools.
This User Gave Thanks to featheredfrog For This Post:
# 3  
Old 08-04-2015
You can try sending the stalled process a signal to force it to dump core.
You need to be root to do this if your account is not running the process.
where xyz == pid of process
Code:
kill -s SIGSEGV xyz

If you have seen other core dumps by the account the process runs under then you are good to go. Otherwise check back here and a red hat person can step you through setting up core dumps.
This User Gave Thanks to jim mcnamara For This Post:
# 4  
Old 08-04-2015
As I mentioned my post that my process is hanging.I need to trace out the reason of hanging.
So I require something which dumps continuously until the hang occurs.I can not predict when the process gets hang.
Regards
# 5  
Old 08-12-2015
Quote:
Originally Posted by featheredfrog
Just an obnoxious question: are you forced to use this obsolete version of RH? My first remark would be, unfortunately, to upgrade the install so you have access to the latest versions of the various tools.
Yes.I am forced to used the latest version due to dependencies of some application.
I need to have some sort of way to take the core dump when it stalls.
Can u highlight in this regard.
# 6  
Old 08-14-2015
Before you take a core dump on RHEL, you typically have to modify your shell's ulimits and also /etc/security/limits.conf. You would also typically edit /etc/sysctl.conf and configure where to put the core file and the core file naming convention.
This User Gave Thanks to fpmurphy For This Post:
# 7  
Old 08-25-2015
But I can not predict when my application stalls?It is not definite?Can you tell me the procedure (step by step) in gcore to take the core dump.I have tested the following and it is dumping in running condition.
The following commands are executed to take the dump.

1) Ulimit –c (To check the limit of dump file which will be created)
In normal system it yields ‘0’. Means no dump file will be created.
2) Ulimit –c unlimited (to make the volume of dump file as unlimited)
You should get ‘unlimited’ as output if you again type ‘’ulimit –c’’ command in $ prompt.
3) gdb --pid = ‘10008’ (10008 is the PID of WEBFGSERVER in linux system where WEBFGSERVER is running)
You will be redirected to gdb prompt.
4) Typed the following in gdb prompt.
gdb> gcore. It will take 45 secs to 1 minute to create the memory dump. When you are redirected to gdb> type the following.
5) gdb> quit
6) It will create a file named core.10008 in the directory you are in.
Is there any thing wrong in it.If not then how the above steps can be used to core dump immediately after the process stalls?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Fedora

Which is the better platform to learn UNIX/Linux (Kali Linux Vs. Red Hat or other)?

I just started a new semester and I started my UNIX class yesterday. I've already decided to use python along with my learning process but what I really want to use with it is Kali as my UNIX/Linux platform to learn off of since I already wanted to learn Cyber Sec. anyways. I just wanted to know if... (12 Replies)
Discussion started by: ApacheOmega
12 Replies

2. UNIX for Dummies Questions & Answers

Learn Linux Core Dump Analysis

Can any body provide me some good link to learn to create and analyze linux user mode application / kernel module core dumps? (1 Reply)
Discussion started by: rupeshkp728
1 Replies

3. Linux

Thread specific data from linux core dump

How do i get pointer to thread's local storage or thread specific data while analyzing core dump for linux ? i use pthread_setspecific to store some data in the pthread's local stoare. my multi threaded program on linux crashed, and i want to see what is stored in current running thread's... (2 Replies)
Discussion started by: vishwasungal
2 Replies

4. UNIX for Dummies Questions & Answers

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ?

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ? (2 Replies)
Discussion started by: ahmedamer12
2 Replies

5. Emergency UNIX and Linux Support

How to open the core dump file in linux?

Hi, I have got core dump stating "core.bash.29846" so i am unable to open. How to open the core dump file for further analysis? Reagards Vanitha (7 Replies)
Discussion started by: vanitham
7 Replies

6. Red Hat

Process does not dump any core files when crashed even if coredumpsize is unlimited

Hello Im using redhat and try to debug my application , its crashes and in strace I also see it has problems , but I can't see any core dump I configured all the limit ( im using .cshrc ) and it looks like this : cputime unlimited filesize unlimited datasize unlimited... (8 Replies)
Discussion started by: umen
8 Replies

7. Red Hat

red hat 4 core off or on

Hi All, I have this IBM 8872-1RU/X460 I need to know if the cpu core is off or on. Is there a query to do that without checking the BIOS? Here's the cpuinfo ~~~~~~~~~~~~~~~~~~~~ # cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model ... (1 Reply)
Discussion started by: itik
1 Replies

8. Linux

crash dump server for red hat ent 4

Is it true that you can't have the crash dump server/client on the same server? I know I've installed Nagios open source before, I though it's only for that kind of thing. I never though that Red hat ent 4 would be like client/server on the crash dump. if someone is having problem with high... (0 Replies)
Discussion started by: itik
0 Replies

9. UNIX for Dummies Questions & Answers

How to force core dump of a process

We have an application that terminates with segmentation violation errors in the logs. No source code is available since this is a third party software that is way past its maintenance life cycle. Under these circumstances is there a way to force a core dump of the process for further analysis?? ... (3 Replies)
Discussion started by: Un1xNewb1e
3 Replies

10. UNIX for Dummies Questions & Answers

Red Hat Linux 6.0

Ok here is my problem i do not know the command to load a driver for my network card in Ted hat linux 6.0 could sombody give me a hand. and if there is anyone that has a list of commands for red hat that would be great also (2 Replies)
Discussion started by: bbutler3295
2 Replies
Login or Register to Ask a Question