From owner-freebsd-ports@freebsd.org Wed May 8 11:00:05 2019 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EFFF415A67C3 for ; Wed, 8 May 2019 11:00:04 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.netfence.it (net-2-44-121-52.cust.vodafonedsl.it [2.44.121.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mailserver.netfence.it", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 486966C8BC; Wed, 8 May 2019 11:00:03 +0000 (UTC) (envelope-from ml@netfence.it) Received: from alamar.ventu (alamar.local.netfence.it [10.1.2.18]) (authenticated bits=0) by soth.netfence.it (8.15.2/8.15.2) with ESMTPSA id x48AxvUn057235 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 8 May 2019 13:00:01 +0200 (CEST) (envelope-from ml@netfence.it) X-Authentication-Warning: soth.netfence.it: Host alamar.local.netfence.it [10.1.2.18] claimed to be alamar.ventu Subject: Re: Samba dump (useless) core To: Konstantin Belousov Cc: freebsd-ports@freebsd.org, timur@FreeBSD.org References: <169305b9-64ea-6305-8ef2-9c11b8c9baf3@netfence.it> <20190508102504.GY2748@kib.kiev.ua> From: Andrea Venturoli Message-ID: <0eb47166-ddaf-d0ed-7730-91341634c72c@netfence.it> Date: Wed, 8 May 2019 12:59:57 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190508102504.GY2748@kib.kiev.ua> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 486966C8BC X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.991,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 May 2019 11:00:05 -0000 On 5/8/19 12:25 PM, Konstantin Belousov wrote: > Signal 6 is SIGABRT, which means most likely that some assert was triggered. > You should look into your logs. samba.log shows nothing at level 1 (default); at level 3 gives gobs of information and I don't look what to look for. In all.log, however, I have something like this: > May 8 12:48:11 xxxx winbindd[83147]: [2019/05/08 12:48:11.493769, 0] ../source3/libsmb/trusts_util.c:334(trust_pw_change) > May 8 12:48:11 xxxx kernel: May 8 12:48:09 xxxx last message repeated 4 times > May 8 12:48:11 xxxx kernel: May 8 12:48:11 xxxx winbindd[83147]: [2019/05/08 12:48:11.493769, 0] ../source3/libsmb/trusts_util.c:334(trust_pw_change) > May 8 12:48:11 xxxx winbindd[83147]: 2019/05/08 12:48:11 : trust_pw_change(XX): A password change was already started against 'dc1.ad.xxxxxxxxxxxxx.it' at Mon Apr 29 12:22:51 2019 CEST. Trying to recover... > May 8 12:48:11 xxxx kernel: May 8 12:48:11 xxxx winbindd[83147]: 2019/05/08 12:48:11 : trust_pw_change(XX): A password change was already started against 'dc1.ad.xxxxxxxxxxxxx.it' at Mon Apr 29 12:22:51 2019 CEST. Trying to recover... > May 8 12:48:11 xxxx winbindd[83147]: [2019/05/08 12:48:11.493910, 0] ../source3/libsmb/trusts_util.c:343(trust_pw_change) > May 8 12:48:11 xxxx kernel: May 8 12:48:11 xxxx winbindd[83147]: [2019/05/08 12:48:11.493910, 0] ../source3/libsmb/trusts_util.c:343(trust_pw_change) > May 8 12:48:11 xxxx winbindd[83147]: 2019/05/08 12:48:11 : trust_pw_change(XX): Last failure local[NT_STATUS_NOT_COMMITTED] remote[NT_STATUS_CONNECTION_DISCONNECTED] against 'dc1.ad.xxxxxxxxxxxxx.it' at Wed May 8 12:47:11 2019 CEST. > May 8 12:48:11 xxxx kernel: May 8 12:48:11 xxxx winbindd[83147]: 2019/05/08 12:48:11 : trust_pw_change(XX): Last failure local[NT_STATUS_NOT_COMMITTED] remote[NT_STATUS_CONNECTION_DISCONNECTED] against 'dc1.ad.xxxxxxxxxxxxx.it' at Wed > May 8 12:47:11 2019 CEST. > May 8 12:48:11 xxxx winbindd[83147]: [2019/05/08 12:48:11.493986, 0] ../source3/libsmb/trusts_util.c:380(trust_pw_change) > May 8 12:48:11 xxxx kernel: May 8 12:48:11 xxxx winbindd[83147]: [2019/05/08 12:48:11.493986, 0] ../source3/libsmb/trusts_util.c:380(trust_pw_change) > May 8 12:48:11 xxxx winbindd[83147]: 2019/05/08 12:48:11 : trust_pw_change(XX): Verifying passwords remotely netlogon_creds_cli:CLI[FS/FS$]/SRV[DC1/XX]. > May 8 12:48:11 xxxx kernel: May 8 12:48:11 xxxx winbindd[83147]: 2019/05/08 12:48:11 : trust_pw_change(XX): Verifying passwords remotely netlogon_creds_cli:CLI[FS/FS$]/SRV[DC1/XX]. > May 8 12:48:11 xxxx samba[54713]: stack overflow detected; terminated > May 8 12:48:11 xxxx winbindd[83147]: [2019/05/08 12:48:11.496724, 0] ../source3/libsmb/trusts_util.c:452(trust_pw_change) > May 8 12:48:11 xxxx kernel: May 8 12:48:11 xxxx samba[54713]: stack overflow detected; terminated > May 8 12:48:11 xxxx kernel: May 8 12:48:11 xxxx winbindd[83147]: [2019/05/08 12:48:11.496724, 0] ../source3/libsmb/trusts_util.c:452(trust_pw_change) > May 8 12:48:11 xxxx winbindd[83147]: 2019/05/08 12:48:11 : trust_pw_change(XX): Verified old password remotely using netlogon_creds_cli:CLI[FS/FS$]/SRV[DC1/XX] > May 8 12:48:11 xxxx kernel: May 8 12:48:11 xxxx winbindd[83147]: 2019/05/08 12:48:11 : trust_pw_change(XX): Verified old password remotely using netlogon_creds_cli:CLI[FS/FS$]/SRV[DC1/XX] > May 8 12:48:11 xxxx winbindd[83147]: [2019/05/08 12:48:11.496828, 0] ../source3/libsmb/trusts_util.c:491(trust_pw_change) > May 8 12:48:11 xxxx kernel: May 8 12:48:11 xxxx winbindd[83147]: [2019/05/08 12:48:11.496828, 0] ../source3/libsmb/trusts_util.c:491(trust_pw_change) > May 8 12:48:11 xxxx winbindd[83147]: 2019/05/08 12:48:11 : trust_pw_change(XX): Changed password locally > May 8 12:48:11 xxxx kernel: May 8 12:48:11 xxxx winbindd[83147]: 2019/05/08 12:48:11 : trust_pw_change(XX): Changed password locally > May 8 12:48:11 xxxx winbindd[83147]: [2019/05/08 12:48:11.636003, 0] ../source3/libsmb/trusts_util.c:507(trust_pw_change) > May 8 12:48:11 xxxx kernel: pid 54713 (samba), uid 0: exited on signal 6 (core dumped) > May 8 12:48:11 xxxx kernel: May 8 12:48:11 xxxx winbindd[83147]: [2019/05/08 12:48:11.636003, 0] ../source3/libsmb/trusts_util.c:507(trust_pw_change) > May 8 12:48:11 xxxx winbindd[83147]: 2019/05/08 12:48:11 : trust_pw_change(XX) remote password change with netlogon_creds_cli:CLI[FS/FS$]/SRV[DC1/XX] failed - NT_STATUS_CONNECTION_DISCONNECTED (disconnected) > May 8 12:48:11 xxxx kernel: May 8 12:48:11 xxxx winbindd[83147]: 2019/05/08 12:48:11 : trust_pw_change(XX) remote password change with netlogon_creds_cli:CLI[FS/FS$]/SRV[DC1/XX] failed - NT_STATUS_CONNECTION_DISCONNECTED (disconnected > ) > May 8 12:48:11 xxxx samba[80265]: [2019/05/08 12:48:11.639630, 0] ../source4/smbd/process_standard.c:158(standard_child_pipe_handler) > May 8 12:48:11 xxxx kernel: May 8 12:48:11 xxxx samba[80265]: [2019/05/08 12:48:11.639630, 0] ../source4/smbd/process_standard.c:158(standard_child_pipe_handler) > May 8 12:48:11 xxxx samba[80265]: standard_child_pipe_handler: Child 54713 () terminated with signal 6 > May 8 12:48:11 xxxx kernel: May 8 12:48:11 xxxx samba[80265]: standard_child_pipe_handler: Child 54713 () terminated with signal 6 While this sheds some light (seems the whole thing has to do with trust password change), it shows a stack overflow, not an assert. So the question is two-fold: a) how do I get out of this? Remove the other member from the domain and rejoin? Try and fix the DB (how)? Other? (I understand this would be a question better answere on Samba list, but we are already here). b) if there's a stack overflow, isn't that a bug? How can I check it and report it (to FreeBSD or Samba, once the details can let me decide) if I cannot get a proper core? I guess I'd have to look into a way to generate debug info with Poudriere... what's the proper way to do this? bye & Thanks av.