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 1sgOii-001eH8-Nt for pgsql-bugs@arkaria.postgresql.org; Tue, 20 Aug 2024 13:16:20 +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 1sgOig-00HXER-IR for pgsql-bugs@arkaria.postgresql.org; Tue, 20 Aug 2024 13:16:19 +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 1sgOig-00HXEJ-AC for pgsql-bugs@lists.postgresql.org; Tue, 20 Aug 2024 13:16:18 +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 1sgOid-000cMS-F4 for pgsql-bugs@lists.postgresql.org; Tue, 20 Aug 2024 13:16:18 +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 47KDGC2R1527797; Tue, 20 Aug 2024 09:16:12 -0400 From: Tom Lane To: Matthew Clark cc: "pgsql-bugs@lists.postgresql.org" Subject: Re: server crash on raspberry pi for large queries In-reply-to: <2123352386.9759142.1724114730509@mail.yahoo.com> References: <2123352386.9759142.1724114730509.ref@mail.yahoo.com> <2123352386.9759142.1724114730509@mail.yahoo.com> Comments: In-reply-to Matthew Clark message dated "Tue, 20 Aug 2024 00:45:30 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1527795.1724159772.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 20 Aug 2024 09:16:12 -0400 Message-ID: <1527796.1724159772@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Matthew Clark writes: > issue: when issuing a large query ,=C2=A0 e.g.=C2=A0=C2=A0 "Select count= (*) from temperature" on a table with > 150M rows the system crashes. > =C2=A0 example error:=C2=A0=C2=A0 LOG:=C2=A0 server process (PID 20037) = was terminated by signal 4: Illegal instruction=C2=A0 no more diagnostic i= nformation is generated. > Workaround : this stops happening when jit_above_cost is set to -1 in po= stgresql.conf=C2=A0=C2=A0 After changing this setting the problem stops. What this sounds like is a memory leak in the JIT stuff. We fixed one such issue last year, but perhaps there's more. Can you provide a self-contained test case? Also, please be more specific about which Linux version you are using, and which LLVM version. regards, tom lane