Documentation ¶
Overview ¶
Package core provides facilities for creating core dumps.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Log = log15.New()
Functions ¶
func DumpAll ¶
Dump all threads. This is done using the external tool `gcore`. `gcore` is part of GDB's binutils and must be installed for this method to work. The core dump will contain all threads of the current process.
func DumpSelf ¶
Dump the calling thread's state. This is done with a fork and SIGABRT. Only one thread will be present in the dump.
The environment variable `GOTRACEBACK` needs to be set to `crash` otherwise the Go runtime will not produce a core dump.
The ulimit for core dumps should also be set to allow them: `ulimit -u unlimited`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.