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

Seg Fault on binding



      I'm migrating from 2.0.27 to 2.1.17
      I'm using Berkeley DB 4.1.25 w patch on Linux 7.3

      I'm trying to understand why passwords generated with PERL are
      not recognized anymore with the new version.
      So I keep on changing the password field and performing a search with
user credentials
      but after few trials I get a segmentation fault.
      If the search is done anonymously all is fine.
      If I try to replace the pass again it finds the DB locked with the
following messages (repeated indefinitely):
      --------------
      bdb_cache_entry_db_lock: entry
uid=test02_580,ou=2002,ou=in,ou=people,ou=scienze,dc=univr,dc=it, rw 1,
rc -30995
      ====> bdb_cache_find_entry_id( 836 ): 836 (busy) 2
      locker = -2147481535
      -------------

      For debugging purposes the ACL is write for anyone.


      Any help, please ?

      Here is the log of the segfault:
      --------------------------------------------
      daemon: activity on 1 descriptors
      daemon: new connection on 12
      conn=0 fd=12 ACCEPT from IP=127.0.0.1:44592 (IP=0.0.0.0:389)
      daemon: added 12r
      daemon: activity on:
      daemon: select: listen=6 active_threads=0 tvp=NULL
      daemon: activity on 1 descriptors
      daemon: activity on: 12r
      daemon: read activity on 12
      connection_get(12)
      connection_get(12): got connid=0
      connection_read(12): checking for input on id=0
      ber_get_next
      ldap_read: want=9, got=9
        0000:  30 54 02 01 01 60 4f 02  01                        0T...`O..
      ldap_read: want=77, got=77
        0000:  03 04 40 75 69 64 3d 74  65 73 74 30 32 5f 35 38
..@uid=test02_58
        0010:  30 2c 6f 75 3d 32 30 30  32 2c 6f 75 3d 69 6e 2c
0,ou=2002,ou=in,
        0020:  6f 75 3d 50 65 6f 70 6c  65 2c 6f 75 3d 53 63 69
ou=People,ou=Sci
        0030:  65 6e 7a 65 2c 64 63 3d  75 6e 69 76 72 2c 64 63
enze,dc=univr,dc
        0040:  3d 69 74 80 08 31 32 33  34 35 78 78 78
=it..12345xxx
      ber_get_next: tag 0x30 len 84 contents:
      ber_dump: buf=0x081b6680 ptr=0x081b6680 end=0x081b66d4 len=84
        0000:  02 01 01 60 4f 02 01 03  04 40 75 69 64 3d 74 65
...`O....@uid=te
        0010:  73 74 30 32 5f 35 38 30  2c 6f 75 3d 32 30 30 32
st02_580,ou=2002
        0020:  2c 6f 75 3d 69 6e 2c 6f  75 3d 50 65 6f 70 6c 65
,ou=in,ou=People
        0030:  2c 6f 75 3d 53 63 69 65  6e 7a 65 2c 64 63 3d 75
,ou=Scienze,dc=u
        0040:  6e 69 76 72 2c 64 63 3d  69 74 80 08 31 32 33 34
nivr,dc=it..1234
        0050:  35 78 78 78                                        5xxx
      ber_get_next
      ldap_read: want=9 error=Resource temporarily unavailable
      ber_get_next on fd 12 failed errno=11 (Resource temporarily
unavailable)
      daemon: select: listen=6 active_threads=1 tvp=NULL
      do_bind
      ber_scanf fmt ({imt) ber:
      ber_dump: buf=0x081b6680 ptr=0x081b6683 end=0x081b66d4 len=81
        0000:  60 4f 02 01 03 04 40 75  69 64 3d 74 65 73 74 30
`O....@uid=test0
        0010:  32 5f 35 38 30 2c 6f 75  3d 32 30 30 32 2c 6f 75
2_580,ou=2002,ou
        0020:  3d 69 6e 2c 6f 75 3d 50  65 6f 70 6c 65 2c 6f 75
=in,ou=People,ou
        0030:  3d 53 63 69 65 6e 7a 65  2c 64 63 3d 75 6e 69 76
=Scienze,dc=univ
        0040:  72 2c 64 63 3d 69 74 80  08 31 32 33 34 35 78 78
r,dc=it..12345xx
        0050:  78                                                 x
      ber_scanf fmt (m}) ber:
      ber_dump: buf=0x081b6680 ptr=0x081b66ca end=0x081b66d4 len=10
        0000:  00 08 31 32 33 34 35 78  78 78                     ..12345xxx
      >>> dnPrettyNormal:
<uid=test02_580,ou=2002,ou=in,ou=People,ou=Scienze,dc=univr,dc=it>
      =>
ldap_bv2dn(uid=test02_580,ou=2002,ou=in,ou=People,ou=Scienze,dc=univr,dc=it,
0)
      <=
ldap_bv2dn(uid=test02_580,ou=2002,ou=in,ou=People,ou=Scienze,dc=univr,dc=it,
0)=0
      => ldap_dn2bv(272)
      <=
ldap_dn2bv(uid=test02_580,ou=2002,ou=in,ou=People,ou=Scienze,dc=univr,dc=it,
272)=0
      => ldap_dn2bv(272)
      <=
ldap_dn2bv(uid=test02_580,ou=2002,ou=in,ou=people,ou=scienze,dc=univr,dc=it,
272)=0
      <<< dnPrettyNormal:
<uid=test02_580,ou=2002,ou=in,ou=People,ou=Scienze,dc=univr,dc=it>,
<uid=test02_580,ou=2002,ou=in,ou=people,ou=scienze,dc=univr,dc=it>
      do_bind: version=3
dn="uid=test02_580,ou=2002,ou=in,ou=People,ou=Scienze,dc=univr,dc=it"
method=128
      conn=0 op=0 BIND
dn="uid=test02_580,ou=2002,ou=in,ou=People,ou=Scienze,dc=univr,dc=it"
method=128
      ==> bdb_bind: dn:
uid=test02_580,ou=2002,ou=in,ou=People,ou=Scienze,dc=univr,dc=it

bdb_dn2entry_rw("uid=test02_580,ou=2002,ou=in,ou=people,ou=scienze,dc=univr,
dc=it")
      =>
db_dn2id_matched( "uid=test02_580,ou=2002,ou=in,ou=people,ou=scienze,dc=univ
r,dc=it" )
      <= bdb_dn2id_matched: id=0x00000344: entry
uid=test02_580,ou=2002,ou=in,ou=people,ou=scienze,dc=univr,dc=it
      entry_decode:
"uid=test02_580,ou=2002,ou=in,ou=People,ou=Scienze,dc=univr,dc=it"
      <=
entry_decode(uid=test02_580,ou=2002,ou=in,ou=People,ou=Scienze,dc=univr,dc=i
t)
      => access_allowed: auth access to
"uid=test02_580,ou=2002,ou=in,ou=People,ou=Scienze,dc=univr,dc=it"
"userPassword" requested
      => access_allowed: backend default auth access granted to "(null)"
      Segmentation fault

      ----------------------------------------------------------------------
-----------------------------