[Samba] High cpu load on LDAP
Heinz Hölzl
heinz.hoelzl at gvcc.net
Thu Nov 21 07:10:50 UTC 2024
sorry,
GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 89273
Reading symbols from /usr/local/samba/sbin/samba...
Reading symbols from /usr/local/samba/lib/private/libevents-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libprocess-model-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libtevent-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libcmdline-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libldb-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libservice-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libsamba-hostconfig-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libgensec-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libcluster-private-
samba.so...
Reading symbols from /usr/local/samba/lib/libsamba-util.so.0...
Reading symbols from /usr/local/samba/lib/private/libcliauth-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libtalloc-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libsamdb-common-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libreplace-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libsamba-credentials-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libMESSAGING-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libndr-samba4-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libsamba-debug-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libsamdb-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libgenrand-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libsocket-blocking-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libMESSAGING-SEND-
private-samba.so...
Reading symbols from /lib/x86_64-linux-gnu/libbsd.so.0...
(No debugging symbols found in /lib/x86_64-linux-gnu/libbsd.so.0)
Reading symbols from /lib/x86_64-linux-gnu/libpopt.so.0...
(No debugging symbols found in /lib/x86_64-linux-gnu/libpopt.so.0)
Reading symbols from /lib/x86_64-linux-gnu/libpthread.so.0...
Reading symbols from /usr/lib/debug/.build-
id/25/5e355c207aba91a59ae1f808e3b4da443abf0c.debug...
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-
gnu/libthread_db.so.1".
Reading symbols from /lib/x86_64-linux-gnu/libc.so.6...
Reading symbols from /usr/lib/debug/.build-
id/e1/5ec78d51a522023f9cfc58dc284f379d81860b.debug...
Reading symbols from /usr/local/samba/lib/private/libsamba-modules-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libsamba-sockets-
private-samba.so...
Reading symbols from /usr/local/samba/lib/libsamba-errors.so.1...
Reading symbols from /lib64/ld-linux-x86-64.so.2...
Reading symbols from /usr/lib/debug/.build-
id/e2/5570740d590e5cb7b1a20d86332a8d1bb3b65f.debug...
Reading symbols from /lib/x86_64-linux-gnu/libdl.so.2...
Reading symbols from /usr/lib/debug/.build-
id/46/b3bf3f9b9eb092a5c0cf5575e89092f768054c.debug...
Reading symbols from /usr/local/samba/lib/private/libauth4-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libnpa-tstream-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libsamba-security-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libdb-glue-private-
samba.so...
Reading symbols from /usr/local/samba/lib/libdcerpc-binding.so.0...
Reading symbols from /usr/local/samba/lib/private/libtdb-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libserver-role-
private-samba.so...
Reading symbols from /lib/x86_64-linux-gnu/libgnutls.so.30...
(No debugging symbols found in /lib/x86_64-linux-gnu/libgnutls.so.30)
Reading symbols from /usr/local/samba/lib/private/libauthkrb5-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libasn1util-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libcom-err-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libndr-samba-private-
samba.so...
Reading symbols from /usr/local/samba/lib/libwbclient.so.0...
Reading symbols from /usr/local/samba/lib/private/libtevent-util-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libgssapi-private-
samba.so...
Reading symbols from /usr/local/samba/lib/libndr.so.5...
Reading symbols from /usr/local/samba/lib/private/libcommon-auth-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libkrb5samba-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libtime-basic-
private-samba.so...
Reading symbols from /lib/x86_64-linux-gnu/libz.so.1...
(No debugging symbols found in /lib/x86_64-linux-gnu/libz.so.1)
Reading symbols from /usr/local/samba/lib/private/libdbwrap-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libsys-rw-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libutil-tdb-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libflag-mapping-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libcli-ldap-common-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libldbsamba-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libkrb5-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libmessages-util-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libserver-id-db-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libtalloc-report-
printf-private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libmessages-dgm-
private-samba.so...
Reading symbols from /usr/local/samba/lib/libndr-standard.so.0...
Reading symbols from /usr/local/samba/lib/libndr-nbt.so.0...
Reading symbols from /usr/local/samba/lib/libndr-krb5pac.so.0...
Reading symbols from /usr/local/samba/lib/private/libutil-setid-
private-samba.so...
Reading symbols from /lib/x86_64-linux-gnu/libmd.so.0...
(No debugging symbols found in /lib/x86_64-linux-gnu/libmd.so.0)
Reading symbols from /usr/local/samba/lib/private/libinterfaces-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libdcerpc-samba4-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libauth-unix-token-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libauthn-policy-util-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libstable-sort-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libpac-private-
samba.so...
Reading symbols from /lib/x86_64-linux-gnu/libp11-kit.so.0...
(No debugging symbols found in /lib/x86_64-linux-gnu/libp11-kit.so.0)
Reading symbols from /lib/x86_64-linux-gnu/libidn2.so.0...
(No debugging symbols found in /lib/x86_64-linux-gnu/libidn2.so.0)
Reading symbols from /lib/x86_64-linux-gnu/libunistring.so.2...
(No debugging symbols found in /lib/x86_64-linux-gnu/libunistring.so.2)
Reading symbols from /lib/x86_64-linux-gnu/libtasn1.so.6...
(No debugging symbols found in /lib/x86_64-linux-gnu/libtasn1.so.6)
Reading symbols from /lib/x86_64-linux-gnu/libnettle.so.8...
(No debugging symbols found in /lib/x86_64-linux-gnu/libnettle.so.8)
Reading symbols from /lib/x86_64-linux-gnu/libhogweed.so.6...
(No debugging symbols found in /lib/x86_64-linux-gnu/libhogweed.so.6)
Reading symbols from /lib/x86_64-linux-gnu/libgmp.so.10...
(No debugging symbols found in /lib/x86_64-linux-gnu/libgmp.so.10)
Reading symbols from /usr/local/samba/lib/private/libroken-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libasn1-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libheimbase-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libhcrypto-private-
samba.so...
Reading symbols from /lib/x86_64-linux-gnu/libjansson.so.4...
(No debugging symbols found in /lib/x86_64-linux-gnu/libjansson.so.4)
Reading symbols from /usr/local/samba/lib/private/libtdb-wrap-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libhx509-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libwind-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libmsghdr-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libLIBWBCLIENT-OLD-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libad-claims-private-
samba.so...
Reading symbols from /lib/x86_64-linux-gnu/libffi.so.7...
(No debugging symbols found in /lib/x86_64-linux-gnu/libffi.so.7)
Reading symbols from /lib/x86_64-linux-gnu/libresolv.so.2...
Reading symbols from /usr/lib/debug/.build-
id/82/845af78df2c2866f440f3cae5a8103bd3b5acb.debug...
Reading symbols from /usr/local/samba/lib/private/libsmb-transport-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libdsdb-module-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libnetif-private-
samba.so...
Reading symbols from /usr/local/samba/lib/gensec/krb5.so...
Reading symbols from /usr/local/samba/lib/process_model/standard.so...
Reading symbols from /usr/local/samba/lib/process_model/prefork.so...
Reading symbols from /usr/local/samba/lib/service/drepl.so...
Reading symbols from /usr/local/samba/lib/private/libdcerpc-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libdcerpc-pkt-auth-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libcli-smb-common-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libsmbclient-raw-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libhttp-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libdcerpc-samba-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libcli-cldap-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libcli-ldap-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libiov-buf-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libclidns-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libaddns-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libcli-nbt-private-
samba.so...
Reading symbols from /usr/local/samba/lib/service/kcc.so...
Reading symbols from /usr/local/samba/lib/private/libscavenge-dns-
records-private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libdsdb-garbage-
collect-tombstones-private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libdnsserver-common-
private-samba.so...
Reading symbols from /usr/local/samba/lib/service/dns_update.so...
Reading symbols from /usr/local/samba/lib/service/dns.so...
Reading symbols from /usr/local/samba/lib/private/libauth-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/liblibcli-netlogon3-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/liblibcli-lsa3-
private-samba.so...
Reading symbols from /usr/local/samba/lib/libsamba-passdb.so.0...
Reading symbols from /usr/local/samba/lib/libsmbconf.so.0...
Reading symbols from /usr/local/samba/lib/private/libsamba3-util-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libsecrets3-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libgse-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libsmbd-shim-private-
samba.so...
Reading symbols from /lib/x86_64-linux-gnu/libpam.so.0...
(No debugging symbols found in /lib/x86_64-linux-gnu/libpam.so.0)
Reading symbols from /usr/local/samba/lib/private/libmsrpc3-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libsmbldaphelper-
private-samba.so...
Reading symbols from /usr/local/samba/lib/libsmbldap.so.2...
Reading symbols from /lib/x86_64-linux-gnu/libldap_r-2.4.so.2...
(No debugging symbols found in /lib/x86_64-linux-gnu/libldap_r-
2.4.so.2)
Reading symbols from /lib/x86_64-linux-gnu/liblber-2.4.so.2...
(No debugging symbols found in /lib/x86_64-linux-gnu/liblber-2.4.so.2)
Reading symbols from /usr/local/samba/lib/private/libutil-reg-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libCHARSET3-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libsamba-cluster-
support-private-samba.so...
Reading symbols from /lib/x86_64-linux-gnu/libaudit.so.1...
(No debugging symbols found in /lib/x86_64-linux-gnu/libaudit.so.1)
Reading symbols from /usr/local/samba/lib/private/liblibsmb-private-
samba.so...
Reading symbols from /lib/x86_64-linux-gnu/libsasl2.so.2...
(No debugging symbols found in /lib/x86_64-linux-gnu/libsasl2.so.2)
Reading symbols from /lib/x86_64-linux-gnu/libcap-ng.so.0...
(No debugging symbols found in /lib/x86_64-linux-gnu/libcap-ng.so.0)
Reading symbols from /usr/local/samba/lib/service/dcerpc.so...
Reading symbols from /usr/local/samba/lib/private/libdcerpc-server-
private-samba.so...
Reading symbols from /usr/local/samba/lib/libdcerpc-server-core.so.0...
Reading symbols from /usr/local/samba/lib/service/ldap.so...
Reading symbols from /usr/local/samba/lib/service/winbindd.so...
Reading symbols from /usr/local/samba/lib/service/nbtd.so...
Reading symbols from /usr/local/samba/lib/service/wrepl.so...
Reading symbols from /usr/local/samba/lib/service/cldap.so...
Reading symbols from /usr/local/samba/lib/service/ntp_signd.so...
Reading symbols from /usr/local/samba/lib/service/kdc.so...
Reading symbols from /usr/local/samba/lib/private/libHDB-SAMBA4-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libhdb-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libkdc-private-
samba.so...
Reading symbols from /usr/local/samba/lib/private/libgss-preauth-
private-samba.so...
Reading symbols from /usr/local/samba/lib/service/s3fs.so...
Reading symbols from /usr/local/samba/lib/ldb/acl.so...
Reading symbols from /usr/local/samba/lib/ldb/aclread.so...
Reading symbols from /usr/local/samba/lib/ldb/anr.so...
Reading symbols from /usr/local/samba/lib/ldb/asq.so...
Reading symbols from /usr/local/samba/lib/ldb/audit_log.so...
Reading symbols from /usr/local/samba/lib/ldb/count_attrs.so...
Reading symbols from /usr/local/samba/lib/ldb/descriptor.so...
Reading symbols from /usr/local/samba/lib/ldb/dirsync.so...
Reading symbols from /usr/local/samba/lib/ldb/dns_notify.so...
Reading symbols from /usr/local/samba/lib/ldb/dsdb_notification.so...
Reading symbols from /usr/local/samba/lib/ldb/encrypted_secrets.so...
Reading symbols from /usr/local/samba/lib/ldb/extended_dn_in.so...
Reading symbols from /usr/local/samba/lib/ldb/extended_dn_out.so...
Reading symbols from /usr/local/samba/lib/ldb/extended_dn_store.so...
Reading symbols from /usr/local/samba/lib/ldb/group_audit_log.so...
Reading symbols from /usr/local/samba/lib/ldb/ildap.so...
Reading symbols from /usr/local/samba/lib/ldb/instancetype.so...
Reading symbols from /usr/local/samba/lib/ldb/lazy_commit.so...
Reading symbols from /usr/local/samba/lib/ldb/ldap.so...
Reading symbols from /usr/local/samba/lib/ldb/ldb.so...
Reading symbols from /usr/local/samba/lib/private/libldb-tdb-int-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libldb-mdb-int-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libldb-tdb-err-map-
private-samba.so...
Reading symbols from /usr/local/samba/lib/private/libldb-key-value-
private-samba.so...
Reading symbols from /lib/x86_64-linux-gnu/liblmdb.so.0...
(No debugging symbols found in /lib/x86_64-linux-gnu/liblmdb.so.0)
Reading symbols from /usr/local/samba/lib/ldb/ldbsamba_extensions.so...
Reading symbols from /usr/local/samba/lib/ldb/linked_attributes.so...
Reading symbols from /usr/local/samba/lib/ldb/mdb.so...
Reading symbols from /usr/local/samba/lib/ldb/new_partition.so...
Reading symbols from /usr/local/samba/lib/ldb/objectclass.so...
Reading symbols from /usr/local/samba/lib/ldb/objectclass_attrs.so...
Reading symbols from /usr/local/samba/lib/ldb/objectguid.so...
Reading symbols from /usr/local/samba/lib/ldb/operational.so...
Reading symbols from /usr/local/samba/lib/ldb/paged_results.so...
Reading symbols from /usr/local/samba/lib/ldb/paged_searches.so...
Reading symbols from /usr/local/samba/lib/ldb/partition.so...
Reading symbols from /usr/local/samba/lib/ldb/password_hash.so...
Reading symbols from /lib/x86_64-linux-gnu/libcrypt.so.1...
(No debugging symbols found in /lib/x86_64-linux-gnu/libcrypt.so.1)
Reading symbols from /lib/x86_64-linux-gnu/libgpgme.so.11...
(No debugging symbols found in /lib/x86_64-linux-gnu/libgpgme.so.11)
Reading symbols from /lib/x86_64-linux-gnu/libassuan.so.0...
(No debugging symbols found in /lib/x86_64-linux-gnu/libassuan.so.0)
Reading symbols from /lib/x86_64-linux-gnu/libgpg-error.so.0...
(No debugging symbols found in /lib/x86_64-linux-gnu/libgpg-error.so.0)
Reading symbols from /usr/local/samba/lib/ldb/ranged_results.so...
Reading symbols from /usr/local/samba/lib/ldb/rdn_name.so...
Reading symbols from /usr/local/samba/lib/ldb/repl_meta_data.so...
Reading symbols from /usr/local/samba/lib/ldb/resolve_oids.so...
Reading symbols from /usr/local/samba/lib/ldb/rootdse.so...
Reading symbols from /usr/local/samba/lib/ldb/samba3sam.so...
Reading symbols from /usr/local/samba/lib/private/libsmbpasswdparser-
private-samba.so...
Reading symbols from /usr/local/samba/lib/ldb/samba3sid.so...
Reading symbols from /usr/local/samba/lib/ldb/samba_dsdb.so...
Reading symbols from /usr/local/samba/lib/ldb/samba_secrets.so...
Reading symbols from /usr/local/samba/lib/ldb/samldb.so...
Reading symbols from /usr/local/samba/lib/ldb/sample.so...
Reading symbols from /usr/local/samba/lib/ldb/schema_data.so...
Reading symbols from /usr/local/samba/lib/ldb/schema_load.so...
Reading symbols from /usr/local/samba/lib/ldb/secrets_tdb_sync.so...
Reading symbols from /usr/local/samba/lib/ldb/server_sort.so...
Reading symbols from /usr/local/samba/lib/ldb/show_deleted.so...
Reading symbols from /usr/local/samba/lib/ldb/skel.so...
Reading symbols from /usr/local/samba/lib/ldb/subtree_delete.so...
Reading symbols from /usr/local/samba/lib/ldb/subtree_rename.so...
Reading symbols from /usr/local/samba/lib/ldb/tdb.so...
Reading symbols from /usr/local/samba/lib/ldb/tombstone_reanimate.so...
Reading symbols from /usr/local/samba/lib/ldb/unique_object_sids.so...
Reading symbols from /usr/local/samba/lib/ldb/update_keytab.so...
Reading symbols from /usr/local/samba/lib/ldb/vlv.so...
Reading symbols from /usr/local/samba/lib/ldb/wins_ldb.so...
Reading symbols from /lib/x86_64-linux-gnu/libnss_compat.so.2...
Reading symbols from /usr/lib/debug/.build-
id/99/8baf4b0696873bba1bbebd8731b92187622ded.debug...
Reading symbols from /usr/lib/x86_64-linux-gnu/gconv/IBM850.so...
Reading symbols from /usr/lib/debug/.build-
id/48/4b4a90a6a532887417a719d56c24dd43a6cd7e.debug...
Reading symbols from /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so...
Reading symbols from /usr/lib/debug/.build-
id/51/a25775d6b45a3a0724c048e02731425bac0b6d.debug...
0x00007f03d7ee1d66 in __strcasecmp_l_avx () at
../sysdeps/x86_64/multiarch/strcmp-sse42.S:231
(gdb) set pagination 0
(gdb) bt full
#0 0x00007f03d7ee1d66 in __strcasecmp_l_avx () at
../sysdeps/x86_64/multiarch/strcmp-sse42.S:231
No locals.
#1 0x00007f03d84c6d9f in ldb_msg_find_element (msg=0x560b51be9850,
attr_name=0x560b51f1d480 "userAccountControl") at
../../lib/ldb/common/ldb_msg.c:52
i = 15
#2 0x00007f03d84d1fcd in ldb_match_bitmask (ldb=0x560b51eedb80,
oid=0x7f03d84e834d "1.2.840.113556.1.4.803", msg=0x560b51be9850,
attribute_to_match=0x560b51f1d480 "userAccountControl",
value_to_match=0x560b514b53b0, matched=0x7ffce8c31470) at
../../lib/ldb/common/ldb_match.c:480
i = 1374608256
el = 0x7ffce8c31300
#3 0x00007f03d84d221a in ldb_match_extended (ldb=0x560b51eedb80,
msg=0x560b51be9850, tree=0x560b514b5390, scope=LDB_SCOPE_SUBTREE,
matched=0x7ffce8c31470) at ../../lib/ldb/common/ldb_match.c:569
rule = 0x560b51740ad0
#4 0x00007f03d84d2584 in ldb_match_message (ldb=0x560b51eedb80,
msg=0x560b51be9850, tree=0x560b514b5390, scope=LDB_SCOPE_SUBTREE,
matched=0x7ffce8c31470) at ../../lib/ldb/common/ldb_match.c:673
i = 0
ret = 0
#5 0x00007f03d84d2367 in ldb_match_message (ldb=0x560b51eedb80,
msg=0x560b51be9850, tree=0x560b51386660, scope=LDB_SCOPE_SUBTREE,
matched=0x7ffce8c31470) at ../../lib/ldb/common/ldb_match.c:632
i = 1
ret = 0
#6 0x00007f03d84d2367 in ldb_match_message (ldb=0x560b51eedb80,
msg=0x560b51be9850, tree=0x560b51dd8e80, scope=LDB_SCOPE_SUBTREE,
matched=0x7ffce8c31470) at ../../lib/ldb/common/ldb_match.c:632
i = 0
ret = -1783986687
#7 0x00007f03d5cc66bf in ldb_kv_index_filter (ldb_kv=0x560b50ad6db0,
dn_list=0x560b50a34740, ac=0x560b51c0c060, match_count=0x7ffce8c31530,
scope_one_truncation=KEY_NOT_TRUNCATED) at
../../lib/ldb/ldb_key_value/ldb_kv_index.c:2456
ret = 0
matched = false
ldb = 0x560b51eedb80
msg = 0x560b51be9850
i = 21521
num_keys = 30926
previous_guid_key =
"GUID=\377\377`B\222e\272A\233\274\275R\356\350\260k"
keys = 0x560b523dbfd0
#8 0x00007f03d5cc6cd5 in ldb_kv_search_indexed (ac=0x560b51c0c060,
match_count=0x7ffce8c31530) at
../../lib/ldb/ldb_key_value/ldb_kv_index.c:2693
ldb = 0x560b51eedb80
ldb_kv = 0x560b50ad6db0
dn_list = 0x560b50a34740
ret = 0
index_scope = LDB_SCOPE_SUBTREE
scope_one_truncation = KEY_NOT_TRUNCATED
#9 0x00007f03d5cc1d9b in ldb_kv_search (ctx=0x560b51c0c060) at
../../lib/ldb/ldb_key_value/ldb_kv_search.c:739
match_count = 0
ldb = 0x560b51eedb80
module = 0x560b519088f0
req = 0x560b5122f630
data = 0x560b50ad6db0
ldb_kv = 0x560b50ad6db0
ret = 0
#10 0x00007f03d5cc0387 in ldb_kv_callback (ev=0x560b51c0bdf0,
te=0x560b51cd8a50, t=..., private_data=0x560b51c0c060) at
../../lib/ldb/ldb_key_value/ldb_kv.c:1972
ctx = 0x560b51c0c060
ret = 22027
#11 0x00007f03d8510388 in tevent_common_invoke_timer_handler
(te=0x560b51cd8a50, current_time=..., removed=0x0) at
../../lib/tevent/tevent_timed.c:376
handler_ev = 0x560b51c0bdf0
#12 0x00007f03d85105e5 in tevent_common_loop_timer_delay
(ev=0x560b51c0bdf0) at ../../lib/tevent/tevent_timed.c:453
current_time = {tv_sec = 0, tv_usec = 0}
te = 0x560b51cd8a50
ret = 32764
#13 0x00007f03d8513c87 in epoll_event_loop_once (ev=0x560b51c0bdf0,
location=0x7f03d84e3798 "../../lib/ldb/common/ldb.c:657") at
../../lib/tevent/tevent_epoll.c:909
epoll_ev = 0x560b51546260
tval = {tv_sec = 140724213585600, tv_usec = 139654490839000}
panic_triggered = false
#14 0x00007f03d850f198 in std_event_loop_once (ev=0x560b51c0bdf0,
location=0x7f03d84e3798 "../../lib/ldb/common/ldb.c:657") at
../../lib/tevent/tevent_standard.c:110
glue_ptr = 0x560b511378d0
glue = 0x560b511378d0
ret = 0
#15 0x00007f03d8505385 in _tevent_loop_once (ev=0x560b51c0bdf0,
location=0x7f03d84e3798 "../../lib/ldb/common/ldb.c:657") at
../../lib/tevent/tevent.c:820
ret = 32764
nesting_stack_ptr = 0x0
__func__ = "_tevent_loop_once"
#16 0x00007f03d84bb609 in ldb_wait (handle=0x560b520d6a60,
type=LDB_WAIT_ALL) at ../../lib/ldb/common/ldb.c:657
ev = 0x560b51c0bdf0
ret = 22027
#17 0x00007f03d5eb7c2a in ldapsrv_SearchRequest (call=0x560b50df4ea0)
at ../../source4/ldap_server/ldap_backend.c:953
req = 0x560b513472d8
done = 0x8f1
done_r = 0x560b50db0ef0
local_ctx = 0x560b50bc6a00
callback_ctx = 0x560b50a06ff0
samdb = 0x560b51eedb80
basedn = 0x560b522e9e10
lreq = 0x560b516774a0
search_control = 0x15cb9
search_options = 0x8f1
extended_dn_control = 0x560b50dd06b0
extended_dn_decoded = 0x560b51763c60
notification_control = 0x0
scope = LDB_SCOPE_SUBTREE
attrs = 0x560b50c78cd0
scope_str = 0x7f03d836ee77 "SUB"
errstr = 0x0
result = -1
ldb_ret = 0
i = 9
extended_type = 0
start_time = {tv_sec = 1732171649, tv_usec = 56902}
warning_time = {tv_sec = 1732171679, tv_usec = 56902}
__func__ = "ldapsrv_SearchRequest"
#18 0x00007f03d5ebaef3 in ldapsrv_do_call (call=0x560b50df4ea0) at
../../source4/ldap_server/ldap_backend.c:1655
i = 2
msg = 0x560b513472d0
conn = 0x560b509d55f0
status = {v = 3905100288}
expired = false
__func__ = "ldapsrv_do_call"
#19 0x00007f03d5eb3857 in ldapsrv_process_call_trigger
(req=0x560b518adec0, private_data=0x0) at
../../source4/ldap_server/ldap_server.c:1062
state = 0x560b518ae0a0
conn = 0x560b509d55f0
status = {v = 1375399920}
#20 0x00007f03d8507c69 in tevent_queue_immediate_trigger
(ev=0x560b51f7e530, im=0x560b5202b860, private_data=0x560b51faeff0) at
../../lib/tevent/tevent_queue.c:167
q = 0x560b51faeff0
#21 0x00007f03d85075f5 in tevent_common_invoke_immediate_handler
(im=0x560b5202b860, removed=0x0) at
../../lib/tevent/tevent_immediate.c:190
handler_ev = 0x560b51f7e530
ev = 0x560b51f7e530
cur = {prev = 0x560b5202b860, next = 0x0, event_ctx =
0x560b51f7e530, wrapper = 0x0, busy = false, destroyed = false,
detach_ev_ctx = 0x0, handler = 0x7f03d8507b87
<tevent_queue_immediate_trigger>, private_data = 0x560b51faeff0,
handler_name = 0x7f03d8514668 "tevent_queue_immediate_trigger",
create_location = 0x7f03d85146e8 "../../lib/tevent/tevent_queue.c:128",
schedule_location = 0x7f03d8514778
"../../lib/tevent/tevent_queue.c:256", cancel_fn = 0x0, additional_data
= 0x0, tag = 0}
#22 0x00007f03d8507761 in tevent_common_loop_immediate
(ev=0x560b51f7e530) at ../../lib/tevent/tevent_immediate.c:236
im = 0x560b5202b860
ret = 32764
#23 0x00007f03d8513c6d in epoll_event_loop_once (ev=0x560b51f7e530,
location=0x7f03d672f0d8 "../../source4/samba/process_prefork.c:838") at
../../lib/tevent/tevent_epoll.c:905
epoll_ev = 0x560b522e5c10
tval = {tv_sec = 140724213586896, tv_usec = 139654490839000}
panic_triggered = false
#24 0x00007f03d850f198 in std_event_loop_once (ev=0x560b51f7e530,
location=0x7f03d672f0d8 "../../source4/samba/process_prefork.c:838") at
../../lib/tevent/tevent_standard.c:110
glue_ptr = 0x560b522e8a50
glue = 0x560b522e8a50
ret = 32515
#25 0x00007f03d8505385 in _tevent_loop_once (ev=0x560b51f7e530,
location=0x7f03d672f0d8 "../../source4/samba/process_prefork.c:838") at
../../lib/tevent/tevent.c:820
ret = 0
nesting_stack_ptr = 0x0
__func__ = "_tevent_loop_once"
#26 0x00007f03d85056fe in tevent_common_loop_wait (ev=0x560b51f7e530,
location=0x7f03d672f0d8 "../../source4/samba/process_prefork.c:838") at
../../lib/tevent/tevent.c:949
ret = 0
#27 0x00007f03d850f23a in std_event_loop_wait (ev=0x560b51f7e530,
location=0x7f03d672f0d8 "../../source4/samba/process_prefork.c:838") at
../../lib/tevent/tevent_standard.c:141
glue_ptr = 0x560b522e8a50
glue = 0x560b522e8a50
ret = 22027
#28 0x00007f03d85057a1 in _tevent_loop_wait (ev=0x560b51f7e530,
location=0x7f03d672f0d8 "../../source4/samba/process_prefork.c:838") at
../../lib/tevent/tevent.c:968
No locals.
#29 0x00007f03d672d2a6 in prefork_fork_worker (task=0x560b51f5d200,
ev=0x0, ev2=0x560b51f7e530, lp_ctx=0x560b50903c30,
service_details=0x560b5091b5f0, service_name=0x7f03d5ebf4af "ldap",
control_pipe=0x7ffce8c31e40, restart_delay=0, pd=0x7ffce8c31dbc) at
../../source4/samba/process_prefork.c:838
w = 0x560b508eabc0
pid = 0
#30 0x00007f03d672c3b2 in prefork_fork_master (ev=0x560b5091c1c0,
lp_ctx=0x560b50903c30, service_name=0x7f03d5ebf4af "ldap",
new_task_fn=0x7f03d84ac77b <task_server_callback>,
private_data=0x560b50998b80, service_details=0x560b5091b5f0,
restart_delay=0, from_parent_fd=21) at
../../source4/samba/process_prefork.c:453
pid = 89229
t = 0x560b508e8df0
i = 1
num_children = 4
ev2 = 0x560b51f7e530
task = 0x560b51f5d200
pd = {instances = 1}
samba_tevent_trace_state = 0x560b5091f090
control_pipe = {41, 42}
__func__ = "prefork_fork_master"
#31 0x00007f03d672d317 in prefork_new_task (ev=0x560b5091c1c0,
lp_ctx=0x560b50903c30, service_name=0x7f03d5ebf4af "ldap",
new_task_fn=0x7f03d84ac77b <task_server_callback>,
private_data=0x560b50998b80, service_details=0x560b5091b5f0,
from_parent_fd=21) at ../../source4/samba/process_prefork.c:858
No locals.
#32 0x00007f03d84ac96a in task_server_startup
(event_ctx=0x560b5091c1c0, lp_ctx=0x560b50903c30,
service_name=0x7f03d5ebf4af "ldap", model_ops=0x7f03d6730a80
<prefork_ops>, service_details=0x560b5091b5f0, from_parent_fd=21) at
../../source4/samba/service_task.c:127
state = 0x560b50998b80
#33 0x00007f03d84aa80d in server_service_init (name=0x560b5090b500
"ldap", event_context=0x560b5091c1c0, lp_ctx=0x560b50903c30,
model_ops=0x7f03d6730a80 <prefork_ops>, from_parent_fd=21) at
../../source4/samba/service.c:70
srv = 0x560b5091b560
#34 0x00007f03d84aa98a in server_service_startup
(event_ctx=0x560b5091c1c0, lp_ctx=0x560b50903c30, model=0x560b50014841
"prefork", server_services=0x560b5090b250, from_parent_fd=21) at
../../source4/samba/service.c:107
status = {v = 0}
i = 4
model_ops = 0x7f03d6730a80 <prefork_ops>
__func__ = "server_service_startup"
#35 0x0000560b5001305c in binary_smbd_main (mem_ctx=0x560b50902270,
binary_name=0x560b50014741 "samba", argc=1, argv=0x7ffce8c323b8) at
../../source4/samba/server.c:952
child_pipe = {21, 22}
rc = 0
start_services = true
cmdline_daemon_cfg = 0x7f03d84fdde0 <cmdline_daemon_cfg>
db_is_backup = false
opt = -1
ret = 0
pc = 0x560b5090e3d0
stdin_event_flags = 0
status = {v = 0}
model = 0x560b50014841 "prefork"
max_runtime = 0
st = {st_dev = 5, st_ino = 4, st_nlink = 1, st_mode = 8630,
st_uid = 0, st_gid = 0, __pad0 = 0, st_rdev = 259, st_size = 0,
st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1729160061,
tv_nsec = 948000000}, st_mtim = {tv_sec = 1729160061, tv_nsec =
948000000}, st_ctim = {tv_sec = 1729160061, tv_nsec = 948000000},
__glibc_reserved = {0, 0, 0}}
OPT_PROCESS_MODEL = OPT_PROCESS_MODEL
OPT_SHOW_BUILD = OPT_SHOW_BUILD
long_options = {{longName = 0x0, shortName = 0 '\000', argInfo
= 4, arg = 0x7f03d7f8e160 <poptHelpOptions>, val = 0, descrip =
0x560b50014849 "Help options:", argDescrip = 0x0}, {longName =
0x560b50014857 "model", shortName = 77 'M', argInfo = 1, arg = 0x0, val
= 1000, descrip = 0x560b5001485d "Select process model", argDescrip =
0x560b50014872 "MODEL"}, {longName = 0x560b50014878 "maximum-runtime",
shortName = 0 '\000', argInfo = 2, arg = 0x7ffce8c31ff8, val = 0,
descrip = 0x560b50014888 "set maximum runtime of the server process,
till autotermination", argDescrip = 0x560b500148c8 "seconds"},
{longName = 0x560b500148d0 "show-build", shortName = 98 'b', argInfo =
0, arg = 0x0, val = 1001, descrip = 0x560b500148db "show build info",
argDescrip = 0x0}, {longName = 0x0, shortName = 0 '\000', argInfo = 4,
arg = 0x7f03d84fd220 <popt_common_samba>, val = 0, descrip =
0x560b500148eb "Common Samba options:", argDescrip = 0x0}, {longName =
0x0, shortName = 0 '\000', argInfo = 4, arg = 0x7f03d84fda80
<popt_common_daemon>, val = 0, descrip = 0x560b50014901 "Daemon
options:", argDescrip = 0x0}, {longName = 0x0, shortName = 0 '\000',
argInfo = 4, arg = 0x7f03d84fd9e0 <popt_common_version>, val = 0,
descrip = 0x560b50014911 "Version options:", argDescrip = 0x0},
{longName = 0x0, shortName = 0 '\000', argInfo = 0, arg = 0x0, val = 0,
descrip = 0x0, argDescrip = 0x0}}
state = 0x560b50911f30
se = 0x560b5091d1d0
samba_tevent_trace_state = 0x560b5091ac90
lp_ctx = 0x560b50903c30
ok = true
__func__ = "binary_smbd_main"
__FUNCTION__ = "binary_smbd_main"
#36 0x0000560b500131b1 in main (argc=1, argv=0x7ffce8c323b8) at
../../source4/samba/server.c:996
mem_ctx = 0x560b50902270
rc = 32764
(gdb) quit
A debugging session is active.
Inferior 1 [process 89273] will be detached.
Am Donnerstag, dem 21.11.2024 um 06:50 +0000 schrieb Heinz Hölzl via
samba:
> Hi,
>
> here the output of
>
> gdb -p <PID>
> bt full
>
> i hope this hepls
>
> Heinz
>
> Am Mittwoch, dem 20.11.2024 um 11:04 +1300 schrieb Douglas Bagnall:
> > [Sie erhalten nicht häufig E-Mails von
> > douglas.bagnall at catalyst.net.nz. Weitere Informationen, warum dies
> > wichtig ist, finden Sie unter
> > https://aka.ms/LearnAboutSenderIdentification ]
> >
> > On 19/11/24 02:29, Heinz Hölzl via samba wrote:
> > > hi,
> > >
> > > I have to activate the thread again ...
> > >
> > > we keep having preformance problems on the DC, especially on
> > > Monday
> > > morning when the PCs are switched on and the users log in.
> > >
> > > some ldap-searches take a very long time, sometimes even over 15
> > > seconds
> > >
> > > e.g:
> > >
> > > ldapsrv_SearchRequest: LDAP Query: Duration was 15.74s,
> > > SearchRequest
> > > by S-1-5-21-xxxxxxxxxx-xxxxxxxxxxxxxx-8585 from
> > > ipv4:192.168.35.117:49240 filter: [(objectClass=user)] basedn:
> > > [DC=example,DC=net] scope: [SUB] result: Success
> > >
> > >
> > > The load of the ldap processes reaches 100% of a CPU. The
> > > ldapserver is
> > > then no longer responsive.
> > >
> > > It seems that the ldapsearches are blocking each other.
> > >
> > > The result is very long response times for login and other
> > > authentications.
> > >
> > > we have 6 DC, approx. 10,000 active users and approx. 5000 PC, 10
> > > samba
> > > fileservers, all with current samba version
> > >
> > >
> > > is there a way to increase the performance here?
> > >
> >
> > It would not hurt to delete about 6000 old machine accounts.
> >
> > But it probably comes down to member searches on big groups, as
> > discussed in this other thread:
> >
> > https://lists.samba.org/archive/samba/2024-October/249848.html
> >
> > The underlying problem is that linked attributes (like member) are
> > not
> > indexed.
> >
> > Why are linked attributes not indexed? because that is what the
> > Microsoft AD schema says.
> >
> > Why does the AD schema say that? Perhaps because backlinks (like
> > memberOf) are effectively an index, so an additional index seemed
> > redundant. Perhaps Microsoft AD actually uses the backlinks as an
> > index
> > in linked attribute searches. Or perhaps Samba AD is used in
> > different
> > ways (e.g. with OpenLDAP slurping up all the memberships), so
> > Microsoft
> > does not often hit this problem.
> >
> > It is possible to tell Samba to index 'member'. That would probably
> > make
> > this problem vanish, and there's a reasonable chance there would be
> > no
> > ill effects. I don't know if anyone has actually tried that.
> >
> > I would like to solve this as a development problem, but that
> > depends
> > on
> > time and funding and won't help you now.
> >
> > BTW, that last thread ended with:
> >
> > > Am Freitag, dem 30.09.2022 um 09:14 +1300 schrieb Andrew
> > > Bartlett:
> > > > [Sie erhalten nicht häufig E-Mails von abartlet at samba.org.
> > > > Weitere
> > > > Informationen, warum dies wichtig ist, finden Sie unter
> > > > https://aka.ms/LearnAboutSenderIdentification ]
> >
> > > >
> > > > Work out which PIDs are high CPU use:
> > > >
> > > > netstat -avp | grep <PID>
> > > >
> > > > gdb -p <PID>
> > > > bt full
> > > >
> > > > strace -p <PID>
> > > >
> > > > as well as a FlameGraph:
> > > > https://www.brendangregg.com/FlameGraphs/cpuflamegraphs.html#Instructions
> > > >
> > > > I would love to get to the bottom of this.
> > > > Andrew Bartlett
> >
> > which would still be useful. Just a sampling of
> >
> > > > gdb -p <PID>
> > > > bt full
> >
> > would confirm where the server was spending its time. If `bt full`
> > looks
> > too revealing, you could use `bt` instead.
> >
> > Douglas
> >
>
More information about the samba
mailing list