Full_Name: Stef walter Version: git master OS: Fedora 19 URL: ftp://ftp.openldap.org/incoming/stef-walter-cldap-regression-130912.patch Submission from: (NULL) (46.5.2.70)
I get an assertion with today's git master when using ldapsearch with a cldap URL. openldap has been compiled with -DLDAP_CONNECTIONLESS
$ ldapsearch -d -1 -LL -H 'cldap://10.34.37.22' -b '' -s base '(&(DnsDomain=ad.baseos.qe)(NtVer=\06\00\00\00))' NetLogon ldap_url_parse_ext(cldap://10.34.37.22) ldap_create ldap_url_parse_ext(cldap://10.34.37.22:389/??base) ldap_simple_bind ldap_sasl_bind ldap_send_initial_request ldap_new_connection 1 1 0 ldap_int_open_connection ldap_connect_to_host: UDP 10.34.37.22:389 ldap_new_socket: 7 ldap_prepare_socket: 7 ldap_connect_to_host: Trying 10.34.37.22:389 ldap_open_defconn: successful ldap_parse_result ldapsearch: error.c:255: ldap_parse_result: Assertion `r != ((void *)0)' failed.
Program received signal SIGABRT, Aborted. 0x000000322e835a19 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 56 return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig); (gdb) bt #0 0x000000322e835a19 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 #1 0x000000322e837128 in __GI_abort () at abort.c:90 #2 0x000000322e82e986 in __assert_fail_base ( fmt=0x322e97dda8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x489ded "r != ((void *)0)", file=file@entry=0x489d2c "error.c", line=line@entry=255, function=function@entry=0x489e20 <__PRETTY_FUNCTION__.7860> "ldap_parse_result") at assert.c:92 #3 0x000000322e82ea32 in __GI___assert_fail ( assertion=0x489ded "r != ((void *)0)", file=0x489d2c "error.c", line=255, function=0x489e20 <__PRETTY_FUNCTION__.7860> "ldap_parse_result") at assert.c:101 #4 0x0000000000421a96 in ldap_parse_result (ld=0x6c7c90, r=0x0, errcodep=0x7fffffff914c, matcheddnp=0x7fffffff9140, errmsgp=0x7fffffff9138, referralsp=0x7fffffff9130, serverctrls=0x7fffffff9128, freeit=1) at error.c:255 #5 0x0000000000412093 in tool_bind (ld=0x6c7c90) at common.c:1623 #6 0x0000000000407f01 in main (argc=12, argv=0x7fffffffd3f8) at ldapsearch.c:903