Many smbd processes exist and are leaking memory

Solution Unverified - Updated -

Issue

  • Core dump is output by SIGABRT due to high memory usage of smbd process
$ ps aux | grep smbd | wc -l
62

$ ps aux | grep smbd | sort -k 6 -n -r | head -n3
test1 165694  1.4 65.3 261360920 257471164 ? S    May15 837:08 /usr/sbin/smbd --foreground --no-process-group
test2      82169  0.1  3.9 16855096 15667400 ?   S    Jun07  33:39 /usr/sbin/smbd --foreground --no-process-group
test3 238739  0.0  1.0 5446728 4261912 ?     S    May31  13:50 /usr/sbin/smbd --foreground --no-process-group
smbd[395429]: [2024/06/24 10:30:08.196658,  0] ../lib/util/fault.c:78(fault_report)
smbd[395429]:  ===============================================================
smbd[395429]: [2024/06/24 10:30:08.196701,  0] ../lib/util/fault.c:79(fault_report)
smbd[395429]:  INTERNAL ERROR: Signal 6 in pid 395429 (4.7.1)
smbd[395429]:  Please read the Trouble-Shooting section of the Samba HOWTO
smbd[395429]: [2024/06/24 10:30:08.196723,  0] ../lib/util/fault.c:81(fault_report)
smbd[395429]:  ===============================================================
smbd[395429]: [2024/06/24 10:30:08.196738,  0] ../source3/lib/util.c:804(smb_panic_s3)
smbd[395429]:  PANIC (pid 395429): internal error
smbd[395429]: [2024/06/24 10:30:08.217090,  0] ../source3/lib/util.c:915(log_stack_trace)
smbd[395429]:  BACKTRACE: 30 stack frames:
smbd[395429]:   #0 /lib64/libsmbconf.so.0(log_stack_trace+0x1a) [0x7f54dfd32a3a]
smbd[395429]:   #1 /lib64/libsmbconf.so.0(smb_panic_s3+0x20) [0x7f54dfd32b10]
kernel: Core dump to |/usr/libexec/abrt-hook-ccpp 6 18446744073709551615 395429 0 0 1719192608 e 395429 395429 kcaefs pipe failed
smbd[395429]:   #2 /lib64/libsamba-util.so.0(smb_panic+0x2f) [0x7f54e1e2feaf]
smbd[395429]:   #3 /lib64/libsamba-util.so.0(+0x250c6) [0x7f54e1e300c6]
smbd[395429]:   #4 /lib64/libpthread.so.0(+0xf5d0) [0x7f54e22975d0]
smbd[395429]:   #5 /lib64/libc.so.6(gsignal+0x37) [0x7f54de39e207]
smbd[395429]:   #6 /lib64/libc.so.6(abort+0x148) [0x7f54de39f8f8]
smbd[395429]:   #7 /lib64/libtevent-util.so.0(+0x10b1) [0x7f54e10870b1]
smbd[395429]:   #8 /usr/lib64/samba/libsmbd-base-samba4.so(+0x1bfd84) [0x7f54e1a52d84]
smbd[395429]:   #9 /lib64/libtevent.so.0(_tevent_req_error+0x22) [0x7f54de73b212]
smbd[395429]:   #10 /usr/lib64/samba/libsmbd-base-samba4.so(+0x1bff23) [0x7f54e1a52f23]
smbd[395429]:   #11 /lib64/libtevent.so.0(_tevent_req_error+0x22) [0x7f54de73b212]
smbd[395429]:   #12 /lib64/libtevent.so.0(_tevent_req_error+0x22) [0x7f54de73b212]
smbd[395429]:   #13 /usr/lib64/samba/libsmbd-base-samba4.so(+0xe3540) [0x7f54e1976540]
smbd[395429]:   #14 /lib64/libtevent.so.0(tevent_common_loop_immediate+0xda) [0x7f54de73a9ea]
smbd[395429]:   #15 /lib64/libtevent.so.0(+0xa5fd) [0x7f54de73f5fd]
smbd[395429]:   #16 /lib64/libtevent.so.0(+0x8c07) [0x7f54de73dc07]
smbd[395429]:   #17 /lib64/libtevent.so.0(_tevent_loop_once+0x9d) [0x7f54de739ffd]
smbd[395429]:   #18 /lib64/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7f54de73a22b]
smbd[395429]:   #19 /lib64/libtevent.so.0(+0x8ba7) [0x7f54de73dba7]
smbd[395429]:   #20 /usr/lib64/samba/libsmbd-base-samba4.so(smbd_process+0x6e4) [0x7f54e1a36584]
smbd[395429]:   #21 /usr/sbin/smbd(+0xd1d4) [0x55b78e9781d4]
smbd[395429]:   #22 /lib64/libtevent.so.0(+0xa83b) [0x7f54de73f83b]
smbd[395429]:   #23 /lib64/libtevent.so.0(+0x8c07) [0x7f54de73dc07]
smbd[395429]:   #24 /lib64/libtevent.so.0(_tevent_loop_once+0x9d) [0x7f54de739ffd]
smbd[395429]:   #25 /lib64/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7f54de73a22b]
smbd[395429]:   #26 /lib64/libtevent.so.0(+0x8ba7) [0x7f54de73dba7]
smbd[395429]:   #27 /usr/sbin/smbd(main+0x1afe) [0x55b78e97325e]
smbd[395429]:   #28 /lib64/libc.so.6(__libc_start_main+0xf5) [0x7f54de38a3d5]
smbd[395429]:   #29 /usr/sbin/smbd(+0x8571) [0x55b78e973571]
smbd[395429]: [2024/06/24 10:30:08.217295,  0] ../source3/lib/dumpcore.c:318(dump_core)
smbd[395429]:  coredump is handled by helper binary specified at /proc/sys/kernel/core_pattern
[...]
abrt-hook-ccpp: Process 427418 (smbd) of user 0 killed by SIGABRT - dumping core

Environment

  • Red Hat Enterprise Linux 7
  • samba-4.7.1-9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content