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

Re: slapd thread hangs on modify operations (ITS#1836)




--On Samstag, 1. Juni 2002 11:04 -0700 "Kurt D. Zeilenga" 
<Kurt@OpenLDAP.org> wrote:

> A couple of threading changes have been made recently.
> Please test.

The problem persits and I do see "DB_LOCK->lock_put" error messages in the 
log:

Jun  5 17:19:32 clara slapd21[4167]: conn=23 op=479 MOD dn="ou=Institut für 
Politikwissenschaft,ou=Fachbereich Geschichte\2c Philosophie und 
Sozialwissenschaften,o=Universität Halle,c=DE"
Jun  5 17:19:32 clara slapd21[4167]: conn=23 op=479 RESULT tag=103 err=0 
text=
Jun  5 17:19:32 clara slapd21[4167]: bdb(c=de): DB_LOCK->lock_put: Lock is 
no longer valid
Jun  5 17:19:32 clara slapd21[4104]: conn=23 op=480 MOD dn="ou=Zentrum für 
Lateinamerika-Studien,ou=Zentrum für Internationales Management,o=WHU 
Wissenschaftliche Hochschule für Unternehmensführung - Otto Beisheim 
Hochschule,c=DE"

Nothing after this. Here the backtrace:
(gdb) info threads
  5 Thread 3076 (LWP 4167)  0x40245906 in sigsuspend () from /lib/libc.so.6
  4 Thread 2051 (LWP 4104)  0x402db107 in sched_yield () from /lib/libc.so.6
  3 Thread 1026 (LWP 4102)  0x402e93ee in select () from /lib/libc.so.6
  2 Thread 2049 (LWP 4101)  0x402e7c87 in poll () from /lib/libc.so.6
  1 Thread 1024 (LWP 4100)  0x40245906 in sigsuspend () from /lib/libc.so.6
(gdb) thread 4
[Switching to thread 4 (Thread 2051 (LWP 4104))]#0  0x402db107 in 
sched_yield () from /lib/libc.so.6
(gdb) bt
#0  0x402db107 in sched_yield () from /lib/libc.so.6
#1  0x080b29ab in ldap_pvt_thread_yield ()
#2  0x400a3112 in __os_yield () from 
/usr/local/BerkeleyDB.4.0/lib/libdb-4.0.so
#3  0x400432f6 in __db_tas_mutex_lock () from 
/usr/local/BerkeleyDB.4.0/lib/libdb-4.0.so
#4  0x400903db in __lock_get_internal () from 
/usr/local/BerkeleyDB.4.0/lib/libdb-4.0.so
#5  0x4008fae5 in __lock_get () from 
/usr/local/BerkeleyDB.4.0/lib/libdb-4.0.so
#6  0x4006d01a in __db_lget () from 
/usr/local/BerkeleyDB.4.0/lib/libdb-4.0.so
#7  0x400505c8 in __bam_search () from 
/usr/local/BerkeleyDB.4.0/lib/libdb-4.0.so
#8  0x40050bed in __bam_split () from 
/usr/local/BerkeleyDB.4.0/lib/libdb-4.0.so
#9  0x40046eb0 in __bam_c_put () from 
/usr/local/BerkeleyDB.4.0/lib/libdb-4.0.so
#10 0x400664e5 in __db_c_put () from 
/usr/local/BerkeleyDB.4.0/lib/libdb-4.0.so
#11 0x400603e7 in __db_put () from 
/usr/local/BerkeleyDB.4.0/lib/libdb-4.0.so
#12 0x08097d97 in bdb_id2entry_put ()
#13 0x08097df9 in bdb_id2entry_update ()
#14 0x080830fe in bdb_modify ()
#15 0x08062fbd in do_modify ()
#16 0x080517e0 in connection_operation ()
#17 0x080b2800 in ldap_int_thread_pool_wrapper ()
#18 0x40207f37 in pthread_start_thread () from /lib/libpthread.so.0


-- 
Dipl.-Inform. Norbert Klasen
DAASI International GmbH                 phone: +49 7071 29 70336
Wilhelmstr. 106                          fax:   +49 7071 29 5114
72074 Tübingen                           email: norbert.klasen@daasi.de
Germany                                  web:   http://www.daasi.de