Re: TRAP: FailedAssertion("tabstat->trans == trans", File: "pgstat_relation.c", Line: 508

From: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
To: er(at)xs4all(dot)nl
Cc: andres(at)anarazel(dot)de, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: TRAP: FailedAssertion("tabstat->trans == trans", File: "pgstat_relation.c", Line: 508
Date: 2022-04-19 09:25:18
Message-ID: 20220419.182518.710206737830232169.horikyota.ntt@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thaks Erik.

At Tue, 19 Apr 2022 07:00:30 +0200, Erik Rijkers <er(at)xs4all(dot)nl> wrote in
> Op 19-04-2022 om 02:15 schreef Kyotaro Horiguchi:
> > Could you read tabstat, *tabstat, trans, *trans here?
>
> To be honest I'm not sure how to, but I gave it a try:
>
> (gdb) p tabstat
> $1 = <optimized out>

Great! It is that. But unfortunately they are optimized out.. Could
you cause the crash with -O0 binary? You will see the variable with
it. You can rebuild with the option as follows.

$ make clean; make install CUSTOM_COPT="-O0 -g"

You can dump only the whole xact_state chain from the current core
file but the result will give a bit obscure hint for diagnosis.

regards.

--
Kyotaro Horiguchi
NTT Open Source Software Center

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2022-04-19 09:28:42 Re: Add version and data directory to initdb output
Previous Message Etsuro Fujita 2022-04-19 09:16:03 Re: postgres_fdw: batch inserts vs. before row triggers