cr_read(3) Library Functions Manual cr_read(3)NAME
cr_read - read from crash dump
SYNOPSIS DESCRIPTION
The function attempts to read the memory area defined by mem_page and num_pages into the buffer pointed to by buf from the crash dump
opened using crash_cb.
The starts at the position in the crash dump associated with the physical memory offset given by mem_page. If the physical memory page
mem_page does not exist in the crash dump, sets *num_pages to 0 and returns 0.
No data transfer will occur past a page of memory that does not exist in the crash dump. If the starting position, mem_page, plus the read
length, *num_pages, goes past an area of memory that does not exist in the crash dump, sets *num_pages to the number of consecutive pages
(starting at mem_page) actually read.
RETURN VALUE
Returns zero for success. Other possible return values are described in libcrash(5).
EXAMPLES
Assuming a process opened a crash dump, the following call to cr_read(3) reads the first pages from the crash dump into the buffer pointed
to by mybuf:
WARNINGS
may return fewer pages than requested due to implementation details. Always check the number of pages returned. If they are fewer than
requested, issue a new request starting at the first page not returned. Only if that new request reads zero pages (or returns an error)
can you be sure that the page was not dumped.
AUTHOR
was developed by HP.
SEE ALSO cr_open(3), libcrash(5).
cr_read(3)
Check Out this Related Man Page
cr_uncompress(3) Library Functions Manual cr_uncompress(3)NAME
cr_uncompress - uncompress a file in a crash dump
SYNOPSIS DESCRIPTION
The ensures that a file, part of a crash dump described by crash_cb, is uncompressed and matches its expected size and checksum (as com-
puted by cksum(1)). This call is most often used to ensure the integrity of module files that are a part of the crash dump; see
cr_info(3).
pathname is the name of the file to uncompress. Supported compression methods include gzip(1), which appends a to the filename, and com-
press(1), which appends Respectively, size and checksum are the expected size and checksum of the uncompressed file. Either validity check
can be disabled by specifying zero for the corresponding parameter.
RETURN VALUE
Returns zero for success. Other possible return values are described in libcrash(5).
EXAMPLE
The following call to cr_uncompress(3) ensures that the kernel file is uncompressed and validated.
AUTHOR
was developed by HP.
SEE ALSO gunzip(1), uncompress(1), cr_info(3), cr_open(3), libcrash(5).
cr_uncompress(3)
Hi All,
When I came officce this morning I saw this error messages on the screen
-----
PANIC:srmountfun - Error 6 mounting rootdev hd (1/42)
Cannot dump 32639 pages to dumpdev hd (1/41) : space for only 0 pages
Dump not completed
--------
and machine was reboot mode. Why this problem... (3 Replies)
Hi
Should anyone be able to help, one of my colleagues was doing a truss this morning and I am not sure if it has offset the system crash, but we have had these type of errors coming up????
# ls
ls: Cannot read /usr/lib/ld.so.1
Killed
# ps -ef
ps: Cannot read /usr/lib/ld.so.1
Killed
#... (1 Reply)
Received the following on the weekend.
Panic:k_trap kernel mode trap type 0X0000000e cannot dump 163739 pages to dumpdev hd (1/41):space for only 48640 pages
Dump not complete
Safe to power off or press any key to reboot
Any ideas how to fix this one? It also happen a month ago. (3 Replies)
how do I stop memory leaks like some times. some apps crash and give me core crash errors in kde 3.1 and gnome crashes sometimes and yahoo chat app when I use the window shade and bring it back the app is still there but is blank so i have to a clt+alt+esc and reload the app again how to make it... (1 Reply)
Hello,
I host a couple of Call of Duty gameing servers. There are some hackers who love the crash them. When they crash them it simply causes a segmentaion fault and kills the PID. I was wondering it you could help me write a script to simply restart the program after it has been crashed. The... (9 Replies)
hi friends,
i know that when there is a crash then that memory image is
put into /var/adm/crash
but if the system hangs up and if i have access to console of
that machine then how can i take the crash dump manully.
thanks (2 Replies)
Hi
I'm currently using C++ on a HP-UX 11i system (upgrading some libraries) and am encountering a problem with the process crashing when allocating memory via a call to new (a rather large array of objects are being created).
Is there a way to find out what the sizes of the stack and heap are?... (1 Reply)
I have a program that opens a file handle that reads a lot of logs, it uses globbing, for example ba* matches bananas.log, bank.log, etc. I have seven different names, each with several logs that I run to a grep pattern. I have subroutines for each match and a loop w/o args that processes this. ... (5 Replies)
I used take thread dump when our application gets out of memory issue.
can any one help on check thread dump result.
where it will save tool to read thread dump.:wall:
date; kill -3 process_id; sleep 300; kill -3 process_id; sleep 300; kill -3 process_id;date (5 Replies)
Dear all
i have two aix system
-Model : P770
-OS version: AIX 6.1
-patch level : 6100-07-04-1216
-ha version : HACMP v 6.1.0.8
-host : A, B
last Wednesday, my B system suddenly went down with crash dump. after 1 minute, A system went down with crash dump. I checked the dump of A-system... (6 Replies)