From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id F3BC546970E for ; Thu, 6 Feb 2020 01:06:26 +0300 (MSK) Received: by mail-lj1-f178.google.com with SMTP id a13so3906016ljm.10 for ; Wed, 05 Feb 2020 14:06:26 -0800 (PST) From: Cyrill Gorcunov Date: Thu, 6 Feb 2020 01:06:22 +0300 Message-Id: <20200205220624.8764-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v5 0/2] fiber: Handle stack madvise/mprotect errors List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tml issue https://github.com/tarantool/tarantool/issues/4722 branch gorcunov/gh-4722-mprotect-diag-error-5 In v5: - merged errinj together with test into the patch itself - on guard page restore we print error and continue instead of immeadiate exit Cyrill Gorcunov (2): fiber: use diag_ logger in fiber_madvise/mprotect failures fiber: leak slab if unable to bring prots back src/lib/core/errinj.h | 2 + src/lib/core/fiber.c | 92 +- test/box/errinj.result | 2616 ++++++++++++++++++---------------- test/unit/CMakeLists.txt | 4 + test/unit/fiber_stack.cc | 83 ++ test/unit/fiber_stack.result | 6 + test/unit/suite.ini | 2 +- 7 files changed, 1530 insertions(+), 1275 deletions(-) create mode 100644 test/unit/fiber_stack.cc create mode 100644 test/unit/fiber_stack.result -- 2.20.1