[Pkg-openldap-devel] Bug#380620: slapd hangs on upgrade

maximilian attems maks at sternwelten.at
Mon Jul 31 11:57:33 UTC 2006


Package: slapd
Version: 2.3.24-2
Severity: important

slapd tries to adduser while slapd is down.
because restarting slapd failed.
not sure if that's a soo good idea:

Setting up slapd (2.3.24-2) ...
Installing new version of config file /etc/default/slapd ...
Installing new version of config file /etc/init.d/slapd ...
Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.3.24-1... done.
Starting OpenLDAP: slapd - failed.
The operation failed but no output was produced. For hints on what went
wrong please refer to the system's logfiles (e.g. /var/log/syslog) or
try running the daemon in Debug mode like via "slapd -d 16383" (warning:
this will create copious output).

Below, you can find the command line options used by this script to 
run slapd and slurpd. Do not forget to specify those options if you
want to look to debugging output:
  slapd -g openldap -u openldap 
invoke-rc.d: initscript slapd, action "start" failed.
dpkg: error processing slapd (--configure):
 subprocess post-installation script returned error exit status 1

Errors were encountered while processing:
 slapd


-- snipp strace of hanging adduser invocation
rocess 3414 attached - interrupt to quit
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 3418
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, 0xaff7918c, WNOHANG)        = -1 ECHILD (No child processes)
sigreturn()                             = ? (mask now [])
rt_sigaction(SIGINT, {SIG_DFL}, {0x807a180, [], 0}, 8) = 0
pipe([4, 5])                            = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xa7ddf928) = 4538
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x807b8b0, [], 0}, {0x807b8b0, [], 0}, 8) = 0
close(5)                                = 0
read(4, "", 128)                        = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 2}], WNOHANG) = 4538
waitpid(-1, 0xaff78ffc, WNOHANG)        = -1 ECHILD (No child processes)
sigreturn()                             = ? (mask now [])
close(4)                                = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x807a180, [], 0}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x807a180, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
fcntl64(1, F_GETFD)                     = 0
fcntl64(1, F_DUPFD, 10)                 = 10
fcntl64(1, F_GETFD)                     = 0
fcntl64(10, F_SETFD, FD_CLOEXEC)        = 0
dup2(2, 1)                              = 1
fcntl64(2, F_GETFD)                     = 0
write(1, "  Creating new user openldap ", 29  Creating new user openldap ) = 29
dup2(10, 1)                             = 1
fcntl64(10, F_GETFD)                    = 0x1 (flags FD_CLOEXEC)
close(10)                               = 0
stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/local/sbin/adduser", 0xaff78d98) = -1 ENOENT (No such file or directory)
stat64("/usr/local/bin/adduser", 0xaff78d98) = -1 ENOENT (No such file or directory)
stat64("/usr/sbin/adduser", {st_mode=S_IFREG|0755, st_size=31888, ...}) = 0
stat64("/usr/sbin/adduser", {st_mode=S_IFREG|0755, st_size=31888, ...}) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [INT CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xa7ddf928) = 4552
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x807a180, [], 0}, {SIG_DFL}, 8) = 0
waitpid(-1, 

--
maks




More information about the Pkg-openldap-devel mailing list