public inbox for [email protected]  
help / color / mirror / Atom feed
From: Willian Colognesi <[email protected]>
To: Ishan Arunkumar Joshi <[email protected]>
Cc: [email protected]
Subject: Re: postgres server crash with "Segmentation fault"
Date: Thu, 16 Oct 2025 21:52:43 -0300
Message-ID: <CAA62JQeV7aM-j8Ym4=_-9A4wkT5+tvzxVL1hG9iHnsgSdpzPNg@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

Not sure if it's the same problem but I saw segmentation faults in the past
when jit was enabled in postgres. After disabled it never happened again.



Willian Colognesi | Principal Engineer

[email protected]

R. Adhemar Pereira de Barros, 1500, 14° floor, Londrina/PR | Brazil

On Thu, Oct 16, 2025, 18:54 Ishan Arunkumar Joshi <
[email protected]> wrote:

> Hi team,
>
>
>
> We are using PG16.9 in Patroni Postgres setup in production. Last night we
> have face an issue where postgres server got crash with “Segmentation
> fault” on table with auto vacuum task. Interestingly in standby node while
> we perform vacuum on same table standby node was also got crash. The table
> was not able to get query  on the table as while executing select statement
> also crash the database.
>
> we have observed few error prior to crash for same table. (Table name and
> function details change for purpose)
>
>
> "ERROR : Error occurred at function get_details page 117 of relation
> ""impacted_table"" should be empty but is not"
>
>
>
> During the same time the other table also getting below error. However
> once the database restart, we were not getting any issue for table oid=
> 1108029
>
>
> “ERROR : Error occurred at function get_details unexpected data beyond EOF
> in block 16276 of relation base/33195/1108029"
>
>
>
> At last it got failed as follows
>
> 2025-10-15 02:50:52.428 [432443]LOG:  terminating any other active server
> processes"
>
> 2025-10-15 02:50:52.428 [432443]DETAIL:  Failed process was running:
> autovacuum: VACUUM ANALYZE schema.impacted_table"
>
> 2025-10-15 02:50:52.428 [432443]LOG:  server process (PID 390906) was
> terminated by *signal 11: Segmentation fault"*
>
> 2025-10-15 02:50:55.475 [432443]LOG:  all server processes terminated;
> reinitializing"
>
> 2025-10-15 02:51:32.575 [432443]LOG:  received immediate shutdown request"
>
> 2025-10-15 02:51:32.629 [432443]LOG:  database system is shut down"
>
>
>
> The function which was executing having truncate table and insert/update
> statement executing on this table.  As this is normally functionality but
> we are suspecting it during the execution runtime it corrupt the shared
> memory and data inflight which got replicated to Replica node/DR site and
> corrupt the same table.
>
>
>
> We had to drop the table “impacted_table” from database once the database
> is up.
>
> however we are not able to identify exact root cause behind “segmentation
> fault” error for this table and need expert advice to find the root case
> and also need suggestions to prevention steps.
>
>
>
> *Thanks & Regards,*
>
> -------------------------
> Ishan Joshi
>
>
>
>
>
> ------------------------------
> The information transmitted herein is intended only for the person or
> entity to which it is addressed and may contain confidential, proprietary
> and/or privileged material. Any review, retransmission, dissemination or
> other use of, or taking of any action in reliance upon, this information by
> persons or entities other than the intended recipient is prohibited. If you
> received this in error, please contact the sender and delete the material
> from any computer.
>
>


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: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: postgres server crash with "Segmentation fault"
  In-Reply-To: <CAA62JQeV7aM-j8Ym4=_-9A4wkT5+tvzxVL1hG9iHnsgSdpzPNg@mail.gmail.com>

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

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