X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 5B4E7DC0E90 for ; Mon, 22 Feb 2016 06:57:53 +0000 (UTC) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id D5D3EDC0225 for ; Mon, 22 Feb 2016 06:57:52 +0000 (UTC) Received: by mail-lb0-f174.google.com with SMTP id x1so76534911lbj.3 for ; Sun, 21 Feb 2016 22:57:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=902mvUIR9ErSKF8IO8OSmYgZ5RPr1u/U+84mTSg3nnM=; b=VjazluCJTm1ODUcHziOZcQ29poGdvn+xUmoMZqXSOXCDFhEj8ahQabwsPqcxObGsGT HCbxl8Vt9ATbeW9a8PX6Z0nd3wnPYA/XuefDajznPco1oDIcBPSo0kqVeNeRb85SVi9e rLPIDy86lKKYt13AXof7dUqe6ACoRc/W+DqhkyvX5sXAXqtvHKwmWb00OrgyocCZLKTL nQhrWfIRV9746Q7LVZMjpcWyK6XWiBwG3/eeTH5OsiRk+Cy0l+PCchSzQaeiKc9VKrHT XpoE+7vmMBpyzroPquxOHu9oQLfGhRHDGCMAcd025lv9Mg7xaFkUTxWvP9Dr8gXnx7Zf kG4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :in-reply-to:references:mime-version:content-type :content-transfer-encoding; bh=902mvUIR9ErSKF8IO8OSmYgZ5RPr1u/U+84mTSg3nnM=; b=bNX61Tvi9XubkeGzi2MRAZmOzWy5cOYBgApH3T+m0IakTOTVe6wRunlWMeqHOruabr FUQYaX8R1pH1DDG3Zl1pr1pvw9k9SzJpZi+Z001qvIxjJXTRBQRsVVHD+uwosKPsKhi5 iBIm8FJjia97ICdhfMNoCIYqXcUaxcdDB88iAE7RIcMBh4U+N5iYlDnU6Bc2xMuCE4Ns K7yuJEK1DrnMl2Tv17maMUF91vulotuYZomEltE7Cz9umusyl9SoKmmpnAvrOJg4H7ry Litpl1LxFJzq4AtnKUQtCkpDLuTgcXCGNdxKUUeymQzohmPnLHZ68haNPu9FPIpYk11H dPpQ== X-Gm-Message-State: AG10YOSz1FSPwxQlcubVSC83e5MM+ElmTpEND6pxk2jXxmukGeGqGFnaI4wKj4GAGgDm/A== X-Received: by 10.112.126.135 with SMTP id my7mr9727466lbb.104.1456124270816; Sun, 21 Feb 2016 22:57:50 -0800 (PST) Received: from vostro.util.wtbts.net ([2001:1bc8:101:f402:21a:9fff:fe0c:4022]) by smtp.gmail.com with ESMTPSA id nv8sm3058959lbb.7.2016.02.21.22.57.49 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 21 Feb 2016 22:57:50 -0800 (PST) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Mon, 22 Feb 2016 08:57:45 +0200 From: Timo Teras To: Marc Vertes Cc: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH] testing/mongodb: fix bug #5117 where mongo fails at start Message-ID: <20160222085745.4a1ac344@vostro.util.wtbts.net> In-Reply-To: <1456083383-9196-1-git-send-email-marc.vertes@ugrid.net> References: <1456083383-9196-1-git-send-email-marc.vertes@ugrid.net> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.28; x86_64-alpine-linux-musl) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP On Sun, 21 Feb 2016 19:36:23 +0000 Marc Vertes wrote: > The check for recursion has been disabled, as it makes mongo shell > aborting at start. There may be a better fix, perhaps ensuring > that recursion is OK under musl, and maybe increasing stack space ? The problem is like the fact that the app uses pthread_getattr_np to get the main thread's attributes, and then pthread_attr_getstack to figure out the main stack's size. Musl in this case seems to report the actual committed stack size. Basically current stack size rounded up to one or two pages. Where as the application is likely expecting to get the upper bound to which the stack can grow - basically the virtual address space size reserved by the kernel for stack. As alternative it was suggested to use getrlimit(RLIMIT_STACK) for the main thread. I guess this is subject to debate which is the correct thing to do in pthread_attr_getstack for the main thread. Returning the commit size gives you size that you can access and it's guaranteed to not fail. We are currently discussing this on #musl. But perhaps it'd be better to do it on the mailing list. Thank,s Timo --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---