[Bug 1746995] Re: regression in 2.23-0ubuntu10: rsync in glusterfs's georeplication fails

Mrten 1746995 at bugs.launchpad.net
Mon Feb 5 13:30:31 UTC 2018


I do now:

11051 geteuid()                         = 0
11051 getegid()                         = 0
11051 umask(0)                          = 022
11051 umask(022)                        = 0
11051 brk(NULL)                         = 0x55f0d0a14000
11051 brk(0x55f0d0a35000)               = 0x55f0d0a35000
11051 open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
11051 fstat(3, {st_mode=S_IFREG|0644, st_size=2276256, ...}) = 0
11051 mmap(NULL, 2276256, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f43b7a35000
11051 close(3)                          = 0
11051 open("/usr/etc/popt", O_RDONLY)   = -1 ENOENT (No such file or directory)
11051 open("/etc/popt", O_RDONLY)       = -1 ENOENT (No such file or directory)
11051 stat("/etc/popt.d", 0x7ffcb94d9230) = -1 ENOENT (No such file or directory)
11051 rt_sigaction(SIGINT, {0x55f0cffb8ac0, [], SA_RESTORER|SA_NOCLDSTOP, 0x7f43b7c964b0}, NULL, 8) = 0
11051 rt_sigaction(SIGHUP, {0x55f0cffb8ac0, [], SA_RESTORER|SA_NOCLDSTOP, 0x7f43b7c964b0}, NULL, 8) = 0
11051 rt_sigaction(SIGTERM, {0x55f0cffb8ac0, [], SA_RESTORER|SA_NOCLDSTOP, 0x7f43b7c964b0}, NULL, 8) = 0
11051 rt_sigprocmask(SIG_UNBLOCK, [HUP INT USR1 USR2 TERM CHLD], NULL, 8) = 0
11051 rt_sigaction(SIGPIPE, {SIG_IGN, [], SA_RESTORER|SA_NOCLDSTOP, 0x7f43b7c964b0}, NULL, 8) = 0
11051 rt_sigaction(SIGXFSZ, {SIG_IGN, [], SA_RESTORER|SA_NOCLDSTOP, 0x7f43b7c964b0}, NULL, 8) = 0
11051 getcwd("(unreachable)/", 4095)    = 15
11051 lstat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
11051 lstat("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
11051 openat(AT_FDCWD, "..", O_RDONLY|O_CLOEXEC) = 3
11051 fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
11051 fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
11051 fcntl(3, F_GETFL)                 = 0x8000 (flags O_RDONLY|O_LARGEFILE)
11051 fcntl(3, F_SETFD, FD_CLOEXEC)     = 0
11051 mmap(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f43b883c000
11051 getdents(3, /* 11 entries */, 131072) = 376
11051 getdents(3, /* 0 entries */, 131072) = 0
11051 lseek(3, 0, SEEK_SET)             = 0
11051 getdents(3, /* 11 entries */, 131072) = 376
11051 newfstatat(3, ".trashcan", {st_mode=S_IFDIR|0755, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0
11051 newfstatat(3, "acme", {st_mode=S_IFDIR|0755, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0
11051 newfstatat(3, "web", {st_mode=S_IFDIR|0777, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0
11051 newfstatat(3, "XXX", {st_mode=S_IFDIR|0755, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0
11051 newfstatat(3, "glbackup", {st_mode=S_IFDIR, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0
11051 getdents(3, /* 0 entries */, 131072) = 0
11051 munmap(0x7f43b883c000, 135168)    = 0
11051 close(3)                          = 0
11051 write(2, "rsync: getcwd(): No such file or directory (2)", 46) = 46

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1746995

Title:
  regression in 2.23-0ubuntu10: rsync in glusterfs's georeplication
  fails

Status in glibc package in Ubuntu:
  New

Bug description:
  Since somewhere in the Jan 14-18 range my glusterfs georeplication
  reports Faulty. Georeplication uses rsync internally, and tracking
  this this down leads to an exit code 3 out of rsync.

  I have no stacktraces myself, but I found this report about the same
  problem:

  https://www.spinics.net/lists/gluster-users/msg33568.html

  with traces:

  
  strace rsync :

  30743 23:34:47 newfstatat(3, "6737", {st_mode=S_IFDIR|0755, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0
  30743 23:34:47 newfstatat(3, "6741", {st_mode=S_IFDIR|0755, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0
  30743 23:34:47 getdents(3, /* 0 entries */, 131072) = 0
  30743 23:34:47 munmap(0x7fa4feae7000, 135168) = 0
  30743 23:34:47 close(3)                 = 0
  30743 23:34:47 write(2, "rsync: getcwd(): No such file or directory (2)", 46) = 46
  30743 23:34:47 write(2, "\n", 1)        = 1
  30743 23:34:47 rt_sigaction(SIGUSR1, {SIG_IGN, [], SA_RESTORER, 0x7fa4fdf404b0}, NULL, 8) = 0
  30743 23:34:47 rt_sigaction(SIGUSR2, {SIG_IGN, [], SA_RESTORER, 0x7fa4fdf404b0}, NULL, 8) = 0
  30743 23:34:47 write(2, "rsync error: errors selecting input/output files, dirs (code 3) at util.c(1056) [Receiver=3.1.1]", 96) = 96
  30743 23:34:47 write(2, "\n", 1)        = 1
  30743 23:34:47 exit_group(3)            = ?
  30743 23:34:47 +++ exited with 3 +++

  
  The Changelog of glibc mentions that getcwd has been changed:

    * SECURITY UPDATE: Buffer underflow in realpath()
      - debian/patches/any/cvs-make-getcwd-fail-if-path-is-no-absolute.diff:
        Make getcwd(3) fail if it cannot obtain an absolute path
      - CVE-2018-1000001

  and downgrading glibc to (2.23-0ubuntu3) indeed fixes my
  georeplication problem. 0ubuntu3 is the latest version that is
  available in the repositories, other than 0ubuntu10.

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



More information about the foundations-bugs mailing list