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 3A8F1DC5D95 for ; Tue, 23 Feb 2016 13:07:50 +0000 (UTC) Received: from mail-lf0-f43.google.com (mail-lf0-f43.google.com [209.85.215.43]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id B9B17DC2BCC for ; Tue, 23 Feb 2016 13:07:48 +0000 (UTC) Received: by mail-lf0-f43.google.com with SMTP id m1so115734704lfg.0 for ; Tue, 23 Feb 2016 05:07:48 -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=eVMEe9wu5mdrSL4cQGIqSJymi/5xc74g0FGEB38VYA0=; b=hh/FRXPsPY1qbO0GmuUaFbPO6N5KmjfsAuxc248LikxgmAUIaYTfqfx9dmRO8sy7Jd L04twldoi2R9fl4IUtcZpV+pmp9oB8qjn2EygdRTdlmlu54TV8lfdnnwSvW2rZNOdm9l u5eFR/rhg6hC1Q14uEGgPD9R7eupv3mO47krP6aJx8lUlHxrx2k0LtKNIwmWjhUYyjG4 lsnS41lT/In+u74qI+HTh3Aqf7fHODpeFN8k1Jo2uPQDJuHRQOu2+vpscAKO+dZnvOsk yL77t8sB2SfcRdbKvNOrWTODQH7NhBLnJ86iw/1nTTfln/yhPFOnHnb7GzyRpw5W4h+Q kf9Q== 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=eVMEe9wu5mdrSL4cQGIqSJymi/5xc74g0FGEB38VYA0=; b=j2+ruB/cqDamn1lsmN0HW2gtIPcN099n3R2xKDwvgB1l1jv3ZOVbgK6BMN6WP0emP4 fwAh2fpRnFJjLiHewgXC/383pTY+/6IkjsHzOdE16TmULeTCJqMl/bOGnexleGwhKO4K xEcMEKfTBHedgsupq4W/WRduxrnnOi6Drd/xcHtAmoypc2k1yKJRsBaglOQfOyPJWgmZ GK2jNY9WbXuE4vj6wsSvUh83mlFL31UVxWuX10B2A+iqgoK4RWq3As8Unchc0z8ad6G4 1+is2guV5CplXufUsowxmMOkP3Eher8ibWdiXYC4ECMUhFKsIPkVqQbkGcHnHbt9ob2n sJaw== X-Gm-Message-State: AG10YOR8L+JEfJc3LgDZt2IrZ1nvrg0W8jnQa2HLyQiD0bygnzeJkINQbChts9HBj+xmug== X-Received: by 10.25.18.25 with SMTP id h25mr9807469lfi.165.1456232866549; Tue, 23 Feb 2016 05:07:46 -0800 (PST) Received: from vostro.util.wtbts.net ([2001:1bc8:101:f402:21a:9fff:fe0c:4022]) by smtp.gmail.com with ESMTPSA id rt10sm3472151lbb.35.2016.02.23.05.07.45 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 23 Feb 2016 05:07:46 -0800 (PST) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Tue, 23 Feb 2016 15:07:43 +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: <20160223150743.33e55efa@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: quoted-printable 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 ? Could you try if the following works instead: =46rom e9cbe2a20b5d4b7a951ba41236feb0523241c3ea Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Timo=3D20Ter=3DC3=3DA4s?=3D Date: Tue, 23 Feb 2016 13:01:26 +0000 Subject: [PATCH] testing/mongodb: use getrlimit() to get main process stack size --- testing/mongodb/APKBUILD | 6 +++++- testing/mongodb/musl-process-stack-size.patch | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 testing/mongodb/musl-process-stack-size.patch diff --git a/testing/mongodb/APKBUILD b/testing/mongodb/APKBUILD index 9911519..a177e91 100644 --- a/testing/mongodb/APKBUILD +++ b/testing/mongodb/APKBUILD @@ -2,7 +2,7 @@ =20 pkgname=3Dmongodb pkgver=3D3.2.1 -pkgrel=3D1 +pkgrel=3D2 pkgdesc=3D'A high-performance, open source, schema-free document-oriented = database' url=3D'http://www.mongodb.org' arch=3D'x86_64' @@ -18,6 +18,7 @@ source=3D"http://downloads.mongodb.org/src/mongodb-src-r$= {pkgver}.tar.gz 40-fix-elf-native-class.patch backtrace.patch fix-asio-strerror_r.patch + musl-process-stack-size.patch boost160.patch =20 mongodb.confd @@ -95,6 +96,7 @@ md5sums=3D"a9f150f8bead9e8afd3ab28492167073 mongodb-src-= r3.2.1.tar.gz 04a348397be8ca7471d404056d8a1490 40-fix-elf-native-class.patch 86a988b5d4402227d177b8a1167008e8 backtrace.patch cd0833592e3a23e729ebd71eb756318c fix-asio-strerror_r.patch +4a0b1b35ee0c6a5e5c35aee0097f4a07 musl-process-stack-size.patch 1df24dc2aa6b8f4c6da22f097a921ebb boost160.patch 7d2f94bed7bfacd32fcd52dfd931f077 mongodb.confd 792a0b53b3e843cf14176c5beb8cdfe1 mongodb.initd @@ -106,6 +108,7 @@ sha256sums=3D"50431a3ba5ab68bd0bed4a157a8528ca27753a63c= f101f13135255e4e9d42f15 mo 3a863660113d29728d7a852b3fba73926697b496848f8ccc4d8e73e6614cfdfc 40-fix-e= lf-native-class.patch 300d9f6b819730de54018d4b418eb7f921ba9c83fad4958a040544b076160848 backtrac= e.patch ec6d404221f02706ef2e52e00e414e98666dcc3606e78c9b3d33dfbd42a1eae7 fix-asio= -strerror_r.patch +a266b1b2397f069fedb2427a1989a30ed9f63a300ba8726ec50609e93920f76d musl-pro= cess-stack-size.patch 0e9da35f4303e53daf51e78961c517895f2d12f4fa49298f01e1665e15246d73 boost160= .patch a4ca29c577428c02cd0b0a8b46756df5f53a05519c9d13c270533cf99b9b819d mongodb.= confd 7e39fbd4dc18dba21c8767931683f4795e58e0e91b9f9a5842539923ded453c9 mongodb.= initd @@ -117,6 +120,7 @@ b9fdacb273d5a4e1e60735846b262287f84ca6cbded9393d182f691= 58d3162a50cae5d834f76860d 56db8f43afc94713ac65b174189e2dd903b5e1eff0b65f1bdac159e52ad4de6606c449865d= 73bd47bffad6a8fc339777e2b11395596e9a476867d94a219c7925 40-fix-elf-native-c= lass.patch 7d097f497cb910c9cb81086cd8c222e43456d1a6de4adfe3e97a4d99add454279350fdeb73= 05dab84b3deca04afd824036d4065ee0fb8cdd8c03e96d98ee86af backtrace.patch f829b1ad542db3ee776d444243b8b47ab4e48a7386d9b199d7b1adafd31556cf173a5683b7= 8ee735d6a69999ad9af5ad152fde955bbe8865f7910718991ce97c fix-asio-strerror_r= .patch +e8f41ea4df62b6588cdea64e1f57553e04c3c0b603dac68b49b222bc9fa8c7b6f6bc1654b5= 033318ad3ec73632848dfa0f03d33b3c8d8b523ef0145e461364b2 musl-process-stack-= size.patch 385c82875174caae433a3b381eb10f98a6fed0c8943788ddefff1de80a898e480bdbbf094a= 7783285cf2ae11ce3fc6878e57d58183d05be2f0837b206aaa4da6 boost160.patch 9bcd870742c31bf25f34188ddc3c414de1103e9860dea9f54eee276b89bc2cf1226abab174= 9c5cda6a6fb0880e541373754e5e83d63cc7189d4b9c274fd555c3 mongodb.confd 2cb295ac0eb44acb4533c86d6d0988d5f760361a43cff7845713f3e2cf0e37023d23790a29= 26c613bf2b0668060c0b68d59000db52daaacd8af10e701a8b4192 mongodb.initd diff --git a/testing/mongodb/musl-process-stack-size.patch b/testing/mongod= b/musl-process-stack-size.patch new file mode 100644 index 0000000..dd45abb --- /dev/null +++ b/testing/mongodb/musl-process-stack-size.patch @@ -0,0 +1,22 @@ +--- mongodb-src-r3.2.1.orig/src/mongo/platform/stack_locator_pthread_getat= tr_np.cpp ++++ mongodb-src-r3.2.1/src/mongo/platform/stack_locator_pthread_getattr_np= .cpp +@@ -31,6 +31,7 @@ + #include "mongo/platform/stack_locator.h" +=20 + #include ++#include +=20 + #include "mongo/util/assert_util.h" + #include "mongo/util/scopeguard.h" +@@ -52,6 +53,11 @@ + invariant(result =3D=3D 0); + invariant(base !=3D nullptr); + invariant(size !=3D 0); ++ ++ struct rlimit rl; ++ ++ invariant(getrlimit(RLIMIT_STACK, &rl) =3D=3D 0); ++ size =3D rl.rlim_cur ? : 2 * 1024 * 1024; +=20 + // TODO: Assumes a downward growing stack. Note here that + // getstack returns the stack *base*, being the bottom of the --=20 2.7.1 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---