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

Re: slapd-ldap killed by a broken client (ITS#4117)



On Ven 4 novembre 2005 19:17, Kurt@OpenLDAP.org wrote:
> Before running slapd in the gdb, you should tell the
> gdb to pass all (excepting those gdb uses) to the
> program without stopping.  That is,
>         handle all pass nostop
> You might also want to avoid printing certain signals,
> that is,
>         handle SIGHUP noprint
>         handle SIGPIPE noprint

I tried that, but I didn't get any really useful information:

slapd: io.c:210: ber_flush: Assertion `( (sb)->sb_opts.lbo_valid == 0x3 )'
failed.

Program received signal SIGABRT, Aborted.
Couldn't get registers: No such process.
(gdb) bt
Cannot fetch general-purpose registers for thread -1250980944: generic error

So I tried to dump a core and I get one:

gdb openldap-2.2.28/servers/slapd/slapd core.16213
#0  0x080cd835 in ldap_int_select (ld=0x8a1d720, timeout=0xb6c95690)
    at os-ip.c:747
747     os-ip.c: No such file or directory.
        in os-ip.c
(gdb) bt
#0  0x080cd835 in ldap_int_select (ld=0x8a1d720, timeout=0xb6c95690)
    at os-ip.c:747
#1  0x080c014f in wait4msg (ld=0x8a1d720, msgid=118, all=0,
    timeout=0xb6c95768, result=0xb6c95734) at result.c:331
#2  0x080bfdeb in ldap_result (ld=0x8a1d720, msgid=118, all=0,
    timeout=0xb6c95768, result=0xb6c95734) at result.c:126
#3  0x0809ccb5 in ldap_back_search (op=0x8a21ca8, rs=0xb6c96870)
    at search.c:181
#4  0x08058b6b in do_search (op=0x8a21ca8, rs=0xb6c96870) at search.c:412
#5  0x0805745a in connection_operation (ctx=0xb6c968f0, arg_v=0x8a21ca8)
    at connection.c:1079
#6  0x080befab in ldap_int_thread_pool_wrapper (xpool=0x89cf3f8) at
tpool.c:467
#7  0x00206de8 in start_thread () from /lib/tls/libpthread.so.0
#8  0x002ee93a in clone () from /lib/tls/libc.so.6

I could send you the core file if you think it is necessary.

Raphael Ouazana.