Re: BUG #19082: Failing assert in index scan

From: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
To: postgresql(at)zr40(dot)nl, pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: Peter Geoghegan <pg(at)bowt(dot)ie>
Subject: Re: BUG #19082: Failing assert in index scan
Date: 2025-10-10 11:14:19
Message-ID: 202510101109.xc4mj5lzidv7@alvherre.pgsql
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 2025-Oct-10, PG Bug reporting form wrote:

> Last week, I've noticed a crash due to a failed assertion that was
> consistently being triggered by an application every 10 seconds. Here's the
> log:
>
> ---
> TRAP: failed Assert("!XLogRecPtrIsInvalid(so->currPos.lsn)"), File:
> "./build/../src/backend/access/nbtree/nbtutils.c", Line: 1782, PID: 394782
> postgres: mastodon mastodon_production [local]
> SELECT(ExceptionalCondition+0x75) [0x55f9c3027ea5]

AFAICS this assertion is new as of commit c7f25feb3862. Peter?

I find it rather odd that you're running a production instance compiled
with assertions enabled, though. They have a considerable impact on
performance, and should be used for development or testing only, not
production. I would recommend to recompile with assertions disabled.
Also, it might well be that the assertion is buggy, and that nothing
would go wrong if that assertion is removed and just let the `if` test
below handle the case.

--
Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Marko Tiikkaja 2025-10-10 14:52:59 Re: [BUGS] BUG #11500: PRIMARY KEY index not being used
Previous Message Álvaro Herrera 2025-10-10 11:03:08 Re: BUG #19070: issue with DETACH PARTITION CONCURRENTLY on a hash partition table