Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 363
Łukasz Lew Avatar asked Oct 07 '09 11:10

Łukasz Lew


1 Answers

I found simple solution:

$gcore
usage:  gcore [-o filename] pid

It is distributed with gdb.

like image 102
Łukasz Lew Avatar answered Sep 25 '22 07:09

Łukasz Lew