core dump


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers core dump
# 1  
Old 05-03-2002
Network 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  
Old 05-03-2002
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  
Old 05-03-2002
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  
Old 05-07-2002
Power 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  
Old 05-07-2002
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.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

core dump

Hi guys, just want to know which core file pattern is best to set for core dumps: 1) per-process file name pattern or 2) global file name pattern. I will really appreciate an explanation why the chosen one is better. Thanks a lot guys. (2 Replies)
Discussion started by: cjashu
2 Replies

2. HP-UX

Core dump in HP-UX

Hi Guys, I was wondering if somebody could give me a link to a very good source of information or document about core dump process and How to's about it. I have also googled it and found some articles myself. Thanks Messi (1 Reply)
Discussion started by: messi777
1 Replies

3. UNIX for Dummies Questions & Answers

No core dump

my progrme complaints 'Segmentation fault'. How to let it print 'Segmentation fault(core dumped)' and generate core dump file? $ulimit unlimited (22 Replies)
Discussion started by: vistastar
22 Replies

4. AIX

Core dump

Hi , I want to read core dump file on AIX5.3. While i am trying to use following commands, i am getting only few lines of information. ux201p3:e46123> dbx capsWrkstnMgr core Type 'help' for help. reading symbolic information ... Segmentation fault in malloc_common.extend_brk at... (1 Reply)
Discussion started by: rps
1 Replies

5. Programming

core dump

how to view core dumped file using gdb and how to extract information from the coredumped file.can we get similar information from the other utilites like strace or ptrace. (2 Replies)
Discussion started by: Manabhanjan
2 Replies

6. AIX

core dump

My application gives core dump. When i am debugging with dbx getting instructions below: pthdb_session.c, 818: 695445 PTHDB_INTERNAL (internal error) pthreaded.c, 1941: PTHDB_INTERNAL (internal error) Illegal instruction (illegal opcode) in . at 0x0 warning: Unable to access address 0x0... (1 Reply)
Discussion started by: bapi
1 Replies

7. UNIX for Dummies Questions & Answers

Core dump in HP-UX..

Hi All I am new for this forum. I have a core file by using gdb and bt cmd I got the function name but I want to the exact cause of the core dump because of I can not reproduse the binary so if any one know the cmd plz plz plz let me know. (0 Replies)
Discussion started by: gyanusoni
0 Replies

8. UNIX for Advanced & Expert Users

core dump

Hi All, i am new to this forum.i want detail of reading the core file and trace the problem because of what the program get crashed.please help me.if any body knows any website or tutoril plese let me know. sudhir (6 Replies)
Discussion started by: sudhir patnaik
6 Replies

9. Programming

about core dump

MY friends: my program under sco unix have a problem? it create a core dump file on the path when execute program , but i can't find the error of the C program ,i don't know how to see the error about my program use core, please help me or give me some suggest and what tools can use... (1 Reply)
Discussion started by: zhaohaizhou
1 Replies

10. UNIX for Dummies Questions & Answers

help, what is the difference between core dump and panic dump?

help, what is the difference between core dump and panic dump? (1 Reply)
Discussion started by: aileen
1 Replies
Login or Register to Ask a Question