Read core files


 
Thread Tools Search this Thread
Operating Systems HP-UX Read core files
# 8  
Old 07-14-2012
It is /opt/app/d1grn1m1/app1/jdk150_07/bin/IA64N/java.
# 9  
Old 07-14-2012
@mohtashims
Please post the output verbatim from:
Code:
file core

# 10  
Old 07-16-2012
Error

Quote:
Originally Posted by methyl
@mohtashims
Please post the output verbatim from:
Code:
file core

Code:
==> file core
core:           ELF-32 core file - IA64 from 'java' - received SIGABRT

Also

See the output below.

Code:
==> adb /appl/jdk150_07/bin/IA64N/java core
adb: warning: /usr/lib/hpux32/libcl.so.1: Cannot locate unwind table ...
adb: warning: /usr/lib/hpux32/libcl.so.1: Stack backtrace may fail.
adb> $c
_lwp_kill + 0x30
pthread_kill + 0x9f0
raise + 0xe0
_abort + 0x170
_ZN2os5abortEb + 0x130
_ZN7VMError14report_and_dieEv + 0x4d0
_ZN2os4Hpux22JVM_handle_hpux_signalEiP9__siginfoPvi + 0x5a0
_ZN2os4Hpux13signalHandlerEiP9__siginfoPv + 0x80
adb: error: No load module descriptor for IP '0x0000000031ccf420'.

Now, inorder to convert the whole core file into human readable format you asked me to <<EOF>>.. I'm sorry I dont get what you mean by this. Can you explain in simpler way(Are you asking me to give a logfile name ?? ).

Also as you can see the output above which I am not sure is the desired output because the core dump file is in GBs while the output above is just a few lines. the
Code:
file

command shows the format of the core file remained the same. So how did it help ? Am I missing something ?

Last edited by mohtashims; 07-16-2012 at 06:39 AM..
# 11  
Old 07-16-2012
The EOF-thing is a so called "here-document". This way you can write the input to a command into a shell script. It means

Code:
adb programfile corefile <<EOF >>log

Start adb programfile corefile, read the input for the adb-command from the shellscript, until a line is encountered which reads EOF and append the output to the file log
Code:
    $c
    $q

This is the input to the adb-command. The two lines mean: write out the stacktrace and quit
Code:
EOF

This ends the here-document. The adb-command will read end-of-file at this point.

I don't know, what you mean with "human readable form". The adb-output is pretty much the same, as the output from pstack.
# 12  
Old 07-16-2012
Question

Based on your inputs find my output below.

Code:
==> adb programfile corefile <<EOF >>log
> adb /appl/jdk150_07/bin/IA64N/java core  <<EOF >>log
> $c
> $q
> EOF
mymachine:/appl/applogs/PROD_11JUL_Core>
==> ls -ltr
total 7391824
-rw-------   1 bea        users      1892292560 Jul 12 11:02 core
-rw-r--r--   1 bea        users           52 Jul 16 03:55 log

So, the log file generated using your guidelines is 52 bytes from the core file 1.9 GB ? I feel the log file generated in human readable form should be much more than 52 bytes. Can you make me understand this ??

Last edited by mohtashims; 07-23-2012 at 01:42 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

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... (0 Replies)
Discussion started by: suyogs
0 Replies

2. UNIX for Dummies Questions & Answers

How to know where the core files come from?

Hi, I am trying to use "find / -name core -print | xargs rm -f " ,but it would delete all core files including some core files we do not want to delete. I search privious posts,someone said "To check what a core file came from - use the file command" I used man page to search file command,but... (9 Replies)
Discussion started by: lemon_06
9 Replies

3. UNIX for Advanced & Expert Users

read() wont allow me to read files larger than 2 gig (on a 64bit)

Hi the following c-code utilizing the 'read()' man 2 read method cant read in files larger that 2gig. Hi I've found a strange problem on ubuntu64bit, that limits the data you are allowed to allocate on a 64bit platform using the c function 'read()' The following program wont allow to allocate... (14 Replies)
Discussion started by: monkeyking
14 Replies

4. Solaris

core files not getting generated

Hi, We have an application ASPA . The application related processes are running in /ASPA/bin directory . now whenever a process terminates abruptly , a core file should be generated (correct me if i am wrong) in the /ASPA/bin directory . But i am not able to see any such files . The... (4 Replies)
Discussion started by: asalman.qazi
4 Replies

5. UNIX for Dummies Questions & Answers

hp ux core files

what are core files?? Can I safely delete them??? Please, help (2 Replies)
Discussion started by: ldaliosmane
2 Replies

6. Solaris

How to read a core file

I have a SUN Ultra 80 running Solaris 5.8 I have a couple of applications running on it. The /var/core file seems to be filling up by 2% per day. Could anyone pls suggest how to read contents of /var/core I have read couple of docs but seems to be too cumbersome. Please suggest something example... (3 Replies)
Discussion started by: Tirmazi
3 Replies

7. UNIX for Advanced & Expert Users

evaluating core files

Does anyone know any tools or how to really get something out of a core file. I can use strings and look for certain things like out of memory. I am trying to use adb but I can't make heads or tails from it. I guess it is my lack of know how with the adb/mdb debugger. anything would... (3 Replies)
Discussion started by: Gary Dunn
3 Replies

8. UNIX for Dummies Questions & Answers

system log files and core files?

Solaris v5.6 What log files should be checked out as part of your sys admin daily routine? I've printed out my syslog.conf file, and looked in /var/log and found authlog, syslog, and POPlog. I know of /var/adm/messages. What others should I be looking for? I know of the "find" command. I... (8 Replies)
Discussion started by: Westy564
8 Replies

9. UNIX for Advanced & Expert Users

What can be done with core files???

please help me, what can i do with the bountiful amount of core files our systems seem to have on occassional basis?? how do I analyze it and determine why the core file was dumped by the application that dumped it. the operating systems we use are solaris, DG-UX and linux red hat systems. (5 Replies)
Discussion started by: TRUEST
5 Replies

10. UNIX for Dummies Questions & Answers

core files

ok heres a question, :confused: well obviously i have here my old old motorola system V/88 in my /usr/adm folder i have a file called kernelcore which is 16mb (the computer has 16mb ram too), we believe this is the contents of our ram when the system crashed back in feb last year! Is it save... (2 Replies)
Discussion started by: Vodor
2 Replies
Login or Register to Ask a Question