[Date Prev][Date Next]
Re: Problem unexpected failing slapd
----- "Ruud Baart" <firstname.lastname@example.org> wrote:
> Sorry, I think I found a way to start slapd with gdb. The main mistake
> made was using uid openldap. It should be run as root.
> # gdb -q -x /root/gdb.init --args /usr/sbin/slapd -h ldap:///
> ldapi:/// -g openldap -u openldap -f /etc/ldap/slapd.conf -l local5
> handle all nostop
> This way I can modify the start-stop script. With a restart there is
> need for user intervention.
> Now it runs and functions. I assume this is the way Howard Chu
> suggests. Let's wait and see what happens.
> >> Attach to the running slapd with gdb, type
> >> handle all nostop
> >> continue
> >> and let it run. If there's a crash you'll see what happened in
"Attach to" normally means, with an existing process you want to debug, provide the relevant option and the pid number of the process, so the debugging command starts debugging the existing process.
For example, searching for 'attach' in the gdb man page indicates this ...