From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f65.google.com (mail-lf1-f65.google.com [209.85.167.65]) (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 76D9546970E for ; Thu, 6 Feb 2020 15:31:18 +0300 (MSK) Received: by mail-lf1-f65.google.com with SMTP id l18so3978323lfc.1 for ; Thu, 06 Feb 2020 04:31:18 -0800 (PST) From: Cyrill Gorcunov Date: Thu, 6 Feb 2020 15:31:12 +0300 Message-Id: <20200206123114.8010-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v6 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 Cc: Vladislav Shpilevoy Sasha, I put your reviewed-by tag, please let me know if you're not agreed. Vlad, take a look please once time permit. v6 (by @alexander.turenko): - polish unit test (style and results) - fix bracing in core/fiber.c issue https://github.com/tarantool/tarantool/issues/4722 branch gorcunov/gh-4722-mprotect-diag-error-6 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 | 136 ++++++++++++++++++----------------- test/unit/CMakeLists.txt | 4 ++ test/unit/fiber_stack.cc | 83 +++++++++++++++++++++ test/unit/fiber_stack.result | 7 ++ test/unit/suite.ini | 2 +- 7 files changed, 242 insertions(+), 85 deletions(-) create mode 100644 test/unit/fiber_stack.cc create mode 100644 test/unit/fiber_stack.result -- 2.20.1