Sponsored Content
Full Discussion: Core dump
Operating Systems AIX Core dump Post 302354077 by rps on Thursday 17th of September 2009 03:12:43 AM
Old 09-17-2009
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.
[using memory image in core]
reading symbolic information ...

Segmentation fault in malloc_common.extend_brk [/usr/lib/libc.a] at 0xd03719c4 ($t1)
0xd03719c4 (extend_brk+0x20c) 90040004 stw r0,0x4(r4)
(dbx) where
malloc_common.extend_brk(internal error: assertion failed at line 3650 in file frame.c
??, internal error: assertion failed at line 3650 in file frame.c
??, internal error: assertion failed at line 3650 in file frame.c
??) at 0xd03719c4
(dbx)

The frame.c file is not our source file. Can someone tell me how should i read entire core file contents
Thanks
Rudra
 

10 More Discussions You Might Find Interesting

1. 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

2. UNIX for Dummies Questions & Answers

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

3. 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

4. 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

5. 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

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. 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

8. 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

9. 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

10. 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
dumpsys(8)						      System Manager's Manual							dumpsys(8)

NAME
dumpsys - Copies a snapshot of memory to a dump file SYNOPSIS
/sbin/dumpsys [-fisuz] [-r num] directory OPTIONS
Perform a full core dump -- the default is a partial dump. Ignore filesystem space limit warning -- copy the dump even if there is insuf- ficient filesystem space to save it. Only the portion of the dump that fits in the space available is copied. Set the expected dump com- pression ratio, defaulting to 0.5. A lower number means a better compression ratio is expected. Print the expected size of a full and partial dump file -- no dump is taken. Produce a non-compressed dump. Disable contiguous zero suppression. DESCRIPTION
The dumpsys command allows you to save a snapshot of the system memory to a dump file. There are times when system memory requires analy- sis but it may not be possible to halt the system and take a normal crash dump. Many problems can be resolved by taking a snapshot of the system memory while the system is running. The dumpsys command performs this function after it determines that there is enough file system space to save a core dump (see the following for information about minfree). Note that the system is running while dumpsys takes a snapshot of memory. This means that memory may be changing as it is copied. As a result, analysis of the resulting dump may show inconsistencies such as incomplete linked lists and partially zeroed pages. These are features caused by the transitory state of memory, caused by the working system. For this reason, some system problems cannot be detected by dumpsys and you must halt the system to take a normal crash dump. The dumpsys command writes information in directory. By default, directory is /var/adm/crash. The dump contains the contents of a portion of physical memory (or all of physical memory in the case of a full core dump) at the time of the command execution. The dumpsys command saves this information in the file vmzcore.n, or vmcore.n if compression is supressed. The command also copies the kernel executable image, usually /vmunix, to the vmunix.n file. You can then analyze the vmzcore.n and vmunix.n files (See the Kernel Debugging manual for information about analyzing core dump files.) The variable n indicates the number of the core file. For the first file, dumpsys creates the files vmunix.0 and vmcore.0. It then creates a file named directory/bounds and initializes the file with the value 1. For each succeeding dump, the dumpsys command uses the value in the directory/bounds file and then increments that value. By default dumpsys produces specially compressed dump files. The compression scheme used is not as powerful as compress or gzip but has the unusual feature that any byte in the file can be extracted without decompressing more than about 40K (typically less), even if the dump is very large. Tools such as dbx, ladebug, and kdbx, are able to read the compressed core files. The expand_dump utility is provided to con- vert compressed dumps into non-compressed dumps if you want to use an analysis tool that does not understand the compressed format. A traditional non-compressed dump can be generated using the -u switch. In this case the dump file will be named vmcore.n instead of vmz- core.n. It is possible that you may run dumpsys on a kernel that is not recent enough to support compressed dumps. If this happens, dumpsys will display a warning that the kernel is too old, but will then produce a non-compressed dump. The message is suppressed if -u is used. Con- versely, if you try to use older versions of dumpsys with a newer kernel a non-compressed dump is created without a message. The older dumpsys version will not recognize the -u or -r options. The text file directory/minfree specifies the minimum number of kilobytes that must be left on the filesystem containing directory after dumpsys copies the dump. By default, this file does not exist, indicating that the minimum is set to zero. To specify a minimum, create the file and store the number of kilobytes you want reserved in it.You can override the minimum check of directory/minfree using the -i option. The -s option displays the approximate number of disk blocks that full and partial dumps will require. The exact size can not be deter- mined ahead of time for many reasons, such as: By default, dumpsys optimizes disk space requirements by suppressing the writing of contigu- ous zeroes. System use of dynamic memory (malloc/free) changes while the system is in use. If the dump is to be compressed, the ratio by which it will be compressed is not known. The -z option disables contiguous zero suppression. A considerable amount of memory consists of contiguous zeros, that do not need to be written to disk. The dumpsys command optimizes disk space by default, but optimization of disk space causes longer execution times. If you specify the -z option, the run time can be 25% faster, although you will require more disk space. Note that if the dump is to be com- pressed, zero supression is not usedm therefore the -z option is meaningless. With the exception of the -s option, execution of dumpsys requires root (superuser) access rights. EXIT STATUS
Success -- dump taken General error -- dump failed Insufficient file system space -- dump failed FILES
Specifies the number of the next dump Specifies the minimum number of kilobytes to be left after dump files are written SEE ALSO
Commands: dbx(1), expand_dump(8), savecore(8) System Administration dumpsys(8)
All times are GMT -4. The time now is 12:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy