From nobody Tue Aug 16 04:43:29 2022 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M6JT16zRMz4ZMhX for ; Tue, 16 Aug 2022 04:44:05 +0000 (UTC) (envelope-from ararslan@comcast.net) Received: from resqmta-c1p-024061.sys.comcast.net (resqmta-c1p-024061.sys.comcast.net [IPv6:2001:558:fd00:56::6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4M6JT06zFbz3Tq6 for ; Tue, 16 Aug 2022 04:44:04 +0000 (UTC) (envelope-from ararslan@comcast.net) Received: from resomta-c1p-023413.sys.comcast.net ([96.102.18.230]) by resqmta-c1p-024061.sys.comcast.net with ESMTP id NoLPoReQUmYliNoQootVl1; Tue, 16 Aug 2022 04:43:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1660625038; bh=HbczTSICiwjDup+DryEvj8GIaAyw2wResQdldJIl+xg=; h=Received:Received:From:Content-Type:Mime-Version:Subject: Message-Id:Date:To; b=MHj2YZ/jQf7gJljR7BHpdRL6/tENfyDsFr/s3lE01mVYJ3/rJmpx1+7qUWF+p2MAH ICsKmu4UVteUDllXM1wa0NM2QfJ9znpiNlqVm4FSGhSgGBCteZnOPy288BA723qizt 2BJvi3PQJPuW0NgziJ1Rzt/MjYjHRDLfgD2k0mUmnjXBAbKDo8tK4JgUNyz47h6veP btin0A1wLwdlskFfX1pi44l6LNjkj7uGGKhzXqCZkEvsMDij4uhbtz0huzKuFUZtJR RsEhl+smEsnVjxXlHQF5mEhLq+NHaFIaV8w0aL6eTBeMeA/JHzXYKsmO9lhwY2sLyd vwrm+TRvn8pgQ== Received: from smtpclient.apple ([71.231.182.61]) by resomta-c1p-023413.sys.comcast.net with ESMTPA id NoQNoiJjMk1I5NoQToezle; Tue, 16 Aug 2022 04:43:37 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehfedgkeelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuvehomhgtrghsthdqtfgvshhipdfqfgfvpdfpqffurfetoffkrfenuceurghilhhouhhtmecufedtudenucfhohhrghgvugcujffvvffrufculdegtddmnecujfgurhephfgtggfukfffvffosegrtdhmrehhtddvnecuhfhrohhmpeetlhgvgicutehrshhlrghnuceorghrrghrshhlrghnsegtohhmtggrshhtrdhnvghtqeenucggtffrrghtthgvrhhnpedtudeuleegieeihfdvveejkeeuieejvefhlefgtdfgkeejvdeutedvgeeiudetffenucffohhmrghinheptghouggvtghovhdrtghomhdptghirhhruhhsqdgtihdrtghomhdptghouggvtghovhdrihhonecukfhppeejuddrvdefuddrudekvddriedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghlohepshhmthhptghlihgvnhhtrdgrphhplhgvpdhinhgvthepjedurddvfedurddukedvrdeiuddpmhgrihhlfhhrohhmpegrrhgrrhhslhgrnhestghomhgtrghsthdrnhgvthdpnhgspghrtghpthhtohepuddprhgtphhtthhopehfrhgvvggsshguqdhhrggtkhgvrhhssehfrhgvvggsshgurdhorhhg X-Xfinity-VMeta: sc=40.00;st=legit From: Alex Arslan Content-Type: multipart/alternative; boundary="Apple-Mail=_A0DC7288-A16A-495D-BF8A-B0588787FBDF" List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Hang in futex wait with a Node.js binary in Linuxulator Message-Id: <16777BDC-22D3-4ACC-95E8-95933D587341@comcast.net> Date: Mon, 15 Aug 2022 21:43:29 -0700 To: "freebsd-hackers@freebsd.org" X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4M6JT06zFbz3Tq6 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=comcast.net header.s=20190202a header.b="MHj2YZ/j"; dmarc=pass (policy=none) header.from=comcast.net; spf=pass (mx1.freebsd.org: domain of ararslan@comcast.net designates 2001:558:fd00:56::6 as permitted sender) smtp.mailfrom=ararslan@comcast.net X-Spamd-Result: default: False [0.99 / 15.00]; HFILTER_HELO_5(3.00)[resqmta-c1p-024061.sys.comcast.net]; URI_COUNT_ODD(1.00)[11]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.994]; DMARC_POLICY_ALLOW(-0.50)[comcast.net,none]; MV_CASE(0.50)[]; NEURAL_HAM_MEDIUM(-0.41)[-0.415]; R_DKIM_ALLOW(-0.20)[comcast.net:s=20190202a]; R_SPF_ALLOW(-0.20)[+ip6:2001:558:fd00:56::/64]; RCVD_IN_DNSWL_LOW(-0.10)[96.102.18.230:received]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[comcast.net]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[comcast.net:+]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[comcast.net]; DWL_DNSWL_NONE(0.00)[comcast.net:dkim]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_EQ_ADDR_ALL(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:7922, ipnet:2001:558::/29, country:US]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_A0DC7288-A16A-495D-BF8A-B0588787FBDF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi folks, I'm trying to run the Linux binary for Codecov's official coverage = uploader (https://docs.codecov.com/docs/codecov-uploader = ) on FreeBSD via = Linuxulator. It's a statically compiled Node.js application built with = the Node.js package called pkg. The application's own verbose logging = shows that it completes, but the process just hangs indefinitely, using = 0 CPU and not letting go of its memory. With devel/linux-c7-strace, it = appears it's getting stuck on: futex(0x8427f1b70, FUTEX_WAIT_PRIVATE, 2, NULL Too stuck to even finish printing the argument list or closing = parenthesis, apparently! A Cirrus CI build log where I set the process = to terminate via timeout is available at = https://cirrus-ci.com/task/6610515924353024 = but it's actually = reproducible for me locally with just curl -O https://uploader.codecov.io/latest/linux/codecov chmod +x codecov ./codecov -h Does anyone have any advice for how to debug this further? Thanks, Alex= --Apple-Mail=_A0DC7288-A16A-495D-BF8A-B0588787FBDF Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hi = folks,

I'm trying to = run the Linux binary for Codecov's official coverage uploader (https://docs.codecov.com/docs/codecov-uploader) on = FreeBSD via Linuxulator. It's a statically compiled Node.js application = built with the Node.js package called pkg. The application's own verbose = logging shows that it completes, but the process just hangs = indefinitely, using 0 CPU and not letting go of its memory. With = devel/linux-c7-strace, it appears it's getting stuck on:

futex(0x8427f1b70, = FUTEX_WAIT_PRIVATE, 2, NULL

Too stuck to even finish printing the argument list or = closing parenthesis, apparently! A Cirrus CI build log where I set the = process to terminate via timeout is available at https://cirrus-ci.com/task/6610515924353024 but it's = actually reproducible for me locally with just

chmod +x codecov
./codecov -h

Does anyone have any advice for how to debug this = further?

Thanks,
Alex
= --Apple-Mail=_A0DC7288-A16A-495D-BF8A-B0588787FBDF--