- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Creating a dump file from a C program
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2006 10:33 AM
тАО03-27-2006 10:33 AM
Creating a dump file from a C program
How do we create a .DMP file from a C program. My program is basically a kill program and I want to add the functionality to create a dump file. Could you please give an example how to do that...
Thanks...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2006 06:39 PM
тАО03-27-2006 06:39 PM
Re: Creating a dump file from a C program
if you want your C program to create a process dump of itself, use LIB$STOP(SS$_IMGDMP);
To force a process dump of another process, you might have to spawn the DCL command:
$ STOP/ID=xxx/DUMP=NOW
Note that this command creates a process dump, but does not terminate the process. So if you then want to 'kill' the process, you would have to call $FORCEX or $DELPRC, after allowing enough time for the process dump to be written.
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2006 10:39 AM
тАО03-28-2006 10:39 AM
Re: Creating a dump file from a C program
I did it using sys$sigprc with a ss$_imgdmp and then did a lib$signal. All works
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2006 09:26 PM
тАО03-28-2006 09:26 PM
Re: Creating a dump file from a C program
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-25-2006 01:24 AM
тАО08-25-2006 01:24 AM
Re: Creating a dump file from a C program
I have been made aware, that I have given a wrong command to be used to force a process dump.
The correct command is:
$ SET PROC/DUMP=NOW/ID=
The /DUMP=NOW qualifier has been added in OpenVMS Alpha V7.3.
Volker.