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 00:15:59
Message-ID: 20220419.091559.1980251580660753987.horikyota.ntt@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At Mon, 18 Apr 2022 10:57:02 +0200, Erikjan Rijkers <er(at)xs4all(dot)nl> wrote in
> Hm. Just now I've recompiled and retried and after 5 runs got the
> same crash. Then tried on another machine (also old, I'm afraid),
> and built 1a8b11053 and ran the same thing. That failed on the first
> try, and made core dump from which I extracted:

Thanks!

> gdb ~/pg_stuff/pg_installations/pgsql.HEAD/bin/postgres
> core-postgres-6-500-500-8289-1650269886 -ex bt -ex q
>
> #2 0x0000000000973fcb in ExceptionalCondition
> #(conditionName=conditionName(at)entry=0xb20d76 "tabstat->trans == trans",
> #errorType=errorType(at)entry=0x9c7c2b "FailedAssertion",
> fileName=fileName(at)entry=0xb20d0b "pgstat_relation.c",
> lineNumber=lineNumber(at)entry=508) at assert.c:69
> #3 0x000000000086b77f in AtEOXact_PgStat_Relations
> #(xact_state=xact_state(at)entry=0x26f0b50, isCommit=isCommit(at)entry=true)
> #at pgstat_relation.c:508

Could you read tabstat, *tabstat, trans, *trans here?

> #4 0x000000000086ec0f in AtEOXact_PgStat (isCommit=isCommit(at)entry=true,
> #parallel=parallel(at)entry=false) at pgstat_xact.c:54
> #5 0x00000000005bd2a3 in CommitTransaction () at xact.c:2360
> #6 0x00000000005be5d5 in CommitTransactionCommand () at xact.c:3048
> #7 0x00000000007ee72b in apply_handle_commit_internal
> #(commit_data=commit_data(at)entry=0x7ffe4606a7a0) at worker.c:1532
> #8 0x00000000007efac9 in apply_handle_commit (s=0x7ffe4606a940) at
> #worker.c:845
> #9 apply_dispatch () at worker.c:2473
> #10 0x00000000007f11a7 in LogicalRepApplyLoop (last_received=74454600)
> #at worker.c:2757
> #11 start_apply () at worker.c:3526
> #12 0x00000000007f175f in ApplyWorkerMain () at worker.c:3782

regards.

--
Kyotaro Horiguchi
NTT Open Source Software Center

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2022-04-19 00:17:04 Re: make MaxBackends available in _PG_init
Previous Message Nathan Bossart 2022-04-19 00:12:20 Re: make MaxBackends available in _PG_init