From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Return-Path: From: Cyrill Gorcunov Subject: [PATCH 1/2] lib/core/fiber: Increase default stack size Date: Fri, 15 Mar 2019 23:58:01 +0300 Message-Id: <20190315205802.18847-2-gorcunov@gmail.com> In-Reply-To: <20190315205802.18847-1-gorcunov@gmail.com> References: <20190315205802.18847-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: Vladimir Davydov Cc: tml , Cyrill Gorcunov List-ID: The default 64K stack size used for years become too small for modern distors (Fedora 29 and etc) where third party libraries (such as ncurses) started to use 64K for own buffers and we get SIGSGV early without reaching interactive console phase. Thus we increase default size up to 512K which should fit for common case. Later we will make this value configurable to address arbitrary stack sizes without a need to rebuild the whole code. Part-of #3418 --- src/lib/core/fiber.c | 2 +- test-run | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/core/fiber.c b/src/lib/core/fiber.c index abd6c6b11..bf2a22bed 100644 --- a/src/lib/core/fiber.c +++ b/src/lib/core/fiber.c @@ -95,7 +95,7 @@ enum { /* The minimum allowable fiber stack size in bytes */ FIBER_STACK_SIZE_MINIMAL = 16384, /* Default fiber stack size in bytes */ - FIBER_STACK_SIZE_DEFAULT = 65536 + FIBER_STACK_SIZE_DEFAULT = 524288 }; /** Default fiber attributes */ -- 2.20.1