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

Assertion failed in ad.c




Hi.
I'm testing OpenLDAP 2.0 Beta back-ldap server,
pointing it to an OpenLDAP-1.2.11 server. When I do a search,
I get a "slapd: ad.c:99: slap_bv2ad: Assertion `*ad == ((void *)0)'
failed."
I checked the current version of the sources I'm using, it is 1.13.2.3
from
the devel branch of the CVS tree.

Looking at the code, I see the assertion is marked as TEMPORARY.

Here is my (stripped) slapd.conf:

include
/home/ando/openldap-2.0-beta/servers/slapd/schema/core.schema
database        ldap
suffix          "o=Banca Commerciale Italiana,c=IT"
suffix          ""
uri             ldap://ldap-bci.bci.it/

Here is a log of slapd; I included the schema/core.schema stuff.
As you can see, the entry is correctly retrieved, but it fails some
check in slapd. Any suggestions? Thanx in advance.
Pierangelo <ando@sys-net.it>

slapd starting
daemon: added 6r
daemon: select: listen=6 active_threads=0 tvp=NULL
daemon: activity on 1 descriptors
daemon: new connection on 9
daemon: conn=0 fd=9 connection from IP=192.168.252.3:1681
(IP=192.168.252.11:3890) accepted.
daemon: added 9r
daemon: activity on:
daemon: select: listen=6 active_threads=0 tvp=NULL
daemon: activity on 1 descriptors
daemon: activity on: 9r
daemon: read activity on 9
connection_get(9)
connection_get(9): got connid=0
connection_read(9): checking for input on id=0
ber_get_next
sockbuf_read: want=1, got=1
         0
sockbuf_read: want=1, got=1
        0c
sockbuf_read: want=12, got=12
        02 01 01  ` 07 02 01 02 04 00 80 00
ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf 0x80c42a8, ptr 0x80c42a8, end 0x80c42b4
        02 01 01  ` 07 02 01 02 04 00 80 00
ber_get_next
do_bind
sockbuf_read: want=1 error=Resource temporarily unavailable
ber_get_next on fd 9 failed errno=11 (Resource temporarily unavailable)
ber_scanf fmt ({iat) ber:
daemon: select: listen=6 active_threads=1 tvp=NULL
ber_dump: buf 0x80c42a8, ptr 0x80c42ab, end 0x80c42b4
         ` 07 02 01 02 04 00 80 00
ber_scanf fmt (o}) ber:
ber_dump: buf 0x80c42a8, ptr 0x80c42b2, end 0x80c42b4
        80 00
do_bind: version=2 dn="" method=128
conn=0 op=0 BIND dn="" method=128
send_ldap_result: conn=0 op=0 p=2
send_ldap_result: 0::
send_ldap_response: msgid=1 tag=97 err=0
ber_flush: 14 bytes to sd 9
         0 0c 02 01 01  a 07 0a 01 00 04 00 04 00
sockbuf_write: want=14, written=14
         0 0c 02 01 01  a 07 0a 01 00 04 00 04 00
conn=0 op=0 RESULT tag=97 err=0 text=
do_bind: v2 anonymous bind
daemon: activity on 1 descriptors
daemon: activity on: 9r
daemon: read activity on 9
connection_get(9)
connection_get(9): got connid=0
connection_read(9): checking for input on id=0
ber_get_next
sockbuf_read: want=1, got=1
         0
sockbuf_read: want=1, got=1
         *
sockbuf_read: want=42, got=42
        02 01 02  c  % 04 00 0a 01 02 0a 01 00 02 01 00
        02 01 00 01 01 00 a3 10 04 03  u  i  d 04 09  p
         m  a  s  a  r  a  t  i  0 00
ber_get_next: tag 0x30 len 42 contents:
ber_dump: buf 0x80c4278, ptr 0x80c4278, end 0x80c42a2
        02 01 02  c  % 04 00 0a 01 02 0a 01 00 02 01 00
        02 01 00 01 01 00 a3 10 04 03  u  i  d 04 09  p
         m  a  s  a  r  a  t  i  0 00
ber_get_next
do_search
sockbuf_read: want=1 error=Resource temporarily unavailable
ber_scanf fmt ({aiiiib) ber:
sockbuf_read: want=1 error=Resource temporarily unavailable
ber_dump: buf 0x80c4278, ptr 0x80c427b, end 0x80c42a2
sockbuf_read: want=1 error=Resource temporarily unavailable
         c  % 04 00 0a 01 02 0a 01 00 02 01 00 02 01 00
ber_get_next on fd 9 failed errno=11 (Resource temporarily unavailable)
        01 01 00 a3 10 04 03  u  i  d 04 09  p  m  a  s
         a  r  a  t  i  0 00
daemon: select: listen=6 active_threads=1 tvp=NULL
SRCH "" 2 0    0 0 0
begin get_filter
EQUALITY
ber_scanf fmt ({oo}) ber:
ber_dump: buf 0x80c4278, ptr 0x80c428e, end 0x80c42a2
        a3 10 04 03  u  i  d 04 09  p  m  a  s  a  r  a
         t  i  0 00
end get_filter 0
    filter: (uid=pmasarati)
ber_scanf fmt ({v}}) ber:
ber_dump: buf 0x80c4278, ptr 0x80c42a0, end 0x80c42a2
         0 00
    attrs:
conn=0 op=1 SRCH base="" scope=2 filter="(uid=pmasarati)"
ldap_init
ldap_url_parse(ldap://ldap-bci.bci.it/)
ldap_bind_s
ldap_simple_bind_s
ldap_sasl_bind_s
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection
open_ldap_connection
ldap_connect_to_host
ldap_new_socket: 10
ldap_connect_to_host: Trying 192.168.252.31:389
ldap_connect_timeout: fd: 10 tm: -1 async: 0
ldap_ndelay_on: 10
ldap_is_sock_ready: 10
ldap_ndelay_off: 10
ldap_delayed_open successful, ld_host is (null)
ldap_send_server_request
ber_flush: 14 bytes to sd 10
         0 0c 02 01 01  ` 07 02 01 02 04 00 80 00
sockbuf_write: want=14, written=14
         0 0c 02 01 01  ` 07 02 01 02 04 00 80 00
ldap_result
wait4msg (infinite timeout)
** Connections:
* host: ldap-bci.bci.it  port: 0  (default)
  refcnt: 2  status: Connected
  last used: Thu Aug  3 11:47:26 2000

** Outstanding Requests:
 * msgid 1,  origid 1, status InProgress
   outstanding referrals 0, parent count 0
** Response Queue:
   Empty
do_ldap_select
read1msg
ber_get_next
sockbuf_read: want=1, got=1
         0
sockbuf_read: want=1, got=1
        0c
sockbuf_read: want=12, got=12
        02 01 01  a 07 0a 01 00 04 00 04 00
ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf 0x80cf5a0, ptr 0x80cf5a0, end 0x80cf5ac
        02 01 01  a 07 0a 01 00 04 00 04 00
ldap_read: message type bind msgid 1, original id 1
ber_scanf fmt ({iaa}) ber:
ber_dump: buf 0x80cf5a0, ptr 0x80cf5a3, end 0x80cf5ac
         a 07 0a 01 00 04 00 04 00
new result:  res_errno: 0, res_error: <>, res_matched: <>
read1msg:  0 new referrals
read1msg:  mark request completed, id = 1
request 1 done
res_errno: 0, res_error: <>, res_matched: <>
ldap_free_request (origid 1, msgid 1)
ldap_free_connection
ldap_free_connection: refcnt 1
ldap_parse_result
ber_scanf fmt ({iaa) ber:
ber_dump: buf 0x80cf5a0, ptr 0x80cf5a3, end 0x80cf5ac
         a 07 0a 01 00 04 00 04 00
ber_scanf fmt (}) ber:
ber_dump: buf 0x80cf5a0, ptr 0x80cf5ac, end 0x80cf5ac
        (end)
ldap_msgfree
ldap_search
put_filter "(uid=pmasarati)"
put_filter: simple
put_simple_filter "uid=pmasarati"
ldap_send_initial_request
ldap_send_server_request
ber_flush: 44 bytes to sd 10
         0  * 02 01 02  c  % 04 00 0a 01 02 0a 01 00 02
        01 00 02 01 00 01 01 00 a3 10 04 03  u  i  d 04
        09  p  m  a  s  a  r  a  t  i  0 00
sockbuf_write: want=44, written=44
         0  * 02 01 02  c  % 04 00 0a 01 02 0a 01 00 02
        01 00 02 01 00 01 01 00 a3 10 04 03  u  i  d 04
        09  p  m  a  s  a  r  a  t  i  0 00
ldap_result
wait4msg (timeout 0 sec, 100000 usec)
** Connections:
* host: ldap-bci.bci.it  port: 0  (default)
  refcnt: 2  status: Connected
  last used: Thu Aug  3 11:47:26 2000

** Outstanding Requests:
 * msgid 2,  origid 2, status InProgress
   outstanding referrals 0, parent count 0
** Response Queue:
   Empty
do_ldap_select
ldap_result
wait4msg (timeout 0 sec, 100000 usec)
** Connections:
* host: ldap-bci.bci.it  port: 0  (default)
  refcnt: 2  status: Connected
  last used: Thu Aug  3 11:47:26 2000

** Outstanding Requests:
 * msgid 2,  origid 2, status InProgress
   outstanding referrals 0, parent count 0
** Response Queue:
   Empty
do_ldap_select
read1msg
ber_get_next
sockbuf_read: want=1, got=1
         0
sockbuf_read: want=1, got=1
        82
sockbuf_read: want=2, got=2
        01  $
sockbuf_read: want=292, got=292
        02 01 02  d 82 01 1d 04  F  c  n  =  P  i  e  r
         a  n  g  e  l  o 20  M  a  s  a  r  a  t  i  +
         u  i  d  =  p  m  a  s  a  r  a  t  i  ,  o  =
         B  a  n  c  a 20  C  o  m  m  e  r  c  i  a  l
         e 20  I  t  a  l  i  a  n  a  ,  c  =  I  T  0
        81 d2  0 17 04 0b  o  b  j  e  c  t  c  l  a  s
         s  1 08 04 06  u  t  e  n  t  e  0 1b 04 02  c
         n  1 15 04 13  P  i  e  r  a  n  g  e  l  o 20
         M  a  s  a  r  a  t  i  0 10 04 02  s  n  1 0a
        04 08  M  a  s  a  r  a  t  i  0 19 04 09  g  i
         v  e  n  n  a  m  e  1 0c 04 0a  P  i  e  r  a
         n  g  e  l  o  0 12 04 03  u  i  d  1 0b 04 09
         p  m  a  s  a  r  a  t  i  0 0d 04 01  o  1 08
        04 06  S  y  s  N  e  t  0 1a 04 04  m  a  i  l
         1 12 04 10  p  m  a  s  a  r  a  t  i  @  b  c
         i  .  i  t  0  . 04 05  g  r  o  u  p  1  % 04
        06  S  y  s  N  e  t 04 05  e  m  a  i  l 04 08
         i  n  t  e  r  n  e  t 04 0a  s  u  p  e  r  v
         i  s  o  r
ber_get_next: tag 0x30 len 292 contents:
ber_dump: buf 0x80cf5e0, ptr 0x80cf5e0, end 0x80cf704
        02 01 02  d 82 01 1d 04  F  c  n  =  P  i  e  r
         a  n  g  e  l  o 20  M  a  s  a  r  a  t  i  +
         u  i  d  =  p  m  a  s  a  r  a  t  i  ,  o  =
         B  a  n  c  a 20  C  o  m  m  e  r  c  i  a  l
         e 20  I  t  a  l  i  a  n  a  ,  c  =  I  T  0
        81 d2  0 17 04 0b  o  b  j  e  c  t  c  l  a  s
         s  1 08 04 06  u  t  e  n  t  e  0 1b 04 02  c
         n  1 15 04 13  P  i  e  r  a  n  g  e  l  o 20
         M  a  s  a  r  a  t  i  0 10 04 02  s  n  1 0a
        04 08  M  a  s  a  r  a  t  i  0 19 04 09  g  i
         v  e  n  n  a  m  e  1 0c 04 0a  P  i  e  r  a
         n  g  e  l  o  0 12 04 03  u  i  d  1 0b 04 09
         p  m  a  s  a  r  a  t  i  0 0d 04 01  o  1 08
        04 06  S  y  s  N  e  t  0 1a 04 04  m  a  i  l
         1 12 04 10  p  m  a  s  a  r  a  t  i  @  b  c
         i  .  i  t  0  . 04 05  g  r  o  u  p  1  % 04
        06  S  y  s  N  e  t 04 05  e  m  a  i  l 04 08
         i  n  t  e  r  n  e  t 04 0a  s  u  p  e  r  v
         i  s  o  r
ldap_read: message type search-entry msgid 2, original id 2
ldap_get_dn
ber_scanf fmt ({a) ber:
ber_dump: buf 0x80cf5e0, ptr 0x80cf5e3, end 0x80cf704
         d 82 01 1d 04  F  c  n  =  P  i  e  r  a  n  g
         e  l  o 20  M  a  s  a  r  a  t  i  +  u  i  d
         =  p  m  a  s  a  r  a  t  i  ,  o  =  B  a  n
         c  a 20  C  o  m  m  e  r  c  i  a  l  e 20  I
         t  a  l  i  a  n  a  ,  c  =  I  T  0 81 d2  0
        17 04 0b  o  b  j  e  c  t  c  l  a  s  s  1 08
        04 06  u  t  e  n  t  e  0 1b 04 02  c  n  1 15
        04 13  P  i  e  r  a  n  g  e  l  o 20  M  a  s
         a  r  a  t  i  0 10 04 02  s  n  1 0a 04 08  M
         a  s  a  r  a  t  i  0 19 04 09  g  i  v  e  n
         n  a  m  e  1 0c 04 0a  P  i  e  r  a  n  g  e
         l  o  0 12 04 03  u  i  d  1 0b 04 09  p  m  a
         s  a  r  a  t  i  0 0d 04 01  o  1 08 04 06  S
         y  s  N  e  t  0 1a 04 04  m  a  i  l  1 12 04
        10  p  m  a  s  a  r  a  t  i  @  b  c  i  .  i
         t  0  . 04 05  g  r  o  u  p  1  % 04 06  S  y
         s  N  e  t 04 05  e  m  a  i  l 04 08  i  n  t
         e  r  n  e  t 04 0a  s  u  p  e  r  v  i  s  o
         r
ldap_first_attribute
ber_scanf fmt ({x{{ax}) ber:
ber_dump: buf 0x80cf5e0, ptr 0x80cf5e3, end 0x80cf704
         d 82 01 1d 04  F  c  n  =  P  i  e  r  a  n  g
         e  l  o 20  M  a  s  a  r  a  t  i  +  u  i  d
         =  p  m  a  s  a  r  a  t  i  ,  o  =  B  a  n
         c  a 20  C  o  m  m  e  r  c  i  a  l  e 20  I
         t  a  l  i  a  n  a  ,  c  =  I  T  0 81 d2  0
        17 04 0b  o  b  j  e  c  t  c  l  a  s  s  1 08
        04 06  u  t  e  n  t  e  0 1b 04 02  c  n  1 15
        04 13  P  i  e  r  a  n  g  e  l  o 20  M  a  s
         a  r  a  t  i  0 10 04 02  s  n  1 0a 04 08  M
         a  s  a  r  a  t  i  0 19 04 09  g  i  v  e  n
         n  a  m  e  1 0c 04 0a  P  i  e  r  a  n  g  e
         l  o  0 12 04 03  u  i  d  1 0b 04 09  p  m  a
         s  a  r  a  t  i  0 0d 04 01  o  1 08 04 06  S
         y  s  N  e  t  0 1a 04 04  m  a  i  l  1 12 04
        10  p  m  a  s  a  r  a  t  i  @  b  c  i  .  i
         t  0  . 04 05  g  r  o  u  p  1  % 04 06  S  y
         s  N  e  t 04 05  e  m  a  i  l 04 08  i  n  t
         e  r  n  e  t 04 0a  s  u  p  e  r  v  i  s  o
         r
ldap_get_values_len
ber_scanf fmt ({x{{a) ber:
ber_dump: buf 0x80cf5e0, ptr 0x80cf5e3, end 0x80cf704
         d 82 01 1d 04  F  c  n  =  P  i  e  r  a  n  g
         e  l  o 20  M  a  s  a  r  a  t  i  +  u  i  d
         =  p  m  a  s  a  r  a  t  i  ,  o  =  B  a  n
         c  a 20  C  o  m  m  e  r  c  i  a  l  e 20  I
         t  a  l  i  a  n  a  ,  c  =  I  T  0 81 d2  0
        17 04 0b  o  b  j  e  c  t  c  l  a  s  s  1 08
        04 06  u  t  e  n  t  e  0 1b 04 02  c  n  1 15
        04 13  P  i  e  r  a  n  g  e  l  o 20  M  a  s
         a  r  a  t  i  0 10 04 02  s  n  1 0a 04 08  M
         a  s  a  r  a  t  i  0 19 04 09  g  i  v  e  n
         n  a  m  e  1 0c 04 0a  P  i  e  r  a  n  g  e
         l  o  0 12 04 03  u  i  d  1 0b 04 09  p  m  a
         s  a  r  a  t  i  0 0d 04 01  o  1 08 04 06  S
         y  s  N  e  t  0 1a 04 04  m  a  i  l  1 12 04
        10  p  m  a  s  a  r  a  t  i  @  b  c  i  .  i
         t  0  . 04 05  g  r  o  u  p  1  % 04 06  S  y
         s  N  e  t 04 05  e  m  a  i  l 04 08  i  n  t
         e  r  n  e  t 04 0a  s  u  p  e  r  v  i  s  o
         r
ber_scanf fmt ([V]) ber:
ber_dump: buf 0x80cf5e0, ptr 0x80cf641, end 0x80cf704
         1 08 04 06  u  t  e  n  t  e  0 1b 04 02  c  n
         1 15 04 13  P  i  e  r  a  n  g  e  l  o 20  M
         a  s  a  r  a  t  i  0 10 04 02  s  n  1 0a 04
        08  M  a  s  a  r  a  t  i  0 19 04 09  g  i  v
         e  n  n  a  m  e  1 0c 04 0a  P  i  e  r  a  n
         g  e  l  o  0 12 04 03  u  i  d  1 0b 04 09  p
         m  a  s  a  r  a  t  i  0 0d 04 01  o  1 08 04
        06  S  y  s  N  e  t  0 1a 04 04  m  a  i  l  1
        12 04 10  p  m  a  s  a  r  a  t  i  @  b  c  i
         .  i  t  0  . 04 05  g  r  o  u  p  1  % 04 06
         S  y  s  N  e  t 04 05  e  m  a  i  l 04 08  i
         n  t  e  r  n  e  t 04 0a  s  u  p  e  r  v  i
         s  o  r
ldap_next_attribute
ber_scanf fmt ({ax}) ber:
ber_dump: buf 0x80cf5e0, ptr 0x80cf64b, end 0x80cf704
         0 1b 04 02  c  n  1 15 04 13  P  i  e  r  a  n
         g  e  l  o 20  M  a  s  a  r  a  t  i  0 10 04
        02  s  n  1 0a 04 08  M  a  s  a  r  a  t  i  0
        19 04 09  g  i  v  e  n  n  a  m  e  1 0c 04 0a
         P  i  e  r  a  n  g  e  l  o  0 12 04 03  u  i
         d  1 0b 04 09  p  m  a  s  a  r  a  t  i  0 0d
        04 01  o  1 08 04 06  S  y  s  N  e  t  0 1a 04
        04  m  a  i  l  1 12 04 10  p  m  a  s  a  r  a
         t  i  @  b  c  i  .  i  t  0  . 04 05  g  r  o
         u  p  1  % 04 06  S  y  s  N  e  t 04 05  e  m
         a  i  l 04 08  i  n  t  e  r  n  e  t 04 0a  s
         u  p  e  r  v  i  s  o  r
slapd: ad.c:99: slap_bv2ad: Assertion `*ad == ((void *)0)' failed.