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

"Implementation Specific Error" crashes LDAP (ITS#3197)



Full_Name: John Borwick
Version: 2.1.30
OS: AIX 4.3.3
URL: 
Submission from: (NULL) (152.17.54.251)


OpenLDAP 2.1.30 on AIX.

My guess is that my database is corrupt somehow, although "db_recover -v"
doesn't seem to give any errors.  This system is *not* our primary system,
although it would be helpful to know why this error is occuring.

When running "ldapsearch -x '(uid=stein)'", running "slapd -d -1", here's the
slapd output:

daemon: activity on 1 descriptors
daemon: new connection on 10
conn=0 fd=10 ACCEPT from IP=127.0.0.1:56364 (IP=0.0.0.0:389)
daemon: added 10r
daemon: activity on:
daemon: select: listen=6 active_threads=0 tvp=NULL
daemon: activity on 1 descriptors
daemon: activity on: 10r
daemon: read activity on 10
connection_get(10)
connection_get(10): got connid=0
connection_read(10): checking for input on id=0
ber_get_next
ldap_read: want=8, got=8
  0000:  30 0c 02 01 01 60 07 02                            0....`..
ldap_read: want=6, got=6
  0000:  01 03 04 00 80 00                                  ......
ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf=0x20c84908 ptr=0x20c84908 end=0x20c84914 len=12
  0000:  02 01 01 60 07 02 01 03  04 00 80 00               ...`........
do_bind
ber_scanf fmt ({imt) ber:
ber_dump: buf=0x20c84908 ptr=0x20c8490b end=0x20c84914 len=9
  0000:  60 07 02 01 03 04 00 80  00                        `........
ber_scanf fmt (m}) ber:
ber_dump: buf=0x20c84908 ptr=0x20c84912 end=0x20c84914 len=2
  0000:  00 00                                              ..
>>> dnPrettyNormal: <>
<<< dnPrettyNormal: <>, <>
do_bind: version=3 dn="" method=128
conn=0 op=0 BIND dn="" method=128
send_ldap_result: conn=0 op=0 p=3
send_ldap_result: err=0 matched="" text=""
send_ldap_response: msgid=1 tag=97 err=0
ber_flush: 14 bytes to sd 10
  0000:  30 0c 02 01 01 61 07 0a  01 00 04 00 04 00         0....a........
ldap_write: want=14, written=14
  0000:  30 0c 02 01 01 61 07 0a  01 00 04 00 04 00         0....a........
conn=0 op=0 RESULT tag=97 err=0 text=
do_bind: v3 anonymous bind
ber_get_next
ldap_read: want=8, got=8
  0000:  30 33 02 01 02 63 2e 04                            03...c..
ldap_read: want=45, got=45
  0000:  0d 64 63 3d 77 66 75 2c  64 63 3d 65 64 75 0a 01   .dc=wfu,dc=edu..
  0010:  02 0a 01 00 02 01 00 02  01 00 01 01 00 a3 0c 04   ................
  0020:  03 75 69 64 04 05 73 74  65 69 6e 30 00            .uid..stein0.
ber_get_next: tag 0x30 len 51 contents:
ber_dump: buf=0x20c849e8 ptr=0x20c849e8 end=0x20c84a1b len=51
  0000:  02 01 02 63 2e 04 0d 64  63 3d 77 66 75 2c 64 63   ...c...dc=wfu,dc
  0010:  3d 65 64 75 0a 01 02 0a  01 00 02 01 00 02 01 00   =edu............
  0020:  01 01 00 a3 0c 04 03 75  69 64 04 05 73 74 65 69   .......uid..stei
  0030:  6e 30 00                                           n0.
do_search
ber_scanf fmt ({miiiib) ber:
ber_dump: buf=0x20c849e8 ptr=0x20c849eb end=0x20c84a1b len=48
  0000:  63 2e 04 0d 64 63 3d 77  66 75 2c 64 63 3d 65 64   c...dc=wfu,dc=ed
  0010:  75 0a 01 02 0a 01 00 02  01 00 02 01 00 01 01 00   u...............
  0020:  a3 0c 04 03 75 69 64 04  05 73 74 65 69 6e 30 00   ....uid..stein0.
>>> dnPrettyNormal: <dc=wfu,dc=edu>
=> ldap_bv2dn(dc=wfu,dc=edu,0)
<= ldap_bv2dn(dc=wfu,dc=edu,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=wfu,dc=edu,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=wfu,dc=edu,272)=0
<<< dnPrettyNormal: <dc=wfu,dc=edu>, <dc=wfu,dc=edu>
SRCH "dc=wfu,dc=edu" 2 0    0 0 0
begin get_filter
EQUALITY
ber_scanf fmt ({mm}) ber:
ber_dump: buf=0x20c849e8 ptr=0x20c84a0b end=0x20c84a1b len=16
  0000:  a3 0c 04 03 75 69 64 04  05 73 74 65 69 6e 30 00   ....uid..stein0.
end get_filter 0
    filter: (uid=stein)
ber_scanf fmt ({M}}) ber:
ber_dump: buf=0x20c849e8 ptr=0x20c84a19 end=0x20c84a1b len=2
  0000:  00 00                                              ..
    attrs:
conn=0 op=1 SRCH base="dc=wfu,dc=edu" scope=2 filter="(uid=stein)"
=> bdb_back_search
bdb_dn2entry_rw("dc=wfu,dc=edu")
=> bdb_dn2id_matched( "dc=wfu,dc=edu" )
<= bdb_dn2id_matched: id=0x00000001: entry dc=wfu,dc=edu
entry_decode: "dc=wfu,dc=edu"
<= entry_decode(dc=wfu,dc=edu)
bdb(dc=wfu,dc=edu): Locker does not exist
bdb_cache_entry_db_lock: entry dc=wfu,dc=edu, rw 0, rc 22
send_ldap_result: conn=0 op=1 p=3
send_ldap_result: err=80 matched="" text="internal error"
send_ldap_response: msgid=2 tag=101 err=80
ber_flush: 28 bytes to sd 10
  0000:  30 1a 02 01 02 65 15 0a  01 50 04 00 04 0e 69 6e   0....e...P....in
  0010:  74 65 72 6e 61 6c 20 65  72 72 6f 72               ternal error
ldap_write: want=28, written=28
  0000:  30 1a 02 01 02 65 15 0a  01 50 04 00 04 0e 69 6e   0....e...P....in
  0010:  74 65 72 6e 61 6c 20 65  72 72 6f 72               ternal error
conn=0 op=1 RESULT tag=101 err=80 text=internal error
ber_get_next
ldap_read: want=8, got=7
  0000:  30 05 02 01 03 42 00                               0....B.
ber_get_next: tag 0x30 len 5 contents:
ber_dump: buf=0x20c84908 ptr=0x20c84908 end=0x20c8490d len=5
  0000:  02 01 03 42 00                                     ...B.
do_unbind
conn=0 op=2 UNBIND
connection_closing: readying conn=0 sd=10 for close
connection_resched: attempting closing conn=0 sd=10
connection_close: conn=0 sd=10
=>ldap_back_conn_destroy: fetching conn 0
daemon: removing 10
conn=0 fd=10 closed
Assertion failed: conn->c_struct_state == SLAP_C_USED, file  connection.c, line
1505
IOT/Abort trap (core dumped)


The LDAP search gets the result:

# extended LDIF
#
# LDAPv3
# base <> with scope sub
# filter: (uid=stein)
# requesting: ALL
#

# search result
search: 2
result: 80 Internal (implementation specific) error
text: internal error