Date: Thu, 04 Mar 2021 08:50:13 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 254006] net/samba(all versions): rc.d/samba_server stop/restart patch for restart crash Message-ID: <bug-254006-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254006 Bug ID: 254006 Summary: net/samba(all versions): rc.d/samba_server stop/restart patch for restart crash Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: pen@lysator.liu.se Created attachment 222968 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D222968&action= =3Dedit Patch to fix samba_server rc.d script to wait for all processes to die The rc.d/samba_server script when stopping and/or restarting samba doesn't = wait for _all_ smbd processes to terminate before continuing - it only wait=C2= =B4s for the master process. This can cause Samba (smbd) processes to core dump if a= new master smbd process gets started before all the old processes has had time = to terminate. With a non-busy server this rarely get noticed since it happens during samba shutdown and only on busy servers - and for you to get the core dumps you n= eed to have enabled sugid-coredumps... /etc/sysctl.conf: kern.corefile =3D /var/cores/%N.%P.core kern.sugid_coredump =3D 1 This is related to this Samba issue: https://bugzilla.samba.org/show_bug.cgi?id=3D14636 The solution is to modify the rc.d/samba_server script so it waits for all = smbd processes to terminate, not just the master process, before continuing. Please find enclosed a patch that implements this wait-loop. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254006-7788>