If you have an older version of FreeBSD, you can still use GDB -k to read a core dump file.
如果您有早期版本的FreeBSD,那么仍然可以使用gdb - k来读取核心转储文件。
A dump of the process space (a system dump or core file).
进程空间转储(系统转储或核心文件)。
Using the operating system: Use the nondestructive gcore command or the destructive kill -6 or kill -11 commands to produce a core file. Then, extract a heap dump from the core file using jmap
使用操作系统:使用“无害”的 gcore 命令或破坏性的 kill -6 或 kill -11 命令来生成一个内核文件。
Almost everyone in this room has probably had a segfault at some point or core dump where you end up with this random file called core, which recall is just the contents of memory at the time your program crashed.
几乎这个教室里的所有人,在某个时候,都遇到过段错误,或者通过这个core文件的,存储器内核更新,这就是你的内存出现错误,你的程序崩溃掉了。
应用推荐