https://bugs.openldap.org/show_bug.cgi?id=9639
--- Comment #11 from dpa-openldap@aegee.org dpa-openldap@aegee.org --- libgcc_s.so.1 must also be included in the chroot environment, and referenced from the chrooted etc/ld.so.cache, otherwise on restart slapd crashes with bt:
Program terminated with signal SIGABRT, Aborted. #0 __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:45 45 val = (INTERNAL_SYSCALL_ERROR_P (val) [Current thread is 1 (Thread 0x7f95f77fe640 (LWP 216899))] gdb /tmp/cores bt #0 __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:45 #1 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at pthread_kill.c:62 #2 0x00007f95ffb301f2 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #3 0x00007f95ffb1b43b in __GI_abort () at abort.c:79 #4 0x00007f95ffb6ec00 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7f95ffc9f219 "%s") at ../sysdeps/posix/libc_fatal.c:155 #5 0x00007f95ffb6ec22 in __GI___libc_fatal (message=0x7f95ffca1810 "libgcc_s.so.1 must be installed for pthread_exit to work\n") at ../ sysdeps/posix/libc_fatal.c:164 #6 0x00007f95ffb79642 in __GI___pthread_exit (value=0x0) at pthread_exit.c:31 #7 0x00007f96002ef119 in ldap_pvt_thread_exit () from /git/openldap/libraries/libldap/.libs/libldap-2.5.releng.so.0 #8 0x00007f96002efb48 in ?? () from /git/openldap/libraries/libldap/.libs/libldap-2.5.releng.so.0 #9 0x00007f95ffb78507 in start_thread (arg=<optimized out>) at pthread_create.c:434 #10 0x00007f95ffbf7a5c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81