Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sYUK3-00BiZu-9D for pgsql-committers@arkaria.postgresql.org; Mon, 29 Jul 2024 17:38:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sYUK1-001ibh-Dg for pgsql-committers@arkaria.postgresql.org; Mon, 29 Jul 2024 17:38:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sYUK1-001ibZ-3H for pgsql-committers@lists.postgresql.org; Mon, 29 Jul 2024 17:38:09 +0000 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sYUJy-0026b9-67 for pgsql-committers@lists.postgresql.org; Mon, 29 Jul 2024 17:38:08 +0000 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a7a83a968ddso518718966b.0 for ; Mon, 29 Jul 2024 10:38:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722274684; x=1722879484; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dFAuJ4maWSqLoQZHejvvi/8cGPHzrQj644OP8F8Eiw0=; b=lgV1NRHkABJ5+srIG68Z7cvFKdswkogkBKzFXQGavP6UREAAi0DOSf4Vhme0EIunzU S4a2mtvLsfMloftDIKjgxiqEK1f8WA7CubGqVgujdVsiKVh656U6HbV5uLuUZEHxw3qL bGSovDJL4JfhfcIv2o+eYfENiHsBT1diJFW4Td+CQj8TCELiYJReGBLn1TnNwYQBwaCI oqJ54nbSzfJEltQjExUsJb5hcuVgNnxmgLAEJKQE8cHg3rM/b4ZHd8VQfcxCdH3ZqVDO TnhpyHKmFBOR7+orEy5Q8ZoQn/LZFnKqWY42ZoxN3Jmn024Bepnd+pIQukcXA0Agu8Nc 1J4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722274684; x=1722879484; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dFAuJ4maWSqLoQZHejvvi/8cGPHzrQj644OP8F8Eiw0=; b=YBZqefcEXtwFMRz3Ha4EzyiTgbK4bXXMPLxdDeQ9PAgA53D1M/aVGzdREHRgZoK4wA Wwr3ohDmhLaiL9yo5Xh7nE1UnKvaYXMHfso96+Z11RAq/UQUsql3QRYQ9RLLTtUJgNlJ pgysO0AThpxQwi9hQgb7dvW5cizWmmuwyROHPvXCv92t6lu7erIQG7rT22kH9mIQCJs8 KfHsClQB0H1w8GvsfIKPWrjw2//WKbSnrDk37OYu4sBZw0HH4gAkM0iRmTRrX9orErnK GcdO8NsSQdEoKrEeUUhjbAjf2CpuGV2Tn1If4Pyb3u40e5dEbj8z7NwC1H3zXHdWrjSl R55Q== X-Forwarded-Encrypted: i=1; AJvYcCWW0jyrCAqybuyrQVXwGxfYndrExuEBKfMs8zuNdEhFGce6/TkkK0JtkJ794/eA/lXBT2mGrHmpT6QyTheQja9X1S7cKnAONRugi6asUNt7yVr3cLRt X-Gm-Message-State: AOJu0Yw7nrPoIbYDI9mFSk15vSX4GFOXOM1ojvpBw1ESh/bYa3C02lUy 9R4WwVqUBJcpDrMbsPYNbPmkCuckivzJwTwUaQGCWGuzhiuT7A0ndSwoi3L5PDJWf9S3MwSAFi6 36EoyzSAAbt34xqbGKIhLZdL7xNk= X-Google-Smtp-Source: AGHT+IEOrQuYYh6+GyKMj5SCpGEXmNqCGMfn2W2s7uxzwpZKwZA6dvTxbZnL6FFganE33w3STWymG09m7euK0Vx0vSI= X-Received: by 2002:a17:907:d06:b0:a7a:8cc7:ca48 with SMTP id a640c23a62f3a-a7d40128924mr566175866b.46.1722274683948; Mon, 29 Jul 2024 10:38:03 -0700 (PDT) MIME-Version: 1.0 References: <2600757.1722267116@sss.pgh.pa.us> <20240729161846.kgiafbe2dtgabxgb@awork3.anarazel.de> <2802449.1722270793@sss.pgh.pa.us> <20240729164026.yurg37tej34o76uk@awork3.anarazel.de> In-Reply-To: <20240729164026.yurg37tej34o76uk@awork3.anarazel.de> From: Robert Haas Date: Mon, 29 Jul 2024 13:37:52 -0400 Message-ID: Subject: Re: pgsql: Fix double-release of spinlock To: Andres Freund Cc: Tom Lane , Heikki Linnakangas , pgsql-committers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Jul 29, 2024 at 12:40=E2=80=AFPM Andres Freund = wrote: > I think it also provides the (valuable!) check that spinlocks were actual= ly > initialized. But that again seems like something we'd be better off addin= g > more general infrastructure for - nobody runs --disable-spinlocks locally= , we > shouldn't need to run this on the buildfarm to find problems like this. +1. It sucks to have to do special builds to catch a certain kind of problem. I know I've been guilty of that (ahem, debug_parallel_query f/k/a force_parallel_mode) but I'm not going to put it on my CV as one of my great accomplishments. It's much better if we can find a way for a standard 'make check-world' to tell us about as many things as possible, so that we don't commit and then find out. --=20 Robert Haas EDB: http://www.enterprisedb.com