Unix/Linux Go Back    


Shell Programming and Scripting Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and shell scripts and shell scripting languages here.

how i can read vmcore.x (x=0,1,...) file

Shell Programming and Scripting


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 05-20-2008
mahadib mahadib is offline
Registered User
 
Join Date: Apr 2008
Last Activity: 12 January 2009, 11:43 PM EST
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
how i can read vmcore.x (x=0,1,...) file

how i can read vmcore.x (x=0,1,...) file

--------------------------------------------------------------------------------

how i can read vmcore.x (x=0,1,...) file in text format or any readable format. have any idea?

I heard 'strings' command work on it, but in solaris when i tried -- it said such huge size not possible.

Any help/idea will be cordially welcomed.
Sponsored Links
    #2  
Old Unix and Linux 05-20-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 3 September 2015, 3:49 PM EDT
Location: NM
Posts: 10,532
Thanks: 353
Thanked 881 Times in 819 Posts
I'm not a Solaris person, but there has to be a debugger that can read the kernel core.

This explains system core dump management for both core types in Solaris:

Code:
http://developers.sun.com/solaris/articles/manage_core_dump.html

It looks like kmdb is what you need. But read the article first.
Sponsored Links
    #3  
Old Unix and Linux 11-06-2008
renmaverick renmaverick is offline
Registered User
 
Join Date: Nov 2008
Last Activity: 9 November 2008, 1:33 AM EST
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by mahadib View Post
how i can read vmcore.x (x=0,1,...) file

--------------------------------------------------------------------------------

how i can read vmcore.x (x=0,1,...) file in text format or any readable format. have any idea?

I heard 'strings' command work on it, but in solaris when i tried -- it said such huge size not possible.

Any help/idea will be cordially welcomed.
*******************************************************

Hello, well what do you exactly mean by reading the memory dump file (vmcore)?
Actually, these files can be debugged using mdb (or kmdb) and adb (or kadb) utilities which are built in tools of Solaris. Linux

But if you want to just see the contents then either you can use strings command(which dint work in ur case), apart from this there is another CCS utility called "nm" which can help u to see the contents of unix.0 - /usr/ccs/bin/nm unix.0 x Linux, but for vmcore.0 you need to use the mdb or adb debuggers to analyze or view the crash dump file.
Linux

I use these on a daily basis, so if you encounter any problems, you can always revert to me.

Last edited by renmaverick; 11-09-2008 at 01:33 AM..
    #4  
Old Unix and Linux 11-10-2008
ashish_0101 ashish_0101 is offline
Registered User
 
Join Date: Nov 2008
Last Activity: 10 November 2008, 6:09 AM EST
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
need to analyse vmcore.0

my system got panic and crashed, it generated vmunix.0 file. To analyse I am using mdb utility but I am not sure what is the correct was of using it. I am getting this
# mdb -k vmcore.0
mdb: vmcore.0 is not an ELF file

Can some one help me how I can analyse vmcore.0

Thanks in advance.........
Sponsored Links
    #5  
Old Unix and Linux 11-10-2008
ashish_0101 ashish_0101 is offline
Registered User
 
Join Date: Nov 2008
Last Activity: 10 November 2008, 6:09 AM EST
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
will appreciate if someone gives the exact syntax for using mdb
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
When reading a csv file, counter to read 20 lines and wait for minute then read next 20 till end victor.s UNIX for Dummies Questions & Answers 3 11-09-2011 09:41 AM
I need to analyse some vmcore files feg Solaris 2 05-27-2011 01:57 PM
bash: read file line by line (lines have '\0') - not full line has read??? alex_5161 Shell Programming and Scripting 6 04-14-2010 04:58 AM
Cannot read a file with read(fd, buffer, buffersize) function naranja18she Programming 3 06-12-2009 01:39 PM
use sunexplorer and vmcore analysis result instead of vmcore dump file itself. mahadib Solaris 3 04-22-2008 04:38 AM



All times are GMT -4. The time now is 05:27 PM.