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 1sgsvf-009hSx-JF for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Aug 2024 21:31:43 +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 1sgsvd-00FEWN-HG for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Aug 2024 21:31:42 +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 1sgsvd-00FEWE-9H for pgsql-bugs@lists.postgresql.org; Wed, 21 Aug 2024 21:31:41 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sgsvZ-000prX-U3 for pgsql-bugs@lists.postgresql.org; Wed, 21 Aug 2024 21:31:41 +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 47LLVbHa1888241; Wed, 21 Aug 2024 17:31:37 -0400 From: Tom Lane To: Weslley Braga cc: pgsql-bugs@lists.postgresql.org Subject: Re: Postgres v16.4 crashes on segfault when memory >= 16gb In-reply-to: References: Comments: In-reply-to Weslley Braga message dated "Wed, 21 Aug 2024 14:53:00 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1888239.1724275897.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 21 Aug 2024 17:31:37 -0400 Message-ID: <1888240.1724275897@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Weslley Braga writes: > I've been observing for the past month. I'm running PostgreSQL in > Kubernetes through the CloudNativePG project. When I bump the pods resou= rce > configuration to anything above 16gb I notice that complex queries such = as > the one shared below cause the runtime to fail with a segfault see logs = for > details. The same query with a configuration < 16gb memory works ok. Hmm, does turning jit =3D off affect it? > I'm glad to share more information to further help identify the issue. I= 've > also extracted core dumps from the error. The core dumps will be useless to anyone on any other platform or with an even slightly different build of Postgres. If you could extract stack traces from them, that might be helpful: https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_= backend regards, tom lane