[Bug 1792647] Re: fix nodejs test-case failure on s390x and LXD

Ubuntu Foundations Team Bug Bot 1792647 at bugs.launchpad.net
Sat Sep 15 04:17:18 UTC 2018


The attachment "libuv1-path_max_zero_st_size.debdiff" seems to be a
debdiff.  The ubuntu-sponsors team has been subscribed to the bug report
so that they can review and hopefully sponsor the debdiff.  If the
attachment isn't a patch, please remove the "patch" flag from the
attachment, remove the "patch" tag, and if you are member of the
~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issue please contact him.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1792647

Title:
  fix nodejs test-case failure on s390x and LXD

Status in libuv1 package in Ubuntu:
  New

Bug description:
  The Debian patch 'path_max' causes failures when
  readlink'ing symlinks that involve /proc/self
  (and potentially other symlinks in /proc)
  which report st_size == 0.

  It uses st_size as a buffer size for readlink(),
  which then fails with EINVAL.

  This breaks the nodejs test-case test-fs-realpath-pipe.js
  on s390x and LXD containers (which symlink /dev/stdin
  to /proc/self/fd/0 vs. fd/0 as in amd64 non-container):

      $ strace -E LD_LIBRARY_PATH=/usr/local/lib/ -f -e lstat,readlink \
        node test/parallel/test-fs-realpath-pipe.js 

      [pid 17785] lstat("/dev", {st_mode=S_IFDIR|0755, st_size=480, ...}) = 0
      [pid 17786] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
      [pid 17788] lstat("/dev/stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
      [pid 17788] readlink("/dev/stdin", "/proc/self/fd/0", 15) = 15

      [pid 17785] lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
      [pid 17786] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
      [pid 17788] lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
      [pid 17788] readlink("/proc/self", 0x7f2a6c000b40, 0) = -1 EINVAL (Invalid argument)

  I'll submit a patch shortly.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libuv1/+bug/1792647/+subscriptions



More information about the Ubuntu-sponsors mailing list