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 1mgStI-0008Fd-4K for pgsql-admin@arkaria.postgresql.org; Fri, 29 Oct 2021 14:29:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mgStH-0002z6-3E for pgsql-admin@arkaria.postgresql.org; Fri, 29 Oct 2021 14:29:55 +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 1mgStG-0002yw-Pe for pgsql-admin@lists.postgresql.org; Fri, 29 Oct 2021 14:29:54 +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 1mgStE-0003kJ-FX for pgsql-admin@lists.postgresql.org; Fri, 29 Oct 2021 14:29:53 +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 19TEToTh627891; Fri, 29 Oct 2021 10:29:50 -0400 From: Tom Lane To: Tyler Brock cc: pgsql-admin@lists.postgresql.org Subject: Re: Segfault during queries In-reply-to: References: Comments: In-reply-to Tyler Brock message dated "Fri, 29 Oct 2021 14:05:46 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <627889.1635517790.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 29 Oct 2021 10:29:50 -0400 Message-ID: <627890.1635517790@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tyler Brock writes: > Is there anything I can do to prevent this or anything i can look at to = try > and diagnose what is happening here? I=E2=80=99m running Postgres 12.7 a= nd cannot > tell if this is a symptom of a bug or just misconfiguration. > What I see in the error logs is: > 2021-10-29 11:08:10 UTC:172.23.17.171(54332):postgres@postgres:[22200]:E= RROR: > cache lookup failed for type 0 2021-10-29 11:08:10 > UTC:172.23.17.171(54332):postgres@postgres:[22200]:STATEMENT: COPY (SELE= CT > ROW_TO_JSON(t) FROM (=E2=80=A6 the query above...) TO STDOUT 2021-10-29 = 11:08:10 > UTC::@:[19406]:LOG: server process (PID 22200) was terminated by signal = 11: > Segmentation fault That's most certainly a bug. Can you get a stack trace from the crash? https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_= backend regards, tom lane