From owner-freebsd-stable@freebsd.org Tue Mar 30 13:48:29 2021 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 16EE55C7001 for ; Tue, 30 Mar 2021 13:48:29 +0000 (UTC) (envelope-from chris@cretaforce.gr) Received: from relay3.cretaforce.gr (relay3.cretaforce.gr [195.201.253.216]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.cretaforce.gr", Issuer "RapidSSL RSA CA 2018" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F8rPm6cjbz4kfF for ; Tue, 30 Mar 2021 13:48:28 +0000 (UTC) (envelope-from chris@cretaforce.gr) Received: from server1.cretaforce.gr (server1.cretaforce.gr [138.201.248.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.cretaforce.gr", Issuer "RapidSSL RSA CA 2018" (verified OK)) by smtp1.cretaforce.gr (Postfix) with ESMTPS id 199CA1FA37 for ; Tue, 30 Mar 2021 16:48:27 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cretaforce.gr; s=cretaforce; t=1617112107; 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=H91Fk+E0E4VGu4v7L6wg/TptnWHUHCj/y4X2SxqxnDM=; b=JjXMJ2gI89qtfPEPYb8B6nsSpa//Wkjmw2MeFzD2KOH5Sz170Wf0udA2wGtiMYqRlxyU5M 1gs2YkqeUp2c3an2VcT0sYE0RrVy8rPjtgafpCc1Qr5RlmOpmaGWdH/eyaBnHEprPhW+n7 PrbfQtOyhzMPna/VSfC6Mt3NwUYT64E= Received: from macbook-air.fritz.box (athedsl-126859.home.otenet.gr [85.75.71.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: chris@cretaforce.gr) by server1.cretaforce.gr (Postfix) with ESMTPSA id 8F5A62730B; Tue, 30 Mar 2021 16:48:26 +0300 (EEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: FreeBSD 13.0-RC4 and Nginx process "stuck" during restart From: Christos Chatzaras In-Reply-To: Date: Tue, 30 Mar 2021 16:48:25 +0300 Cc: FreeBSD-STABLE Mailing List , "gjb@freebsd.org" , "jtl@freebsd.org" , kib@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <873C34A0-5516-4832-88B6-F60139FA009A@cretaforce.gr> References: <94CCFC59-B381-40B1-8F85-F86D87A16B53@cretaforce.gr> To: Mark Johnston X-Mailer: Apple Mail (2.3654.60.0.2.21) X-Rspamd-Queue-Id: 4F8rPm6cjbz4kfF X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2021 13:48:29 -0000 > On 30 Mar 2021, at 16:45, Mark Johnston wrote: >=20 > On Mon, Mar 29, 2021 at 10:57:09PM +0300, Christos Chatzaras wrote: >> Hello, >>=20 >>=20 >> I upgrade from 12.2 to 13.0-RC4 and I notice a strange issue with = Nginx. >>=20 >> When I run "service nginx restart" in some (random) servers it = doesn't complete the restart and it "stucks" at "Waiting for PIDS: = 20536." . >>=20 >> I can kill the 20536 process and then restart completes. >>=20 >>=20 >> procstat -kk 20536: >>=20 >> PID TID COMM TDNAME KSTACK >> 63094 100505 nginx - mi_switch+0xc1 = sleepq_catch_signals+0x2e6 sleepq_wait_sig+0x9 _sleep+0x1be = kern_sigsuspend+0x164 sys_sigsuspend+0x31 amd64_syscall+0x10c = fast_syscall_common+0xf8=20 >>=20 >>=20 >> I found this commit: >>=20 >> = https://cgit.freebsd.org/src/commit/?id=3Ddbec10e08808e375365fb2a2462f306e= 0cdfda32 = >>=20 >> Could this be related? If yes can we have the patch in releng/13.0 ? >=20 > I think it is hard to say without some testing. Are you able to = verify > that backporting the patch fixes the hangs? I will use the patch today night, so I can verify it tomorrow morning. If it works do we still have time to land the patch in 13.0?=