Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cr_read(3) [hpux man page]

cr_read(3)						     Library Functions Manual							cr_read(3)

cr_read - read from crash dump SYNOPSIS
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)

cr_uncompress - uncompress a file in a crash dump SYNOPSIS
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)

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers


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)
Discussion started by: alisev
3 Replies

2. UNIX for Advanced & Expert Users

Solaris 8 crash on Enterprise 3500

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/ Killed # ps -ef ps: Cannot read /usr/lib/ Killed #... (1 Reply)
Discussion started by: NAV4869
1 Replies

3. UNIX for Dummies Questions & Answers

Kernal Panic

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)
Discussion started by: jcoleman544
3 Replies

4. UNIX for Dummies Questions & Answers

how to .....

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)
Discussion started by: 3bumbs plumming
1 Replies

5. Shell Programming and Scripting

Restarting a Crashed Process

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)
Discussion started by: Phobos
9 Replies

6. HP-UX

crash dump

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)
Discussion started by: mxms755
2 Replies

7. Solaris

crash dump

Can anyone of you help me in enabling crash dump on Solaris 5.5.1 (1 Reply)
Discussion started by: csreenivas
1 Replies

8. Programming

Process crash when allocating memory

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)
Discussion started by: themezzaman
1 Replies

9. Shell Programming and Scripting

Perl - FileHandles that crash memory

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)
Discussion started by: nj78
5 Replies

10. Solaris

crash dump

hi , i have machine that is crashed how i can enable core dump file & how can i find it ? :confused: (4 Replies)
Discussion started by: lid-j-one
4 Replies

11. UNIX for Dummies Questions & Answers

Does command for reading from memory exist?

Does exist in unix any command which could read data from any memory address or port and return result on screen? (2 Replies)
Discussion started by: linuxchemist
2 Replies

12. Shell Programming and Scripting

Number with starting zero

Hello, How to check if any number (or string) starting with zero (0)? if it starts with zero, how to remove the starting zero? TIA, Prvn (5 Replies)
Discussion started by: prvnrk
5 Replies

13. UNIX for Dummies Questions & Answers

analyze linux crash dump

Can anybody let me know the steps how can I produce a crash dump and then analyze it? (4 Replies)
Discussion started by: rupeshkp728
4 Replies

14. Shell Programming and Scripting

Thread Dump

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)
Discussion started by: ram5019
5 Replies

15. AIX

Crash dump and Panic message : RSCT Dead Man Switch Timeout for HACMP; halting non-responsive node

Dear all i have two aix system -Model : P770 -OS version: AIX 6.1 -patch level : 6100-07-04-1216 -ha version : HACMP v -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)
Discussion started by: tomato00
6 Replies

Featured Tech Videos