How can I configure windows to generate a core dump from an application?
Microsoft has a free tool called Userdump.exe which will do this.
It's pretty simple to use that tool to create a dump (.dmp) file for a process that shuts down with an exception or to create a dump file for a hanging process
I run `crash_demo.run` by `spawn-fcgi` . How to collect `core` file
This question is probably more for askubuntu.com or serverfault.stackexchange.com.
You likely need to configure core dump. Since we don't know the platform, I'm assuming likely a Linux. See e.g. core(5):
There are various circumstances in which a core dump file is not
produced
In my experience what's required is setting a core pattern (/proc/sys/kernel/core_pattern
)
How can a C program produce a core dump of itself without terminating?
void create_dump(void)
{
if(!fork()) {
// Crash the app in your favorite way here
*((void*)0) = 42;
}
}
Fork the process then crash the child - it'll give you a snapshot whenever you want
Is there a Windows alternative for UNIX crash core-files
The equivalent of a core dump on Windows is a minidump. It has the .dmp
file extension and can e.g. be opened in Visual Studio or in WinDbg.
There are many ways of getting such a crash dump. I once answered How do I take a good crash dump for .NET?, but most of that can also be applied to C++ and VB6.
Java has it's own way of reporting crashes and interpreted languages like Python, too.
Related Topics
Is There an Os Command I Can Run to Determine If Running Inside a Xen Based Virtual Machine
Find Files and Print Only Their Parent Directories
Cpu Utilization High for Sleeping Processes
On Building Docker Image Level=Error Msg="Can't Close Tar Writer: Io: Read/Write on Closed Pipe"
How to Edit a Symlink with a Text Editor
$${Home} or ${Home} in Makefile
What Does It Mean to Break User Space
Cross-Compilation to X86_64-Unknown-Linux-Gnu Fails on MAC Osx
Why Does Wget Output to Stderr Rather Than Stdout
Linux Kernel Aio, Open System Call
Can Tmux Save Commands to a File, Like .Bash_History
How to Test My Bash Script on Older Versions of Bash
How to Setup Cron Job on Amazon Linux Ami
Docker Create Two Bridges That Corrupts My Internet Access
How to Write Kernel Space Memory (Physical Address) to a File Using O_Direct