[Tarantool-patches] [PATCH v8 0/2] fiber: Handle stack madvise/mprotect errors

Cyrill Gorcunov gorcunov at gmail.com
Fri Feb 14 16:22:18 MSK 2020


in v8:
 - address Vlad's comments
 - include slab stat condition into the test

issue https://github.com/tarantool/tarantool/issues/4722
branch https://github.com/tarantool/tarantool/tree/gorcunov/gh-4722-mprotect-diag-error-8

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

 src/lib/core/errinj.h        |   2 +
 src/lib/core/fiber.c         |  93 ++++++++++++++++++++++++------
 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          |   2 +-
 7 files changed, 204 insertions(+), 19 deletions(-)
 create mode 100644 test/unit/fiber_stack.c
 create mode 100644 test/unit/fiber_stack.result


base-commit: 95b9a48daf00b6686b8e1993a023daa0755b460e
-- 
2.20.1



More information about the Tarantool-patches mailing list