From owner-freebsd-stable@freebsd.org Wed Oct 30 23:39:31 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 DD11416532E for ; Wed, 30 Oct 2019 23:39:31 +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 473Q0L2Fz6z4k3X for ; Wed, 30 Oct 2019 23:39:29 +0000 (UTC) (envelope-from petefrench@ingresso.co.uk) Received: from [2a02:b90:3002:411::6] (helo=dilbert.ingresso.co.uk) by constantine.ingresso.co.uk with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1iPxYg-00040g-Kd for freebsd-stable@freebsd.org; Wed, 30 Oct 2019 23:39:22 +0000 Received: from petefrench by dilbert.ingresso.co.uk with local (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1iPxYg-0001ID-Gz for freebsd-stable@freebsd.org; Wed, 30 Oct 2019 23:39:22 +0000 To: freebsd-stable@freebsd.org Subject: python dameon coredumps when started from boot, but not by hand Message-Id: From: Pete French Date: Wed, 30 Oct 2019 23:39:22 +0000 X-Rspamd-Queue-Id: 473Q0L2Fz6z4k3X 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 [-5.92 / 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)[]; R_SPF_ALLOW(-0.20)[+ip4:31.24.6.74]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; IP_SCORE(-3.12)[ip: (-9.72), ipnet: 31.24.0.0/21(-4.86), asn: 16082(-0.93), country: GB(-0.08)]; 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]; RCVD_TLS_LAST(0.00)[] 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: Wed, 30 Oct 2019 23:39:31 -0000 So heres an oddity - I have a service which runs under python3. It works fine if I start it from a terminal as root, but when it is started at boot the python interpretter itself coredumps. The program in question is the latest Microsoft 'waagent' form machines running in Azure. This apparently comes in two pieces, one which starts up and then attempts to syart the other. It is the latter part which is failing. The parent process launches fine and repeatedly tries to launch the child, always coredumping before it starts running any actial python it seems. This must, I assume, be down to some dfference in the environment between running a process from rc at boot and runnign with 'service waagent start' as root at the command line. But I dont really have any idea what this might be. The fact the first one starts but the second doesnt make it even stranger. I opened an issue with Microsoft, including a gdb backtrace of the coredump agaist the python, but I feel this is probably something fairly straightforward which can be solved by some FreeBSD configuration that I am missing somehow. github issue is here: https://github.com/Azure/WALinuxAgent/issues/1687 but I would be intersted to know if anyone has any thoguhts or advice on this. Running FreeBSD in Azure is something which has worked well for me so far... -pete.