[CRIU] [PATCH 0/3] crit core-dump feature

Ruslan Kuprieiev kupruser at gmail.com
Sun Apr 26 12:45:11 PDT 2015


This set itroduces a new CRIT feature called "core-dump". The name
is pretty much self-explanatory, it allows generating core dumps
from criu images. Core dumps are readable and usable by gdb.
The structure is something in the middle of kernel-generated
and gdb-generated core dumps.

This is a first iteration of core-dump patch series. It introduces
ability to generate gdb-operatable core dump only for x86_64 machine.
To support other architectures there will be a set to introduce proper
structures for notes section of the core dump. It is also worth noting,
that we still leave some notes(SIGINFO primarily) not fullfilled, as
I still need to figure out what to put in there in our case, where no
signal is involved in triggering core dump generation and other
caveats like zeroed vvar(we have problems with it withing CRIU itself
as well as gdb has some difficalties with it) and vsyscall vmas.
One can already use produced core dump with gdb, there is also
a quick simple demo https://asciinema.org/a/18936 .

Ruslan Kuprieiev (3):
  dump: save /proc/pid/cmdline
  crit: add core-dump feature, v2
  test: crit: test core dump, v2

 cr-dump.c                  |  13 +-
 crit                       |  18 +-
 include/image.h            |   1 +
 include/proc_parse.h       |   1 +
 proc_parse.c               |  35 +++
 protobuf/core.proto        |   2 +
 pstree.c                   |   4 +-
 pycriu/images/__init__.py  |   1 +
 pycriu/images/core_dump.py | 768 +++++++++++++++++++++++++++++++++++++++++++++
 pycriu/images/elf.py       | 526 +++++++++++++++++++++++++++++++
 test/crit/.gitignore       |   2 +
 test/crit/Makefile         |  10 +-
 test/crit/loop.c           |  32 ++
 test/crit/loop.sh          |   4 -
 test/crit/test.sh          |  66 +++-
 15 files changed, 1456 insertions(+), 27 deletions(-)
 create mode 100644 pycriu/images/core_dump.py
 create mode 100644 pycriu/images/elf.py
 create mode 100644 test/crit/loop.c
 delete mode 100755 test/crit/loop.sh

-- 
1.9.1



More information about the CRIU mailing list