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 1u7fgs-003hP4-OE for pgsql-general@arkaria.postgresql.org; Wed, 23 Apr 2025 19:23:27 +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 1u7fgp-009SY4-I5 for pgsql-general@arkaria.postgresql.org; Wed, 23 Apr 2025 19:23:24 +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 1u7fgp-009SXw-6c for pgsql-general@lists.postgresql.org; Wed, 23 Apr 2025 19:23:24 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u7fgn-001aJ7-0h for pgsql-general@lists.postgresql.org; Wed, 23 Apr 2025 19:23:22 +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 53NJNKIN1436823; Wed, 23 Apr 2025 15:23:20 -0400 From: Tom Lane To: "Zechman, Derek S" cc: "pgsql-general@lists.postgresql.org" Subject: Re: segmentation fault In-reply-to: References: Comments: In-reply-to "Zechman, Derek S" message dated "Wed, 23 Apr 2025 11:52:42 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1436821.1745436200.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 23 Apr 2025 15:23:20 -0400 Message-ID: <1436822.1745436200@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Zechman, Derek S" writes: > We are getting a segmentation fault which seems to be specific to pg16 o= n redhat 8. Tested on pg14 and pg15 with no problems. Also tested with p= g16 on redhat 9 - no issues. The developer determined that it is specific= to select into a defined variable within a function. We have a reproduci= ble test case that requires no data. I determined that 2857 is the maximu= m number that doesn't crash and anything higher than that causes a segfaul= t. Can anyone help with this problem? FWIW, I cannot replicate this problem using this script. Now I'm testing v16 branch tip not 16.6, but a quick trawl through the git history didn't find any plausibly-matching bug fixes since 16.6. Where did you get your Postgres server executable from exactly, and what options was it built with? (The output of the matching version of pg_config would answer that.) 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