Re: BUG #17727: A query crashes server process: ... was terminated by signal 7: Bus error / Segmentation Fault

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: oserov(at)clickup(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #17727: A query crashes server process: ... was terminated by signal 7: Bus error / Segmentation Fault
Date: 2022-12-21 19:44:08
Message-ID: 1583845.1671651848@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> I have a query that consistently results in server crash and "server process
> ... was terminated by signal 7: Bus error" running on any replica or master
> of the DB. I also have a more generic query that also crashes other
> masters/replicas in prod environment but with 'Segmentation Fault'. I can't
> reproduce the same crash in other non-prod environments. I am unable to
> provide repro steps that could reproduce this error on a local machine and
> looking for more guidance how to debug/mitigate this error.

If you can provide a stack trace from the crash, that might be enough
to diagnose it.

https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_backend

However ... the first thing I'd probably try is turning off JIT.
We've heard some reports suggesting that that causes trouble on
ARM machines.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2022-12-22 12:28:26 BUG #17728: When jdbc calls the stored procedure, portal->stmts in FillPortalStore is null, causing a processing
Previous Message PG Bug reporting form 2022-12-21 19:06:32 BUG #17727: A query crashes server process: ... was terminated by signal 7: Bus error / Segmentation Fault