Public bug reported:
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
** Affects: libnss-db (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2056291
Title:
makedb hangs when a tempfile already exists
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnss-db/+bug/2056291/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs