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.96) (envelope-from ) id 1woZyG-0018XN-0K for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Jul 2026 05:03:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1woZyF-00GNUC-0O for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Jul 2026 05:03:15 +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.96) (envelope-from ) id 1woZvB-00GKL6-36 for pgsql-hackers@lists.postgresql.org; Tue, 28 Jul 2026 05:00:05 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1woZv9-00000000f8y-2clq for pgsql-hackers@postgresql.org; Tue, 28 Jul 2026 05:00:05 +0000 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-47f84023916so3384626f8f.3 for ; Mon, 27 Jul 2026 22:00:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785214803; x=1785819603; darn=postgresql.org; h=content-transfer-encoding:content-type:to:subject:from :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to:content-type; bh=4DpeAltQfJEZAp0hc2ZxkNSwz62d4ASBgeY57ImYJqk=; b=Ez9QXg2HvSut0q2R7VGflkVbRO7llCN6U5vpEdA0NmOuJJwAvejJhVaErj9vA6kQEu 4hIjWlbQonhznQpgRIigBBlGtXTmR1ZLqdBWTMWHVpLzJfNSJDVQWuSqOLi6PSrHNBo8 2khGUY9b6yY5V0/J9RspQfDMNJeomSvrbMqvQkuBJVfYGT6hRMzj4cvixcrJJLLzu6D9 2f3pSSokCIjbAVWZw81/mdPtMTUEKVfK9Q7exx7KSjW4y2boSAPW9B0ZDT9Hh4BQY3PF rm0DsRS0A2XOrIkyI4DozYx4zH2V4+G5PYp8bECpFtcZ94sdWFSbxm9keR97AGndPzrj LUVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785214803; x=1785819603; h=content-transfer-encoding:content-type:to:subject:from :content-language:user-agent:mime-version:date:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=4DpeAltQfJEZAp0hc2ZxkNSwz62d4ASBgeY57ImYJqk=; b=RMz3QwzZPq5IVVqe7JWplKJYWIcczxtr9vyOMLDBGzzXYoxW7yH35AgUvQBSTWk1ac 42fbip4lkKjHAo3pcSV9GjPE+/qf46S5m6i/ILGm9d14uz9oEjvS63GL5bcbm7tFqqBI 4HDVSdE4WI4lGXW82vPr8RQvSGDALluoQu7PB7uPe0lPgqLMfXbQmyNKxCmQra2fBJDe N/OIhQLCySIN3ezsGaXqXq3cQ7AGI7AwsQGsPuoMWvxoYWK7uHYt+qPkjCaDr7cEL4BR mI8u5lYjff8nZbE+3CFnh15zwzf5LNHdQPJdzh/1H8PB9R4COSWIuq7ZKKTF9BkBpCzg WAVw== X-Gm-Message-State: AOJu0YyiQTc6Gx6EK3m6x4pC/qI3k+9IS2bg8LfL5UMajmRLmbGdOvDe ZFzPwDG5RGFxiGpESA2kF0jOqxuN5vk/vJJPG9izkBGIg3lqiAYluGupUWzl8w== X-Gm-Gg: AR+sD10zjCLuM9TOjt4/O1Cdd2kqZd0Oks1i+uyuo+yk4aQUQ0JGxLUeL9iHq99qoxr a4rVsw5qIvLAMZOESZ/dwVQ5iIXr1sinYg7SSnOpXP1EQNV3YC2PMpSPg43iE08dCm+qDw9CQuW gk2p0JixtvpGNgxHyQDAMu8i/S4OHiUh6cIIttvi5hBVpeso1UwGHp+DmBIhEdMOEknoKfgBBxw VCA63e0Gllyb9V8JuLrC+EXUEbbfSuQ4Rgr41m5Yb11YVA7V80E6jm0nFdlSTCEWh0jcNkjglcc na+e5QpXAvuE49GJEor1SJB2ghoyO4/2LJeFnTUWZymzvAY9aIdjyjPel3zgj3Lm7qMukk91ZXl yDej/5eOq9L1I6ds8MD3ek3mTwLeh0wdoofvnuNyNj0vdB2KgazMiMvVGA0cATP2eSTMW+oRDXF sIG5pZtDCUMmBoMgU= X-Received: by 2002:a5d:588f:0:b0:47f:93fc:2d32 with SMTP id ffacd0b85a97d-47fb1f17dcbmr621994f8f.40.1785214802574; Mon, 27 Jul 2026 22:00:02 -0700 (PDT) Received: from [192.168.0.50] ([89.149.120.180]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47f85b9a60asm58792720f8f.3.2026.07.27.22.00.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Jul 2026 22:00:01 -0700 (PDT) Message-ID: Date: Tue, 28 Jul 2026 08:00:01 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Alexander Lakhin Subject: plpython tests fail against python 3.14 under Valgrind To: pgsql-hackers Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello hackers, As buildfarm animal skink shows, upgrade to Python 3.14 breaks plpython tests under Valgrind [1]:  61/400 plpython - postgresql:plpython/regress ERROR             49.88s   exit status 1 pgsql.build/testrun/plpython/regress/log/postmaster.log Fatal Python error: pycore_init_builtins: failed to add exceptions to builtins Python runtime state: preinitialized object address  : 0x139da4a0 object refcount : 1 object type     : 0x1388d020 object type name: RecursionError object repr     : lost sys.stderr Current thread 0x0000000008c62ec0 [memcheck-amd64-] (most recent call first):   I've reproduced this locally and confirmed that it's not reproduced with PLPYTHON="python3.13" ./configure ... It's also not reproduced on master, probably just because of a bit lesser stack usage. I've bisected the anomaly and found what makes master pass the tests: aeb07c55f. AI suggests the offending change in Python 3.14 is [2]: Use Py_EnterRecursiveCall() to guard against runaway recursion in C code [1] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=skink&dt=2026-07-27%2013%3A09%3A55 [2] https://docs.python.org/3/whatsnew/3.14.html Best regards, Alexander