Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pNNJd-0007qi-FK for pgsql-admin@arkaria.postgresql.org; Thu, 02 Feb 2023 00:19:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pNNJc-00063U-BU for pgsql-admin@arkaria.postgresql.org; Thu, 02 Feb 2023 00:19:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pNNJc-00063L-1N for pgsql-admin@lists.postgresql.org; Thu, 02 Feb 2023 00:19:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pNNJZ-0000P0-O7 for pgsql-admin@lists.postgresql.org; Thu, 02 Feb 2023 00:18:59 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 3120It9l1435493; Wed, 1 Feb 2023 19:18:55 -0500 From: Tom Lane To: Peter Geoghegan cc: sireesha , pgsql-admin@lists.postgresql.org Subject: Re: Mutex error 22 - Postgres version 14 In-reply-to: References: <1423181.1675289897@sss.pgh.pa.us> <1428133.1675292556@sss.pgh.pa.us> Comments: In-reply-to Peter Geoghegan message dated "Wed, 01 Feb 2023 16:14:21 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1435491.1675297135.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 01 Feb 2023 19:18:55 -0500 Message-ID: <1435492.1675297135@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Geoghegan writes: > On Wed, Feb 1, 2023 at 3:02 PM Tom Lane wrote: >>> 2023-01-24 02:35:45.833 PST [3424807] LOG: PID 0 in cancel request di= d not >>> match any process >>> *Error locking mutex 22* > I wonder if 22 might be EINVAL, which is one possible error code used > by pthread_mutex_lock(). Maybe, but we still don't know what's reporting the error. I tried searching for "Error locking mutex" in Debian Code Search, and got several hits, but none of them match this exactly --- the ones that offer any additional info present it as a string not a number. regards, tom lane