[Tarantool-patches] [PATCH 0/2] fiber: backport for stack madvise/mprotect errors handling

Ilya Kosarev i.kosarev at tarantool.org
Wed Jul 29 19:50:40 MSK 2020


This patchset is a backport for
c67522973b32fae955835109d4f86eada8f67ae5 and
8d53fadc0cb15a45ea0cd461d2d5243be51b37e0 patches on stack
madvise/mprotect errors handling.

Branch: https://github.com/tarantool/tarantool/tree/i.kosarev/gh-5211-diag-at-fiber-mprotect-and-madvise
Issue: https://github.com/tarantool/tarantool/issues/5211

Ilya Kosarev (2):
  fiber: set diagnostics at madvise/mprotect failure
  fiber: leak slab if unable to bring prots back

 src/errinj.h                 |  32 +++---
 src/fiber.c                  | 192 ++++++++++++++++++++++-------------
 test/box/errinj.result       |   2 +
 test/unit/CMakeLists.txt     |   4 +
 test/unit/fiber_stack.c      | 109 ++++++++++++++++++++
 test/unit/fiber_stack.result |  11 ++
 test/unit/suite.ini          |   1 +
 7 files changed, 268 insertions(+), 83 deletions(-)
 create mode 100644 test/unit/fiber_stack.c
 create mode 100644 test/unit/fiber_stack.result

-- 
2.17.1



More information about the Tarantool-patches mailing list