Date: Mon, 15 Aug 2022 21:43:29 -0700 From: Alex Arslan <ararslan@comcast.net> To: "freebsd-hackers@freebsd.org" <freebsd-hackers@FreeBSD.org> Subject: Hang in futex wait with a Node.js binary in Linuxulator Message-ID: <16777BDC-22D3-4ACC-95E8-95933D587341@comcast.net>
next in thread | raw e-mail | index | archive | help
--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 = <ihttps://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 = <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 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">Hi = folks,<div class=3D""><br class=3D""></div><div class=3D"">I'm trying to = run the Linux binary for Codecov's official coverage uploader (<a = href=3D"Ihttps://docs.codecov.com/docs/codecov-uploader" = class=3D"">https://docs.codecov.com/docs/codecov-uploader</a>) 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:</div><div = class=3D""><br class=3D""></div><div class=3D"">futex(0x8427f1b70, = FUTEX_WAIT_PRIVATE, 2, NULL</div><div class=3D""><br class=3D""></div><div= class=3D"">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 <a = href=3D"https://cirrus-ci.com/task/6610515924353024" = class=3D"">https://cirrus-ci.com/task/6610515924353024</a> but it's = actually reproducible for me locally with just</div><div class=3D""><br = class=3D""></div><div class=3D""><span class=3D"js-code-nav-pass = blob-code-inner blob-code-marker" data-code-marker=3D"+">curl = -O <span class=3D"pl-s"><a = href=3D"https://uploader.codecov.io/latest/linux/codecov" = class=3D"">https://uploader.codecov.io/latest/linux/codecov</a></span></sp= an></div><div class=3D""><span class=3D"js-code-nav-pass = blob-code-inner blob-code-marker" data-code-marker=3D"+"><span = class=3D"pl-s">chmod +x codecov</span></span></div><div = class=3D"">./codecov -h</div><div class=3D""><br class=3D""></div><div = class=3D"">Does anyone have any advice for how to debug this = further?</div><div class=3D""><br class=3D""></div><div = class=3D"">Thanks,</div><div class=3D"">Alex</div></body></html>= --Apple-Mail=_A0DC7288-A16A-495D-BF8A-B0588787FBDF--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?16777BDC-22D3-4ACC-95E8-95933D587341>