From nobody Wed Mar 27 12:16:13 2024 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V4Qcx1Jw5z5FMST for ; Wed, 27 Mar 2024 12:16:17 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V4Qcx0l6Hz4mBs; Wed, 27 Mar 2024 12:16:17 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711541777; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=52102yz2Z+vdPntbGxEjuVhdEkBwJakDYvYSEICwSO4=; b=xUls4sdd2i+ucHR2Ax3p/186vu4+TySBiBXuO0Toc0HLr0RY4MTeUEBgn+bX45ch9U4SoE YsEZF9aVsvSfia9yGfvh4gjhFTiqaLOl18LCCGsKChVFXvI3mFaiIgPyVzpT2x7i2Rsgd4 /dACtIL6jIcPP5PGK0VmH4kUcPabVHaNAlOMYblfmhZ9YOUsThhrOT3zU9VWd1LAKqXxs8 YiKgrRSJdLj+tD9E1iXkv6Bxh7buJjaoJ+5Jv1j2z6qJr5GvgfoOdxtijOJJR9esRWtQ4A vIVoPfd/BrqHPwimggBL9bNKS3C4RVoTHvcv4WXEtD1diKTHQoAd0g1F/A6t8g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711541777; a=rsa-sha256; cv=none; b=Zh+K14UAiAgkL4mIGCLpkG2ESgEABbsBdNKB7fIPFEyshU87LvrDg3Ir6QuXP8HNRzATYJ ZxP0kMwgNPyXDioL+kGB0RPTAXg5eXGZ1rO1g6dN7beCLqbkB0YZcrzR8kE2xojx93IYxI xjovJ4pDw5zmC0na3kTU4kL/bl2WKuPR7FiGXKbr6C3EjqcRhgs0ZNH4RjDYHGE05l2TgR ktibGQmdsp1wc0ggmjYMbCil2I1T5fQxvcensZgyB/20gExvzylpzGtnZjGRxRVxbPxL8O CIu0rnXYzEG7oGtcvkF/kQofrrksNtkUFPoN6hHM3ZTziUrMLZV+PNk9UEl0Hg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711541777; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=52102yz2Z+vdPntbGxEjuVhdEkBwJakDYvYSEICwSO4=; b=SD6bsx9BUNcQh/nNibziqsTM/JfjX1iW1sCbWMI2CDKcHHTn2RbUy8YKGiJsXbeF4hs65i kv2DRxJghjXgnvWdQM/49Dc1u5HvqbfcYpyH/iiGY40QN60y3BCElDDtHzi9BpJcbHcdCv rhyZsKzwLItAqcyRj2LCTTThxxs0F0nYcGfgyCgFP2JfzRFri9y7mh9l+0UnCdXKi8XrA6 H3uFWsg8FVlR5J9ceH23dMUtuTcfUTv/56Xpn1akxBs1Csvp85KMelNyiLYjbqTNghbAiz zBkYXvcewI5bchGUNq5hVlXT1IpmYjiEFyFTCNKQsJFBXG99WfPrVWCaGPeCew== Received: from ltc.des.dev (2a02-8428-0993-f001-922e-16ff-fef1-acef.rev.sfr.net [IPv6:2a02:8428:993:f001:922e:16ff:fef1:acef]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4V4Qcw6jgXzP0b; Wed, 27 Mar 2024 12:16:16 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id E06BE684; Wed, 27 Mar 2024 13:16:13 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Mateusz Guzik Cc: Konstantin Belousov , FreeBSD Current Subject: Re: truss -f timeout 2 sleep 10 causes breakage In-Reply-To: (Mateusz Guzik's message of "Wed, 27 Mar 2024 13:00:07 +0100") References: User-Agent: Gnus/5.13 (Gnus v5.13) Date: Wed, 27 Mar 2024 13:16:13 +0100 Message-ID: <86wmpnc1ki.fsf@ltc.des.dev> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mateusz Guzik writes: > Top of main, but I reproduced it on stable/14-e64d827d3 as well. Confirmed on 14.0-RELEASE-p5. > Mere "timeout 2 sleep 10" correctly times out. > > Running "truss -f timeout 2 sleep 10" prevents timeout from killing > sleep This is sort of expected as truss(1) uses ptrace(2) which breaks the parent-child relationship, so you should never use `truss -f` with a command that expects to control its children. > and the entire thing refuses to exit, truss has to be killed off > with SIGKILL. This, however, is not expected. > Here is the best part: after doing the above, going back to mere > "timeout 2 sleep 10" (without truss!) no longer works Neither is this. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org