[Bug 2056291] Re: makedb hangs when a tempfile already exists

Launchpad Bug Tracker 2056291 at bugs.launchpad.net
Fri Nov 29 02:40:18 UTC 2024


Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: libnss-db (Ubuntu)
       Status: New => Confirmed

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

Title:
  makedb hangs when a tempfile already exists

Status in libnss-db package in Ubuntu:
  Confirmed

Bug description:
  release: focal
  libnss-db: 2.2.3pre1-6build6

  We had an event where running makedb on a group file or password file hanged/did not succeed. Using strace, we found out the temp file already existed and it was trying in a loop:
    openat(AT_FDCWD, "__db.group.db.t", O_RDWR|O_CREAT|O_EXCL, 0664) = -1 EEXIST (File exists)
    select(0, NULL, NULL, NULL, {tv_sec=1, tv_usec=1}) = 0 (Timeout)
    stat("group.db.t", 0x7ffee4bafce0)     = -1 ENOENT (No such file or directory)
    stat("__db.group.db.t", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0

  
  Also happened for __db.passwd.db.t file on other hosts with the same version/release.
  Removing the temp file solves it.

  To reproduce, create a valid passwd.tdb file, then:
  $ touch __db.passwd.db.t
  $ makedb passwd.tdb -o  passwd.db.t

  Thank you

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-db/+bug/2056291/+subscriptions




More information about the foundations-bugs mailing list