From owner-freebsd-current@freebsd.org Mon Jun 26 19:53:15 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E7015D904EA for ; Mon, 26 Jun 2017 19:53:15 +0000 (UTC) (envelope-from bjkfbsd@gmail.com) Received: from mail-oi0-x230.google.com (mail-oi0-x230.google.com [IPv6:2607:f8b0:4003:c06::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A67B03580 for ; Mon, 26 Jun 2017 19:53:15 +0000 (UTC) (envelope-from bjkfbsd@gmail.com) Received: by mail-oi0-x230.google.com with SMTP id l83so6694346oif.1 for ; Mon, 26 Jun 2017 12:53:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=s5NNLJJS4ZySQJfJ2BSbeK+qttC+Li5tLZJEkpn30cY=; b=jeOAekhVjW2faE/L1ZUuSRmIpXa8L45/mZP4ro/GzEUQWWkbNu2Zcm7et9tUr+oBI/ WXUuubBZAHkU1I4rvbxWe30UMuFE4OmXA7NmedujL/ouG8ryLQZJoI+r69cUDJ4j9N1v 6uM5IDgbo91UNh+88a1q2mUO6F4CLc+Mcn3khH6v1nG2o4NCjP4xhIvmeUObceo5BlaB 5NaZ6sVX/D5EBxtGytOrjyfLx1rEybUchk6EYnVpptbchPXIjxssAVbTCoynxQVF4QN1 wY/xtQYplDBaiusx1rwi2LLRL1Ont5CpMIQN95DcJwIulVs4tTNhOyVRFr/lesU0/9Ej /Rmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=s5NNLJJS4ZySQJfJ2BSbeK+qttC+Li5tLZJEkpn30cY=; b=VJcJEo7EmNPjXEVhEG/KVJJkF4kK9w9s9H+3TBrELvSC5cJoXB/x9aQzHgTE4qkR85 miagpKQQnRi2OLExW1zZ6BT/Rd5Z5Vn6+iurKNOAZy8DqckeGz7jc7hbpZwmHZjBDtIR 2mJb5eqUJVcLe5rp26LSD4hkG3c7dGppLd6iCoXn0aq0n1pdxZUadysbORQ++bz+l+8n hbIRneg1NAUAzB7C67y7n0PCaa31J66JO0v7zI/pH1gzZ9ZPJmSFaNKcbPidB0Uu25DF Xl9KDyczsuhdIRMPoyu9d/lJ/KmLxTDyr4mZIBNxMjRreU/n4V2n4LNOjd9a/SGWe0p4 fgYw== X-Gm-Message-State: AKS2vOx5YReNSNhRYYjOCn3jlIaq8o5H1pJPL4S0nKiP8tEv16l3F0U/ 1rNC249HScA1t4LTlVLEPhVZFcK5WA== X-Received: by 10.202.230.139 with SMTP id d133mr1040357oih.110.1498506794882; Mon, 26 Jun 2017 12:53:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.20.163 with HTTP; Mon, 26 Jun 2017 12:53:14 -0700 (PDT) In-Reply-To: <20170625164115.GD3437@kib.kiev.ua> References: <44028FBF-C8B1-4A69-B798-F4E28CFCD779@pozo.com> <20170625012359.GS3437@kib.kiev.ua> <040BF7D1-2FDF-415B-9A17-ADD608503F14@pozo.com> <20170625020441.GT3437@kib.kiev.ua> <219E6B59-EF90-443D-8B53-4C39C4D6CFBD@pozo.com> <20170625134133.GA3437@kib.kiev.ua> <3FEA16E1-673F-4C58-8362-C1DCC0680698@pozo.com> <20170625145008.GB3437@kib.kiev.ua> <20170625164115.GD3437@kib.kiev.ua> From: Benjamin Kaduk Date: Mon, 26 Jun 2017 14:53:14 -0500 Message-ID: Subject: Re: Current amd64 new error or warning from today's current with ruby r320323 To: Konstantin Belousov Cc: Manfred Antar , FreeBSD Current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2017 19:53:16 -0000 On Sun, Jun 25, 2017 at 11:41 AM, Konstantin Belousov wrote: > No need, I understood why MAP_STACK failed in this case, thanks to the > ktrace log. This is indeed something ruby-specific, or rather, triggered > by ruby special use of libthr. It is not related to the main stack > split. > > It seems that ruby requested very small stack for a new thread, only 5 > pages in size. This size caused the stack gap to be correctly calculated > as having zero size, because the whole stack is allocated by initial grow. > But then there is no space for the guard page, which caused mapping failure > for it, and overall stack mapping failure. > > Try this. > https://people.freebsd.org/~kib/misc/vm2.2.patch > > I managed to get the "Cannot allocate red zone for initial thread" at the start of installworld (doing CC feature detection, IIRC) going from r306247 to r320328. Is it worth trying that patch out? -Ben