From owner-freebsd-stable@freebsd.org Sun Nov 10 17:53:25 2019 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D8C771BA696 for ; Sun, 10 Nov 2019 17:53:25 +0000 (UTC) (envelope-from petefrench@ingresso.co.uk) Received: from constantine.ingresso.co.uk (constantine.ingresso.co.uk [31.24.6.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47B1nw6LKFz4DFS for ; Sun, 10 Nov 2019 17:53:24 +0000 (UTC) (envelope-from petefrench@ingresso.co.uk) Received: from [2001:470:6cc4:1:1428:8616:18b0:1bbd] (helo=foula.drayhouse.twisted.org.uk) by constantine.ingresso.co.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1iTrOl-000IbO-OI; Sun, 10 Nov 2019 17:53:15 +0000 Subject: Re: python dameon coredumps when started from boot, but not by hand To: "O'Connor, Daniel" , "Kevin P. Neal" Cc: freebsd-stable@freebsd.org, 000.fbsd@quip.cz References: <20191104151555.GB60435@neutralgood.org> <4010794E-F6C7-47DB-9746-8A6F63C957F7@dons.net.au> From: Pete French Message-ID: Date: Sun, 10 Nov 2019 17:53:15 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <4010794E-F6C7-47DB-9746-8A6F63C957F7@dons.net.au> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47B1nw6LKFz4DFS X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=ingresso.co.uk; spf=pass (mx1.freebsd.org: domain of petefrench@ingresso.co.uk designates 31.24.6.74 as permitted sender) smtp.mailfrom=petefrench@ingresso.co.uk X-Spamd-Result: default: False [-6.06 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip4:31.24.6.74]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-3.26)[ip: (-9.79), ipnet: 31.24.0.0/21(-4.90), asn: 16082(-1.55), country: GB(-0.08)]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_POLICY_ALLOW(-0.50)[ingresso.co.uk,none]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16082, ipnet:31.24.0.0/21, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Nov 2019 17:53:25 -0000 On 04/Nov/2019 23:45, O'Connor, Daniel wrote: > This would also capture the stderr output, and should be pretty easy to shoe horn into the rc.d file. > > Nice thinking! Just picking this up again, I have tried a few things, but am unable to actually get this to work in the rc.d file, any suggestions? RC is quite clever and seems to read the hash-pling line from the script and compare it to the value set for the interpreter, so I cant simply add ktrace in front on the interpreter itself. I tried knocking up a simple wrapper script, but that didnt work too well (didnt become a daemon propely) and I am wary of chnaging too much as I want the test to be as similar to the actual bug situation as possible. ktrace generates data at a spectacular rate thoughnthough doesnt it ? :-) -pete.