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

Re: ITS#3218



> Here's my first shot at gdb and bt:
>
> (gdb) run -d 0
> Starting program: /root/openldap-2.2.13/servers/slapd/slapd -d 0
> [Thread debugging using libthread_db enabled]
> [New Thread -1220292480 (LWP 26590)]
> [New Thread -1223234640 (LWP 26597)]
> [New Thread -1227433040 (LWP 26690)]
> slapd: schema_init.c:1486: telephoneNumberNormalize: Assertion
> `val->bv_len'
> failed.

This is a bug indeed, anyway.  Apparently, the remote server
is returning invalid per syntax values, and the proxy (the
ldap backend) is not validating data before normalizing it.
I'm preparing a fix.

p.

>
> Program received signal SIGABRT, Aborted.
> [Switching to Thread -1227433040 (LWP 26690)]
> 0xb7496c0f in raise () from /lib/tls/libc.so.6
> (gdb) bt
> #0  0xb7496c0f in raise () from /lib/tls/libc.so.6
> #1  0xb7498415 in abort () from /lib/tls/libc.so.6
> #2  0xb7490539 in __assert_fail () from /lib/tls/libc.so.6
> #3  0x08077c8d in telephoneNumberNormalize (usage=2, syntax=0x80ef5f0,
>     mr=0x80f1a60, val=0x8134308, normalized=0x8134330, ctx=0x0)
>     at schema_init.c:1502
> #4  0x0809187f in ldap_build_entry (op=0xb6d6c660, e=0x0, ent=0xb6d6c770,
>     bdn=0xb6d6c748, flags=1) at search.c:496
> #5  0x08091474 in ldap_back_search (op=0x81333b0, rs=0xb6d6d880)
>     at search.c:185
> #6  0x08057303 in do_search (op=0x81333b0, rs=0xb6d6d880) at search.c:400
> #7  0x08055d0d in connection_operation (ctx=0xb6d6d900, arg_v=0x81333b0)
>     at connection.c:1042
> #8  0x080a773b in ldap_int_thread_pool_wrapper (xpool=0x80f8b90) at
> tpool.c:467
> #9  0xb75abdec in start_thread () from /lib/tls/libpthread.so.0
> #10 0xb754ae8a in clone () from /lib/tls/libc.so.6
> (gdb) quit
>


-- 
Pierangelo Masarati
mailto:pierangelo.masarati@sys-net.it


    SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497