https://bugs.openldap.org/show_bug.cgi?id=8958
--- Comment #35 from Howard Chu hyc@openldap.org --- On my laptop, running against current git master, your test
#### bash bug.sh 5000 610d21b6.1d96b64b 0x7f39c4378780 @(#) $OpenLDAP: slapd 2.X (Aug 6 2021 12:48:05) $ hyc@viola:/home/hyc/OD/hobj/servers/slapd 610d21b6.1e6b60b1 0x7f39c4378780 slapd starting 610d21b7.1e5278fb 0x7f39bfd56640 conn=1000 fd=14 ACCEPT from PATH=ldapi (PATH=ldapi) 610d21b7.1e5a824a 0x7f39bf555640 conn=1000 op=0 BIND dn="" method=163 610d21b7.1e5df1da 0x7f39bf555640 conn=1000 op=0 BIND authcid="gidNumber=1000+uidNumber=1000,cn=peercred,cn=external,cn=auth" authzid="gidNumber=1000+uidNumber=1000,cn=peercred,cn=external,cn=auth" 610d21b7.1e5e3c0e 0x7f39bf555640 conn=1000 op=0 BIND dn="cn=admin" mech=EXTERNAL bind_ssf=0 ssf=71 610d21b7.1e5f7957 0x7f39bf555640 conn=1000 op=0 RESULT tag=97 err=0 qtime=0.000070 etime=0.000420 text= modifying entry "olcDatabase={1}mdb,cn=config" 610d21b7.1e69ad03 0x7f39bfd56640 conn=1000 op=1 MOD dn="olcDatabase={1}mdb,cn=config" 610d21b7.1e6a41b2 0x7f39bfd56640 conn=1000 op=1 MOD attr=olcDbIndex 610d21b7.1f03411d 0x7f39bfd56640 conn=1000 op=1 RESULT tag=103 err=0 qtime=0.000033 etime=0.010200 text=
modifying entry "cn=config" 610d21b7.1f086a5d 0x7f39bfd56640 conn=1000 op=2 MOD dn="cn=config" 610d21b7.1f089460 0x7f39bfd56640 conn=1000 op=2 MOD attr=olcGentleHUP 610d21c3.080b1010 0x7f39bf555640 mdb_online_index: database ou=people,o=foo: txn_commit failed: MDB_MAP_FULL: Environment mapsize limit reached (-30792) 610d21c3.0812f25b 0x7f39bfd56640 conn=1000 op=2 RESULT tag=103 err=0 qtime=0.000032 etime=11.614863 text= 610d21c3.081378db 0x7f39bf555640 conn=1001 fd=15 ACCEPT from PATH=ldapi (PATH=ldapi)
610d21c3.0814c56b 0x7f39bfd56640 conn=1001 op=0 BIND dn="" method=128 610d21c3.08151f2d 0x7f39bfd56640 conn=1001 op=0 RESULT tag=97 err=0 qtime=0.000010 etime=0.000038 text= 610d21c3.08156590 0x7f39bf555640 conn=1000 op=3 UNBIND 610d21c3.08161fe5 0x7f39bf555640 conn=1000 fd=14 closed 610d21c3.08185c43 0x7f39bfd56640 conn=1001 op=1 EXT oid=1.3.6.1.4.1.4203.1.11.3 610d21c3.0818928e 0x7f39bfd56640 conn=1001 op=1 WHOAMI 610d21c3.0818e838 0x7f39bfd56640 conn=1001 op=1 RESULT oid= err=0 qtime=0.000021 etime=0.000060 text= anonymous 610d21c3.081b5c3e 0x7f39bf555640 conn=1001 op=2 UNBIND 610d21c3.081bbc00 0x7f39bf555640 conn=1001 fd=15 closed
real 0m11.149s user 0m0.026s sys 0m0.017s 610d21c3.08211dff 0x7f39c0557640 daemon: shutdown requested and initiated. 610d21c3.08225abc 0x7f39c0557640 slapd shutdown: waiting for 0 operations/tasks to finish 610d21c3.084e3266 0x7f39c4378780 slapd stopped. ####
With the patch in !372 the script finishes immediately: #### 610d21e2.3788b515 0x7f7b91a17640 conn=1001 op=2 UNBIND 610d21e2.37892e36 0x7f7b91a17640 conn=1001 fd=14 closed
real 0m0.010s user 0m0.007s sys 0m0.004s 610d21e2.378df428 0x7f7b92a19640 daemon: shutdown requested and initiated. 610d21e2.378f3b89 0x7f7b92a19640 slapd shutdown: waiting for 1 operations/tasks to finish 610d21e2.37c2a4bd 0x7f7b9683a780 slapd stopped. ####