Is it possible to peridocally save state of the program through a core dump?

coredump, debugging, linux

Solution

I found simple solution:

$gcore
usage:  gcore [-o filename] pid

It is distributed with gdb.

Problem

I just want to dump core without stopping the program. This would be essentialy serializing a whole state of the program. A very convenient thing for debugging later. Is it possible under linux?

Original source

Related problems