Re: [PATCH] Segfault in pool_do_auth() when failover races with a new connection

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: emond(dot)papegaaij(at)gmail(dot)com
Cc: pgpool-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [PATCH] Segfault in pool_do_auth() when failover races with a new connection
Date: 2026-07-02 13:45:17
Message-ID: 20260702.224517.1668373716426906512.ishii@postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgpool-hackers

Hi Emond,

> The new patch looks fine to me. There's however one thing Claude
> pointed out. According to it, my_main_node_id,
> private_backend_status[], and my_backend_status[] are per-process
> globals (copied on fork), not shared memory. So, making any of those
> volatile should not make any difference.

You are right. Attached is the v3 patch.

Regards,
--
Tatsuo Ishii
SRA OSS K.K.
English: http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp

Attachment Content-Type Size
connect_crash_fix_v3.patch text/x-patch 2.1 KB

In response to

Responses

Browse pgpool-hackers by date

  From Date Subject
Next Message Emond Papegaaij 2026-07-02 13:54:56 Re: [PATCH] Segfault in pool_do_auth() when failover races with a new connection
Previous Message Emond Papegaaij 2026-07-02 09:21:13 Re: [PATCH] Segfault in pool_do_auth() when failover races with a new connection