Re: BUG #18815: Logical replication worker Segmentation fault

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: sergey(dot)belyashov(at)gmail(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #18815: Logical replication worker Segmentation fault
Date: 2025-02-17 16:39:11
Message-ID: 832225.1739810351@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> After some investigations I found that segfault is caused by one type of
> subscriptions: subscription for huge partitioned tables on publisher and
> subscriber (via root), subscriptions are created with data_copy=false
> (source table updated by inserts and partition detaches, and it is huge,
> data transfer is not compressed so it may take a days). Segfault does not
> come immediately after subscription creation, but it cause when data is come
> from the publisher. Then subscriber is restarts, recover, run subscription
> again, catch segfault and repeat again until subscription is disabled.

This is not enough information for anyone else to reproduce the
problem; it very likely depends on details that you haven't mentioned.
Can you create a reproducer case? I'm hoping for a script that sets
up the necessary tables and subscriptions and populates the tables
with enough dummy data to cause the failure.

Something that might be less work for you is to get a stack trace
from the crash:

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

However, I make no promises that we can isolate the cause from
just a stack trace. A reproducer would be much better.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Sergey Belyashov 2025-02-17 19:17:05 Re: BUG #18815: Logical replication worker Segmentation fault
Previous Message Tom Lane 2025-02-17 15:51:11 Re: BUG #18814: cannot read properties of undefined (reading 'notifies')

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2025-02-17 16:48:49 Re: Introduce XID age and inactive timeout based replication slot invalidation
Previous Message Tom Lane 2025-02-17 16:26:53 Re: New buildfarm animals with FIPS mode enabled