Sponsored Content
Operating Systems Linux unable to read core dumps on unix. Is there another way than using GDB? Post 302596023 by suyogs on Tuesday 7th of February 2012 04:08:45 AM
Old 02-07-2012
unable to read core dumps on unix. Is there another way than using GDB?

hi all,
I am having set of core dumps obtained from client server. Now i am trying to read them but unable to do so.
I have few queries:
1. Core dumps were generated on some xyz server and copied to my unix virtual. Can I read them as text here?
2. I tried installing gdb-7.3 but when i fire "make" command it will show error message as:
Code:
configure: error: no termcap library found
make[1]: *** [configure-gdb] Error 1
make[1]: Leaving directory `/home/sshetye/gdb-7.3'
make: *** [all] Error 2

3. so i tried installing 'ncurses-5.5.tar' but again on 'make' command it is giving me error as:
Code:
cd ../objects;   -I../c++ -I../include -I. -DHAVE_CONFIG_H -I. -I../include  -D_GNU_SOURCE -DNDEBUG  -c ../c++/cursesf.cc
/bin/sh: -I../c++: No such file or directory
make[1]: *** [../objects/cursesf.o] Error 127
make[1]: Leaving directory `/home/sshetye/ncurses-5.5/c++'
make: *** [all] Error 2

How can I resolve these errors?
4. Is there any another way to read core dumps in text format, instead using GDB?
Note: output of command "file core.11249_gcws2145" is as below:
ELF 64-bit LSB core file AMD x86-64, version 1 (SYSV), SVR4-style, from 'submit_xup.pl'

5. I fed up with installing GDB on my machine, please let me know if there is any another way to read core dumps in text format.

[For moderators: there are threads which are some how similar to my problem, but not exactly matching my requirements and these threads are old enough too, so i have created this new thread].


Thanks in advance,
Suyog

---------- Post updated 02-07-12 at 04:08 AM ---------- Previous update was 02-06-12 at 09:54 AM ----------

Hi all,
I able to install gdb-7.3 at my unix virtual. But still i am unable to read core dumps. tried with this command " gdb -c core.11249_gcws2145" but output as:
Code:
[New LWP 11288]
[New LWP 11286]
[New LWP 11249]
Core was generated by `/usr/bin/perl /home/ssl/bin/submit_xup.pl LARGE'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000003a4de08219 in ?? ()
(gdb)

I won't be able to read whole core dump file.
What will be the command to read core dump which is in binary form??
Please reply.

Thanks,
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

reading core dumps

Does anyone know how to read core dumps. Is gdb the only tool for it ? The OS is Solaris. Thanks (2 Replies)
Discussion started by: suntan
2 Replies

2. Solaris

Generating core dumps

I have the following set up on a Sun server running solaris 5.8 for core dump generation coreadm global core file pattern: /var/core init core file pattern: /var/core global core dumps: enabled per-process core dumps: enabled global setid core dumps:... (4 Replies)
Discussion started by: handak9
4 Replies

3. Programming

strcmp core dumps

hi everyone, Right now when I do: strcmp(s1, s2); i get a core dump because at times s1 or s2 can be nothing so that makes strcmp() core dump. What is the solution, if at times I expect one of them (or both) to be NULL? I want to be able to compare that s1 is NULL and s2 is "blah" or... (6 Replies)
Discussion started by: annie
6 Replies

4. SCO

SCO 5.07 Panic / Core Dumps

Anyone know how you go about interrogating a panic / core dump with crash for SCO Unix (5 Replies)
Discussion started by: ccarcher
5 Replies

5. UNIX for Advanced & Expert Users

Using GDB to analyse different CORE dumps

Hi, Can we modify the GDB source code so as to analyze core dumps from different targets? From my analysis, I think we need to build our section table statically for each target. i.e., including the various address boundaries in build_section_table() function. If this is the case, then the GDB... (2 Replies)
Discussion started by: nsdeeps
2 Replies

6. Programming

AIX core dumps

My program is not dumping core when hitting a segmentation violation inside a thread. However, it dumps core when the segv occurs within main. Any ideas on how to diagnose this? AIX 5.3 (4 Replies)
Discussion started by: bean66
4 Replies

7. Solaris

core dumps

i had a situation where a process was defunct. preap would not reap the process and gcore would not work properly (not sure why). therefore, the suggestion was to force a panic and collect the core dump. obviously you could do a savecore -L and capture the dump without bringing down the system.... (3 Replies)
Discussion started by: pupp
3 Replies

8. Red Hat

generating core dumps

Hi I have a Fedora installed and I try to generate my application's core dump file. My system has no coredump limit: $ ulimit core file size (blocks, -c) unlimited But when my application crashes no core dumps generated. I can generate dump file using gcore but it is not appropraite... (1 Reply)
Discussion started by: xyzt
1 Replies

9. Programming

Stack only core dumps

I'm working on a program in Linux with a group of people scattered around the country. When we have a crash, I like to send a core dump to the appropriate person so that they can understand the problem better. The problem is that our application uses several gigabytes worth of data and these... (4 Replies)
Discussion started by: bmsterner
4 Replies

10. HP-UX

Generate core dumps

kill -SEGV <pid> gives me the core file for that process but also terminates the process. Can I not get the core dump without terminating the process ? (2 Replies)
Discussion started by: mohtashims
2 Replies
CORE(5) 						      BSD File Formats Manual							   CORE(5)

NAME
core -- memory image file format SYNOPSIS
#include <sys/param.h> DESCRIPTION
A small number of signals which cause abnormal termination of a process also cause a record of the process's in-core state to be written to disk for later examination by one of the available debuggers. (See sigaction(2).) This memory image is written to a file named by default core.pid, where pid is the process ID of the process, in the /cores directory, provided the terminated process had write permission in the directory, and the directory existed. The maximum size of a core file is limited by setrlimit(2). Files which would be larger than the limit are not created. The core file consists of the Mach-O(5) header as described in the <mach-o/loader.h> file. The remainder of the core file consists of vari- ous sections described in the Mach-O(5) header. NOTE
Core dumps are disabled by default under Darwin/Mac OS X. To re-enable core dumps, a privileged user must do one of the following * Edit /etc/launchd.conf or $HOME/.launchd.conf and add a line specifying the limit limit core unlimited * A privileged user can also enable cores with launchctl limit core unlimited * A privileged user can also enable core files by using ulimit(1) or limit(1) depending upon the shell. SEE ALSO
gdb(1), setrlimit(2), sigaction(2), Mach-O(5), launchd.conf(5), launchd.plist(5), sysctl(8) HISTORY
A core file format appeared in Version 6 AT&T UNIX. BSD
June 26, 2008 BSD
All times are GMT -4. The time now is 09:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy