Anantha Raghava
2023-Apr-08 02:13 UTC
[Samba] Samba-ad-dc service stops with segfault error
Hello, Just yesterday, we installed the new samba version - 4.18.1 - and configured AD domain controllers. Samba service started without any issues. But with in 10 minutes of starting the service entered failed state. Restarting the service is also resulting in the same issue. Service enters failed state with in 15-20 minutes I have deployed samba on RHEL 8. When the service enters the failed state, we logs shows as follows. How do we fix it? [2023/04/07 15:39:31.302629,? 0] ../../lib/util/fault.c:173(smb_panic_log) ============================================================== [2023/04/07 15:39:31.302767,? 0] ../../lib/util/fault.c:177(smb_panic_log) INTERNAL ERROR: Signal 11: Segmentation fault in pid 2652291 (4.18.1) [2023/04/07 15:39:31.302820,? 0] ../../lib/util/fault.c:182(smb_panic_log) If you are running a recent Samba version, and if you think this problem is not yet fixed in the latest versions, please consider reporting this bug, see https://wiki.samba.org/index.php/Bug_Reporting [2023/04/07 15:39:31.302862,? 0] ../../lib/util/fault.c:183(smb_panic_log) ============================================================== [2023/04/07 15:39:31.302900,? 0] ../../lib/util/fault.c:185(smb_panic_log) PANIC (pid 2652291): Signal 11: Segmentation fault in 4.18.1 [2023/04/07 15:39:31.303232,? 0] ../../lib/uti l/fault.c:293(log_stack_trace) BACKTRACE: 28 stack frames: #0 /usr/local/samba/lib/private/libgenrand-samba4.so(log_stack_trace+0x1f) [0x7f61768d280f] #1 /usr/local/samba/lib/private/libgenrand-samba4.so(smb_panic_log+0x1b1) [0x7f61768d27a3] #2 /usr/local/samba/lib/private/libgenrand-samba4.so(smb_panic+0x18) [0x7f61768d27be] ?#3 /usr/local/samba/lib/private/libgenrand-samba4.so(+0x1307) [0x7f61768d2307] #4 /usr/local/samba/lib/private/libgenrand-samba4.so(+0x131c) [0x7f61768d231c] #5 /lib64/libpthread.so.0(+0x12cf0) [0x7f6176492cf0] #6 /opt/virsec/lib/libvsp-hmm-agent.so(read_data+0x184) [0x7f6179cf12a4] #7 /usr/local/samba/lib/private/libsmbd-base-samba4.so(+0x11934b) [0x7f61795c134b] #8 /usr/local/samba/lib/private/libsmbd-base-samba4.so(+0x119bcf) [0x7f61795c1bcf] #9 /usr/local/samba/lib/private/libsmbd-base-samba4.so(+0x119def) [0x7f61795c1def] #10 /usr/local/samba/lib/libsmbconf.so.0(+0x57105) [0x7f6178bac105] #11 /usr/local/samba/lib/libsmbconf.so.0(+0x572c1) [0x7f6178bac2c1] #12 /usr/local/samba/lib/libsmbconf.so.0(+0x54e52) [0x7f6178ba9e52] #13 /usr/local/samba/lib/private/libmessages-dgm-samba4.so(+0x70a9) [0x7f6173a3a0a9] #14 /usr/local/samba/lib/private/libmessages-dgm-samba4.so(+0x5b81 ) [0x7f6173a38b81] #15 /usr/local/samba/lib/private/libmessages-dgm-samba4.so(+0x57f0) [0x7f6173a387f0] #16 /usr/local/samba/lib/private/libtevent-samba4.so(tevent_common_invoke_fd_handler+0x11d) [0x7f61780dc5e5] #17 /usr/local/samba/lib/private/libtevent-samba4.so(+0x12013) [0x7f61780e7013] #18 /usr/local/samba/lib/private/libtevent-samba4.so(+0x1265a) [0x7f61780e765a] #19 /usr/local/samba/lib/private/libtevent-samba4.so(+0xeffc) [0x7f61780e3ffc] #20 /usr/local/samba/lib/private/libtevent-samba4.so(_tevent_loop_once+0x10f) [0x7f61780db251] #21 /usr/local/samba/lib/private/libtevent-samba4.so(tevent_common_loop_wait+0x25) [0x7f61780db576] #22 /usr/local/samba/lib/private/libtevent-samba4.so(+0xf09e) [0x7f61780e409e] #23 /usr/local/samba/lib/private/libtevent-samba4.so(_tevent_loop_wait+0x2b) [0x7f61780db619] #24 /usr/local/samba/sbin/smbd(+0x9554) [0x55d5a3a05554] #25 /usr/local/samba/sbin/smbd(main+0x170f) [0x55d5a3a074fc] #26 /lib64/libc.so.6(__libc_start_main+0xe5) [0x7f6175ee7d85] #27 /usr/local/samba/sbin/smbd(_start+0x2e) [0x55d5a3a0185e] [2023/04/07 15:39:31.303565,? 0] ../../source3/lib/dumpcore.c:318(dump_core) coredump is handled by helper binary specified at /proc/sys/kernel/core_pattern [2023/04/07 15:39:3 1.436826,? 0] ../../lib/util/fault.c:173(smb_panic_log) ============================================================== [2023/04/07 15:39:31.437097,? 0] ../../lib/util/fault.c:177(smb_panic_log) INTERNAL ERROR: smbd_scavenger_parent_dead in pid 3517117 (4.18.1) [2023/04/07 15:39:31.437253,? 0] ../../lib/util/fault.c:182(smb_panic_log) If you are running a recent Samba version, and if you think this problem is not yet fixed in the latest versions, please consider reporting this bug, see https://wiki.samba.org/index.php/Bug_Reporting [2023/04/07 15:39:31.437308,? 0] ../../lib/util/fault.c:183(smb_panic_log) ============================================================== [2023/04/07 15:39:31.437350,? 0] ../../lib/util/fault.c:185(smb_panic_log) PANIC (pid 3517117): smbd_scavenger_parent_dead in 4.18.1 [2023/04/07 15:39:31.438139,? 0] ../../lib/util/fault.c:293(log_stack_trace) BACKTRACE: 33 stack frames: #0 /usr/local/samba/lib/private/libgenrand-samba4.so(log_stack_trace+0x1f) [0x7f61768d280f] #1 /usr/local/samba/lib/private/libgenrand-samba4.so(smb_panic_log+0x1b1) [0x7f61768d27a3] #2 /usr/local/samba/lib/pri vate/libgenrand-samba4.so(smb_panic+0x18) [0x7f61768d27be] #3 /usr/local/samba/lib/private/libsmbd-base-samba4.so(+0x115969) [0x7f61795bd969] #4 /usr/local/samba/lib/private/libsmbd-base-samba4.so(smbd_exit_server_cleanly+0) [0x7f61795bda17] #5 /usr/local/samba/lib/private/libsmbd-shim-samba4.so(exit_server+0x28) [0x7f6176ad5959] #6 /usr/local/samba/lib/private/libsmbd-base-samba4.so(+0x1190dc) [0x7f61795c10dc] #7 /usr/local/samba/lib/private/libtevent-samba4.so(tevent_common_invoke_fd_handler+0x11d) [0x7f61780dc5e5] #8 /usr/local/samba/lib/private/libtevent-samba4.so(+0x12013) [0x7f61780e7013] #9 /usr/local/samba/lib/private/libtevent-samba4.so (+0x1265a) [0x7f61780e765a] #10 /usr/local/samba/lib/private/libtevent-samba4.so(+0xeffc) [0x7f61780e3ffc] #11 /usr/local/samba/lib/private/libtevent-samba4.so(_tevent_loop_once+0x10f) [0x7f61780db251] #12 /usr/local/samba/lib/private/libsmbd-base-samba4.so(+0x118dc8) [0x7f61795c0dc8] #13 /usr/local/samba/lib/private/libsmbd-base-samba4.so(+0x119b4c) [0x7f61795c1b4c] #14 /usr/local/samba/lib/private/libsmbd-base-samba4.so(+0x119def) [0x7f61795c1def] #15 /usr/local/samba/lib/libsmbconf.so.0(+0x57105) [0x7f6178bac105] #16 /usr/local/samba/lib/libsmbconf.so.0(+0x572c1) [0x7f6178bac2c1] #17 /usr/local/ samba/lib/libsmbconf.so.0(+0x54e52) [0x7f6178ba9e52] #18 /usr/local/samba/lib/private/libmessages-dgm-samba4.so(+0x70a9) [0x7f6173a3a0a9] #19 /usr/local/samba/lib/private/libmessages-dgm-samba4.so(+0x5b81) [0x7f6173a38b81] #20 /usr/local/samba/lib/private/libmessages-dgm-samba4.so(+0x57f0) [0x7f6173a387f0] #21 /usr/local/samba/lib/private/libtevent-samba4.so(tevent_common_invoke_fd_handler+0x11d) [0x7f61780dc5e5] #22 /usr/local/samba/lib/private/libtevent-samba4.so(+0x12013) [0x7f61780e7013] #23 /usr/local/samba/lib/private/libtevent-samba4.so(+0x1265a) [0x7f61780e765a] #24 /usr/local/samba/lib/private/libtevent-samba4.so(+0xeffc) [0x7f61780e3ff c] #25 /usr/local/samba/lib/private/libtevent-samba4.so(_tevent_loop_once+0x10f) [0x7f61780db251] #26 /usr/local/samba/lib/private/libtevent-samba4.so(tevent_common_loop_wait+0x25) [0x7f61780db576] #27 /usr/local/samba/lib/private/libtevent-samba4.so(+0xf09e) [0x7f61780e409e] #28 /usr/local/samba/lib/private/libtevent-samba4.so(_tevent_loop_wait+0x2b) [0x7f61780db619] #29 /usr/local/samba/sbin/smbd(+0x9554) [0x55d5a3a05554] #30 /usr/local/samba/sbin/smbd(main+0x170f) [0x55d5a3a074fc] #31 /lib64/libc.so.6(__libc_start_main+0xe5) [0x7f6175ee7d85] #32 /usr/local/samba/sbin/smbd(_start+0x2e) [0x55d5a3a 0185e] [2023/04/07 15:39:31.439017,? 0] ../../source3/lib/dumpcore.c:318(dump_core) coredump is handled by helper binary specified at /proc/sys/kernel/core_pattern [2023/04/07 15:39:31.440402,? 0] ../../file_server/file_server.c:45(file_server_smbd_done) file_server smbd daemon died with exit status 6 [2023/04/07 15:39:31.440524,? 0] ../../source4/samba/service_task.c:36(task_server_terminate) task_server_terminate: task_server_terminate: [smbd child process exited] [2023/04/07 15:39:31.443764,? 0] ../../source4/samba/server.c:392(samba_terminate) samba_terminate: samba_terminate of samba 2652165: smbd child process exited [2023/04/07 15:39:31.453682,? 0] ../../source3/winbindd/winbindd_dual.c:1959(winbindd_sig_term_handler) ? Got sig[15] terminate (is_parent=1) ----- Thanks & Regards, Raghav DISCLAIMER: This e-mail communication and any attachments may be privileged and confidential to Exzatech Consulting And Services Pvt. Ltd., Bangalore, and are intended only for the use of the recipients named above If you are not the addressee you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return e-mail. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. Do not print this e-mail unless required. Save Paper & trees.
Douglas Bagnall
2023-Apr-08 02:56 UTC
[Samba] Samba-ad-dc service stops with segfault error
On 8/04/23 14:13, Anantha Raghava via samba wrote:> Hello, > > Just yesterday, we installed the new samba version - 4.18.1 - and configured AD > domain controllers. Samba service started without any issues. But with in 10 > minutes of starting the service entered failed state. Restarting the service is > also resulting in the same issue. Service enters failed state with in 15-20 minutes > > I have deployed samba on RHEL 8. > > When the service enters the failed state, we logs shows as follows. How do we > fix it?> #2 /usr/local/samba/lib/private/libgenrand-samba4.so(smb_panic+0x18) > [0x7f61768d27be] >This suggests to me that you don't have a recent gnutls installed, or gnutls is suffering some kind of crisis, perhaps thinking it lacks entropy. I don't know how you could manage to not have recent enough gnutls on RHEL 8, but perhaps if you provide details of how you installed Samba, on what hardware, etc, someone will tell you where it went wrong. cheers, Douglas