Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cr_open(3) [hpux man page]

cr_open(3)						     Library Functions Manual							cr_open(3)

cr_open() - open crash dump for reading SYNOPSIS
The library call opens a crash dump and passes back a crash dump descriptor. The path argument points to a path name naming a crash dump directory or file, and must not exceed bytes in length. The CRASH * to which crash_cb points is set to a crash dump descriptor, which can then be passed to the other functions to access the crash dump. flags is a bitmask of zero or more of the following flag values, which affect the operation of future calls to libcrash routines for this crash dump, except for cr_verify(3), which has its own flags parameter. The library will not attempt to verify checksums of files in the crash dump if this flag is set. The library will write messages to stderr during time-consuming operations (decompressions and checksums) if this flag is set. RETURN VALUE
Returns zero for success. Other possible return values are described in libcrash(5). EXAMPLES
The following call to opens crash dump contained in the directory and returns the crash dump descriptor For an example of reading the crash dump see the cr_read(3) manual entry. AUTHOR
was developed by HP. SEE ALSO
cr_close(3), cr_perror(3), libcrash(5). cr_open(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)

14 More Discussions You Might Find Interesting

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

2. UNIX for Dummies Questions & Answers

Compile and dump errors to a text file

Hi there, I want to compile a program and dump errors to a text file. How could I do so..? Thanks for reading and thanks in advance!!! (6 Replies)
Discussion started by: starstarting
6 Replies

3. SCO

SCO 5.07 Panic / Core Dumps

Anyone know how you go about interrogating a panic / core dump with crash for SCO Unix (5 Replies)
Discussion started by: ccarcher
5 Replies

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

5. Red Hat

Linux crashdump

Hi there, Anyone there who has a procedure on how to crash a linux a system? We need to do some testing on our machines. And one of the test would be to crash the os. Appreciate you help. Thanks. Best regards, Sodapop (5 Replies)
Discussion started by: sodapop
5 Replies

6. Programming

very bizzare file writing problem

I'm trying to write a function which opens a file pointer and writes one of the function parameters into the file, however for some reason Im getting a core dump error. The code is as below void WriteToFile(char *file_name, char *data) { FILE *fptr; /*disk_name_size is a... (10 Replies)
Discussion started by: JamesGoh
10 Replies

7. Programming

Core dump in the application

Hi, I am facing an issue with the core dump, i am not exactly able to figure out why and where i am getting it and how should i resolve it Please find the dbx run on the core reading symbolic information ... Segmentation fault in realloc_y at 0x900000000046980 ($t1) 0x900000000046980... (5 Replies)
Discussion started by: mad_man12
5 Replies

8. Emergency UNIX and Linux Support

HP-UX 11iv3 crash on integrity bl870c during os kernel boot

I have a problem it seems to me as kernel panic during os booting i attached screen shots for the error (7 Replies)
Discussion started by:
7 Replies

9. Emergency UNIX and Linux Support

How to open the core dump file in linux?

Hi, I have got core dump stating "core.bash.29846" so i am unable to open. How to open the core dump file for further analysis? Reagards Vanitha (7 Replies)
Discussion started by: vanitham
7 Replies

10. Shell Programming and Scripting

Zip dump file using expdp:

Hi All, i am using expdp to create a dump file of contents from an oracle table. I want this dump file to be zipped. Is there a way/ option in expdp where the dump file will be automatically zipped when its been created. If not please suggest other methods. (8 Replies)
Discussion started by: qwertyu
8 Replies

11. Shell Programming and Scripting

Links replacement on sql dump

Hi All I have dump of mysql DB (Joomla), and I found out that there is absolute links on the DB not with the domain name but the IP address ex: ,(115205,' (12 Replies)
Discussion started by: molwiko
12 Replies

12. Solaris

Can ufsdump create files that have a .vtoc and .dmp extension?

Hello, I was handed the job of restoring a drive on a old Sun Micro server running Solaris 8. The person who created the backup files told me I would need to use UFSrestore to restore the drive. I have read about everything on ufsrestore that is on this forum and have a decent grasp on how it... (18 Replies)
Discussion started by: CurtArnold
18 Replies

13. AIX

AIX system dump analysis

dear all, i have p770 aix6.1 last week, the host reboot suddenly with dump. but i don't know how to analyze the dump. I posted kdb details in the attachment. please anybody help me. #>kdb vmcore.0 /unix vmcore.0 mapped from @ 700000000000000 to @ 7000001c72c0908 START ... (13 Replies)
Discussion started by: tomato00
13 Replies

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