Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

statx not working in a docker container on s390x #29916

Closed
hhorak opened this issue Oct 10, 2019 · 2 comments
Closed

statx not working in a docker container on s390x #29916

hhorak opened this issue Oct 10, 2019 · 2 comments
Labels
linux Issues and PRs related to the Linux platform.

Comments

@hhorak
Copy link

hhorak commented Oct 10, 2019

  • Version: 10.16.3
  • Platform: Linux ibm-z-06.xxx.redhat.com 3.10.0-1062.el7.s390x deps: update openssl to 1.0.1j #1 SMP Thu Jul 18 16:27:07 EDT 2019 s390x s390x s390x GNU/Linux
  • Subsystem: libuv

Originally found on RHEL-7 on s390x and only visible in a docker container, that guards kernel calls more via seccomp. Downstream issue reported here, there are more details available: https://bugzilla.redhat.com/show_bug.cgi?id=1759152

A minimal reproducer with a registry.access.redhat.com/ubi7/s2i-base container image:

#> docker run -ti -u 0 registry.access.redhat.com/ubi7/s2i-base bash

bash-4.2# yum -y update rh-nodejs10-nodejs

bash-4.2# rpm -qa|grep rh-nodejs
rh-nodejs10-runtime-3.2-2.el7.s390x
rh-nodejs10-nodejs-10.16.3-3.el7.s390x
rh-nodejs10-npm-6.9.0-10.16.3.3.el7.s390x

bash-4.2# scl enable rh-nodejs10 -- npm --version
internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module '../lib/utils/unsupported.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at /opt/rh/rh-nodejs10/root/usr/bin/npm:19:21
    at Object.<anonymous> (/opt/rh/rh-nodejs10/root/usr/bin/npm:152:3)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)

Commit that causes this regression in nodejs: 7e5ef4a0e1
Commit that causes this regression in libuv: libuv/libuv@19d8eb0c

@bnoordhuis
Copy link
Member

There was a similar bug report for Android, IIRC: a seccomp filter blocking the statx system call. That's not a node.js or libuv issue however, whoever maintains that seccomp filter needs to fix it.

@bnoordhuis bnoordhuis added the linux Issues and PRs related to the Linux platform. label Oct 10, 2019
@Hakerh400
Copy link
Contributor

@hhorak See nodejs/help#1983

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linux Issues and PRs related to the Linux platform.
Projects
None yet
Development

No branches or pull requests

3 participants