The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
core dump bapi AIX 1 04-23-2008 05:30 AM
Core Dump vinp UNIX for Advanced & Expert Users 1 10-22-2007 08:49 AM
Core dump in HP-UX.. gyanusoni UNIX for Dummies Questions & Answers 0 09-07-2007 04:29 AM
about core dump zhaohaizhou High Level Programming 1 09-15-2004 07:30 AM
help, what is the difference between core dump and panic dump? aileen UNIX for Dummies Questions & Answers 1 06-11-2001 09:08 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-03-2002
hassan2 hassan2 is offline Forum Advisor  
Registered User
  
 

Join Date: Mar 2002
Location: London, England
Posts: 262
Angry core dump

I've got a core dump in my weblogic home directory, which i have tried to debug by initiating savecore from /etc/init.d/savecore start
but savecore failed to create the two files, that is vmcore.n and vmunix.n.
savecore is enable on my server to save vmcore and vmunix in /var/crash/hostname

1) how do I run adb command (debugger) without the vmcore.n or vmunix.n?

2) how do get my server to create the two files without rebooting?

3) could you debug a core file without creating or using vmcore and vmunix files?
  #2 (permalink)  
Old 05-03-2002
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
You should be able to do this with just the kernel and the corefile. According to the man adb page, you should be able to use, adb <kernel> <corefile>...
  #3 (permalink)  
Old 05-03-2002
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,127
Whoa! I think you may have your core files mixed up.

One type of corefiles is a file called "core" that appears in various directories around your system. When a process aborts as the result of a default action of certain uncaught signals, it tries to write a file called "core" in the current directory. This type of core file is just the stack and data segments of the process that aborted.

A second type of corefile occurs when the kernel detects a massive problem. The kernel will call an internal routine called "panic". panic will try to dump all of main memory to the swap area. Then is will halt or reboot depending on your config. When the box finally does boot, savecore will copy the corefile into the file system.

adb can be used on both types of corefiles. Type two is the type that needs a copy on vmunix. Type one on ethe other hand will need the executable that was running to cause the core file.
  #4 (permalink)  
Old 05-07-2002
hassan2 hassan2 is offline Forum Advisor  
Registered User
  
 

Join Date: Mar 2002
Location: London, England
Posts: 262
Red face core dump

thanks for your reply, it being a great help in
differentiating the two types of core files

but when I initiated adb core it displays:

core file = core -- program ``dtfile'' on platform SUNW,Sun-Blade-100
SIGSEGV: Segmentation Fault

and nothing else.

is this all adb core is ment to display? or have
I got the syntax wrong? if this is the case could you please let me know what the right syntax is,
I have read the man page but this hasn't help.
  #5 (permalink)  
Old 05-07-2002
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,127
adb is an interactive program. You type stuff in and it types stuff back. There is a limit to what it can do with only the core file. I wasn't kidding when I said it also needed the executable.

But even with the executable, you will need extensive knowledge to do much beyond displaying what you have displayed. Tutorials on adb have been mentioned before in this forum. Search for them.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:31 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0