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 1vBTOl-00H1jp-4w for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Oct 2025 07:36:42 +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 1vBTOk-00E3sf-4h for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Oct 2025 07:36:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1vBSCF-00Dq21-KL for pgsql-bugs@lists.postgresql.org; Wed, 22 Oct 2025 06:19:42 +0000 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vBSCC-0036tx-2q for pgsql-bugs@lists.postgresql.org; Wed, 22 Oct 2025 06:19:41 +0000 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-58affa66f2bso7612972e87.1 for ; Tue, 21 Oct 2025 23:19:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761113979; x=1761718779; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=m6ylyLNVZVjwKIgeaIDv8rAbGrQvdtQwVLatAU0BY7Q=; b=kSgt7ze6ybbwGlqX1mBBLpBqUu8j7KV3CXZ+F8VgC8XMe3+D/Y5ZRVws20MgdShWyM KrAsi50+Nhlis01QTFQQel6MbdDoawYxWbUG/+P7va7trCEd4tRi8MiS8+zMxf6QXBtq Lyqg1d0u7aVNmFI9hl81bNakXcmnZp8lcofyLTVETFAIZ62Lf6AP37Rh6h7h1LZh3E6Y c4P9Sf26/n++TDvg7nQ5j2RKvjucJTvifSomLZEqHTbczOhYQM9xaXMw6MzwKjn6jQMB YoDJOKt5uWW9vluzigYqRw6MNrmoFqjgyy+oaoCYWWVoWmhRxB8zW0Fo+s96te5sTrQB TUDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761113979; x=1761718779; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=m6ylyLNVZVjwKIgeaIDv8rAbGrQvdtQwVLatAU0BY7Q=; b=kHz4LjFR8iJjLqzCs/bA+Bk7ow1Ke+GMykzyKr7MIyYN9FaGZQKFUn4TxtIg2gRZ4g GsUhzjiNWfzweQ5Hdqtlg85AGQ6i7UnW8D3TpS0x5yVOg7njLBIqlhkrrKj3iLo07A/q LqUOQ1pD1q7w7FVrLxRHqQRsCuENSVgvQStesds7A2kMkVJDv7/2aTpi9aP6isPgpSL1 /mx5mmJKO0wCymeJ4gVRSKM5XdiGSjWNqEqqdzNe81baR7RYv6ufklgQ+66ov1jqhY1e +PfCxlL3SsEaDG1mrgR8PQATeP2zzYHK1eJlKr2lf8raaNvBA+315IVHhucNQot4zMgp BP6Q== X-Gm-Message-State: AOJu0YzrxMjPMsGf0KwhRCwIcB3kJCeJyntTSwtHKnd0levop3p0wnEj 1bzziljudu2UvgCmTPJVP6zHrc6jNewcI/Yh6b6HMu6cFXVtrYBXmzZ5iNj4U4B0 X-Gm-Gg: ASbGnct77nFmbY38zFk04YY1y8HHrtlkcJYLQD9u2f2yWRhGKdSWnaZM2GdlxrzAm0j jAlzxnV2styzmiU/3VhSCHQIw0Pi5EzP8Nnjh0b69cu9avxccmB+ZREUUQ06H0ieEezzP3BLyh8 gEXHUM27KNGFO1KeWLRrwcmLCUNtxKFFeK4yzGMRAdLZ43U2704wzhwe+DDuFw+4OzRQ4ReuWXh DAHoQifQmDPAlUZfQU+w52deqRRJsSK3QBGb9s7k6Si8BxZO9YPkRp2BAn/eCBlklFJDTghDWiJ QbMN6p11opfNBUjuWODgQABlN3BGm/+TZ+Bl5jNzTCLVA2ZolE6LyRpDjQ1zo+j4U8RqmOpolnr qCenheudMUdbNJpId8lGYs1NPE5wT0w1b/ikmGOf5fbAARieqCbILCiRPZXZcFmofvBlgHBOHlU 2/1F+OWyfBEZmWklK4mbanyxY= X-Google-Smtp-Source: AGHT+IG2uxEVl5MDcu2dnrzXl16ZwxuXkni4osJikmVBnemYb8+beOydbS5RqsZ1uZr01PY/kSUGYg== X-Received: by 2002:a05:6512:234c:b0:590:9463:5e0b with SMTP id 2adb3069b0e04-591d850cf39mr6144184e87.11.1761113978821; Tue, 21 Oct 2025 23:19:38 -0700 (PDT) Received: from [172.22.22.22] (smtp.shulev.su. [146.66.171.44]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-591deea8692sm4390741e87.15.2025.10.21.23.19.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Oct 2025 23:19:38 -0700 (PDT) Message-ID: <630d3d31-40b2-40c2-b1bf-c857ba88322d@gmail.com> Date: Wed, 22 Oct 2025 09:19:37 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: PG17.6 wal apply bug (SIGSEGV) To: Peter Geoghegan Cc: pgsql-bugs@lists.postgresql.org References: Content-Language: en-US From: "badfilez@gmail.com" In-Reply-To: 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 Hi, Thank you, there still are 2 broken indexes in master DB, one of them exactly matches the said relation 151181595. still, is it proper wal apply procedure, to segfault in such a case? On 20/10/2025 20:18, Peter Geoghegan wrote: > On Mon, Oct 20, 2025 at 1:07 PM badfilez@gmail.com wrote: >> Program terminated with signal SIGSEGV, Segmentation fault. >> #0 0x000000000057eff2 in _bt_restore_page (page=0x7f6f48fd1000 "", from=0x7f6fe2eccd80 "", len=) at nbtxlog.c:63 >> 63 itemsz = MAXALIGN(itemsz); >> (gdb) bt full > "itemsz = 0" suggests that the index was already corrupt, before the > WAL record is applied. > > I suggest that you use contrib/amcheck (or the pg_amcheck frontend > program) to ascertain the extent of any index corruption on this > database. >