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 1sJq5i-006vcE-18 for pgsql-admin@arkaria.postgresql.org; Wed, 19 Jun 2024 07:50:50 +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 1sJq5e-00BoE5-Jc for pgsql-admin@arkaria.postgresql.org; Wed, 19 Jun 2024 07:50:47 +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 1sJq5e-00BoDx-6o for pgsql-admin@lists.postgresql.org; Wed, 19 Jun 2024 07:50:47 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sJq5d-002PwN-9m for pgsql-admin@lists.postgresql.org; Wed, 19 Jun 2024 07:50:46 +0000 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-52cc10b5978so2608422e87.2 for ; Wed, 19 Jun 2024 00:50:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20230601.gappssmtp.com; s=20230601; t=1718783444; x=1719388244; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id:from:to :cc:subject:date:message-id:reply-to; bh=6JHOBCjf/Z+BDEoNHnbR6HZgAU22T3S+kTOtq6LP3UY=; b=WeJGzDDu5+3Na/DlOj84laGvs9M8BsthGwHoGz13qKp4+iV2vpKiwhjf4IGaAmuCfi fUmpGStZB6nKRw2MJ8r2AisUcPnijBX5VX7FswhRIiWDoW2AsD6JJipeAxRIM0QXWnij ivZY02qpTBIVfonpnx0f4/cwz0ArGG3+zgNwvZ8q0ZCsPOj5tylOWO+WeE6KyeHS9RIE 8bPQyfrXnYjZ4efwT4t3djx6FWPObD7FF3GbxBKC8yRk5edh2TBa9cgZIX1npN/rqLdw U7F0/4WSYZwinPblhPw4P3LeSzkMnRxl2xFa469VFU2R9kavVwwo+oaOaHbsgn1MB7b+ zL7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718783444; x=1719388244; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6JHOBCjf/Z+BDEoNHnbR6HZgAU22T3S+kTOtq6LP3UY=; b=CCoH7MPNSagGERRGKoYh4zJJcvp5bnvAi41A7V4cglAmYeFF+b4Tea86Vd6JOLOMQD mHbNX7om3R/Mn9a637mHRbXVQHGt5AaTP1e5BT14tA41w/1Zv+eJ+WoVrkIWO8fU8fnF u3zOnBqpJ7+9br9VOR9Grjx6W6qGLjWy9taAwW/2rMXFOUQo2BWWF5vyIyt6HABArMDb YUTrs3mkecykryNUJPeozOoRqTzdeJBfT5suuABmOb3moA2ePngFhxAKwjifzVZxcsKj tx7s4zscX/p+S/t5svWqgL3vr1LLuLfzvSGA9HG9pks9bz4AmcjbEHSaP8bRsFSKbXPe Stig== X-Forwarded-Encrypted: i=1; AJvYcCXq/Km7HvID0f51CgiihSG1XSlPffAFCuqiwoR7OMev8oWDYYovcmTdfOWeN8q66rg4fsllhoCuxjMWb2G2/m616TJEHaiUgqk3Jcksp17QOA== X-Gm-Message-State: AOJu0YzUsNf7wZY2ryVynLchNsebVpReyO1wYSUFPOTsPvEn6YOqR+Sq VtP2gvhB5/2FuDSqpdFFkq90k0PCkTI9Y2rZQeVw7X7o7efO/FSYcj46JRV6Eq4= X-Google-Smtp-Source: AGHT+IERQ2fNbbl3fiwbupWnOXSh6fsH4MzGcAPjvHYWxEAyCbTOV9hwtxaiLsiawwC1hsdp/pxC/Q== X-Received: by 2002:a05:6512:60a:b0:52c:836a:3db8 with SMTP id 2adb3069b0e04-52ccaa5a2f4mr1041450e87.15.1718783444242; Wed, 19 Jun 2024 00:50:44 -0700 (PDT) Received: from localhost.localdomain ([88.116.133.170]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-422f602e7e3sm219175695e9.12.2024.06.19.00.50.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jun 2024 00:50:43 -0700 (PDT) Message-ID: Subject: Re: Urgent: Segmentation Fault in PostgreSQL postmaster Process From: Laurenz Albe To: Veerendra Pulapa , pgsql-admin Cc: Achilleas Mantzios , pgsql-admin@lists.postgresql.org Date: Wed, 19 Jun 2024 09:50:42 +0200 In-Reply-To: References: <6e6406c18726b29b5264c10dc548276dcd0173c0.camel@cybertec.at> Autocrypt: addr=laurenz.albe@cybertec.at; prefer-encrypt=mutual; keydata=mQINBGGDwAQBEADgbWy5cKXQld3N2mF+DFyiNFbi2oBl2T+XgxpPF8wTRw2D/u4bBKXP0SYSE/lA86jIVNWWU0gf1KODIkVvgJm2w4vH2VBV1b7ddVViGl1Iu+9zaRnv9wulhnH42KefepXnoean6UT1EzLM0opF/Ik0j+40TxdRtobkBprkQUyHDXWlHc2ffPs3SipyFEP9AVLf7ejRC46CXWDnsqjOBSMEW8Z4HiK/8RrPZBsKLts8dJxKF4pygOdJb0CWk8k/X1jbcfdxo+zOLjOMvJcSJ2pFdJmQHU+JufB3rePziqQ2S9Ur6sccr9XnTC1GVBWN4Lf5VHq+vf+bFJjVwg+2hrySZnAVfcOrxoqFLErr7ug1zN2nM1kcpgA4VWn4gxlJtYNYYq+9WxX5dtvnNANlG3ZCrRKQzl8lxtzoF6Zo7LUhEqPaHDwn7Rvs+IdbOn41lF5UDTJGqmC4gS/bZydW2Fy3YWm4aSaN9fgFf8D+P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KaBqC+0iFiVaRqAgfOlIEiezX6kMh5Q2FIUfqs46qWhhXjRrdKOEoStYAaikdLu5ZXr7vfb0ZaDh+ZwTQtbSMFolyOkecwI81MCdbMfT/1TqIGTOdAj5as9fAakk0jb2pXgUYQ8X1DVTR8ahSDVEaw9VTmWiSvTxvguVJ1Mb7gG4Gmh6aviDTJhfXtH4rPUNXhDLqrTH8JkJjyKROOMakIF68Hjse5vUfUxreBEOtb5r1Coa2Fe7ncJayaSE7ryrDbFqpZ 36UMAx4ulWMyqJajLNGY0DdG8qIsR5nxRhrnK/mrCidZ8F9/D3bWAl4rjtHlsztN59 +AnW5l0HsQcY9ntFL/zEBOaonjdJf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2024-06-19 at 12:57 +0530, Veerendra Pulapa wrote: > Dear, >=20 > I have run coredump=C2=A0in my current system but I want=C2=A0to understa= nd the coredump > file and what went wrong with the signal 11 error(segmentation fault)? >=20 > below are the coredump output: >=20 > Program terminated with signal 11, Segmentation fault. > #0=C2=A0 0x00000000004ddc75 in _bt_swap_posting (newitem=3Dnewitem@entry= =3D0x254bee8, oposting=3Doposting@entry=3D0x7fc6c1b3ee20, postingoff=3D1) a= t nbtdedup.c:800 That is revealing. Line number 800 has been a comment since version 13.4, so you must be running 13.3 or lower. The only commit that happened to the file between 13.3 and 13.4 is fa675af5= 9f, which added a check to defend against a crash in connection with corrupted = indexes. So I suggest that you update to 13.latest, as you should always do. See if the crash turns into an error message. Then you should try to rebuild the index with REINDEX. See if that gets ri= d of the problem. However, your server log suggests that you hit the crash while in crash rec= overy. In that case you won't get far enough to rebuild any indexes. Your options are probably to restore a backup or to venture "pg_resetwal" t= o get the system up. But "pg_resetwal" will destroy data and further corrupt your database, so take a backup before you do that. The goal of "pg_resetwal" is to get the server up so you can try to "pg_dum= p" the database and restore it somewhere else. Yours, Laurenz Albe