> This is a valid issue, but are we certain it's the same one? The
> reporter talked about sched_yield and their backtraces included several
> threads of back_monitor waiting on some kind of lock.

You're right. It may be a different issue (though possibly linked to the
same root cause). In my case, all other threads are stuck on:

#0  0x00007f2a010fdad3 in futex_wait_cancelable (private=<optimized out>, 
expected=0, futex_word=0x55d92cadaa78) at 
../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55d92cadaa28, 
cond=0x55d92cadaa50) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=cond@entry=0x55d92cadaa50, 
mutex=mutex@entry=0x55d92cadaa28) at pthread_cond_wait.c:655
#3  0x00007f2a01fc7475 in ldap_pvt_thread_cond_wait 
(cond=cond@entry=0x55d92cadaa50, mutex=mutex@entry=0x55d92cadaa28) at 
../../../../libraries/libldap_r/thr_posix.c:277
#4  0x00007f2a01fc6d1b in ldap_int_thread_pool_wrapper (xpool=0x55d92cadaa20) 
at ../../../../libraries/libldap_r/tpool.c:683
#5  0x00007f2a010f76db in start_thread (arg=0x7f29f99b6700) at 
pthread_create.c:463
#6  0x00007f2a00e1971f in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to openldap in Ubuntu.
https://bugs.launchpad.net/bugs/1926265

Title:
  slapd enter in infinite loop on sched_yield syscall

Status in openldap package in Ubuntu:
  Confirmed

Bug description:
  On a production server, sometimes slapd become unbresponsive, some threads 
loops in sched_yield syscall and consumme all CPU.
  To recover, slapd needs to restart.
  No related information is reported in log file.
  All same issues in OpenLDAP upstream project are old and fixed.
  So maybe this issue affects only Ubuntu package.
  It occurs randomly, so I have no steps to reproduce.

  
  OS : Bionic

  Openldap version:

  libldap-2.4-2:amd64                    2.4.45+dfsg-1ubuntu1.10                
         
  libldap-common                         2.4.45+dfsg-1ubuntu1.10                
         
  slapd                                  2.4.45+dfsg-1ubuntu1.10                
         

  Modules loaded:

  olcModuleLoad: {0}back_bdb
  olcModuleLoad: {1}syncprov
  olcModuleLoad: {2}back_monitor
  olcModuleLoad: {3}memberof.la
  olcModuleLoad: {4}refint.la
  olcModuleLoad: {5}rwm
  olcModuleload: {6}back_ldap

  
  Backend is BDB. slapd run in (single) master - (multi) slave mode.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openldap/+bug/1926265/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to