[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Problem unexpected failing slapd

----- "Ruud Baart" <r.j.baart@prompt.nl> wrote:

> Sorry, I think I found a way to start slapd with gdb. The main mistake
> I 
> 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
> gdb.init:
>      handle all nostop
>      run
>      quit
> This way I can modify the start-stop script. With a restart there is
> no 
> 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
> gdb.

"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 ...