pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthew Clark <mclark@drmatthewclark.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: server crash on raspberry pi for large queries
Date: Tue, 20 Aug 2024 19:18:42 +0000 (UTC)
Message-ID: <90650442.10108278.1724181522516@mail.yahoo.com> (raw)
In-Reply-To: <1527796.1724159772@sss.pgh.pa.us>
References: <2123352386.9759142.1724114730509.ref@mail.yahoo.com>
	<2123352386.9759142.1724114730509@mail.yahoo.com>
	<1527796.1724159772@sss.pgh.pa.us>

 OS:  Linux pi 6.6.31+rpt-rpi-v6 #1 Raspbian 1:6.6.31-1+rpt1 (2024-05-29) armv6l GNU/Linux
I can try to make a test case, essentially a large table, then "select count(*)" from table.  The select works for smaller tables.
I'm using the build of postgresql packaged with the OS version above; from the apt repository and installed with "apt install postgresql".  repository - 
deb [ arch=armhf ] http://raspbian.raspberrypi.com/raspbian/ bookworm main contrib non-free rpi


postgres --version
postgres (PostgreSQL) 15.8 (Raspbian 15.8-0+deb12u1)







    On Tuesday, August 20, 2024 at 09:16:16 AM EDT, Tom Lane <tgl@sss.pgh.pa.us> wrote:  
 
 Matthew Clark <mclark@drmatthewclark.com> writes:
> issue: when issuing a large query ,  e.g.   "Select count(*) from temperature" on a table with > 150M rows the system crashes.
>   example error:   LOG:  server process (PID 20037) was terminated by signal 4: Illegal instruction  no more diagnostic information is generated.
> Workaround : this stops happening when jit_above_cost is set to -1 in postgresql.conf   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
  

view thread (4+ messages)  latest in thread

Message-ID: <90650442.10108278.1724181522516@mail.yahoo.com>
Permalink:  ../90650442.10108278.1724181522516@mail.yahoo.com/
Also on:    postgresql.org/message-id/90650442.10108278.1724181522516@mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: mclark@drmatthewclark.com, tgl@sss.pgh.pa.us, pgsql-bugs@lists.postgresql.org
  Subject: Re: server crash on raspberry pi for large queries
  In-Reply-To: <90650442.10108278.1724181522516@mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox