At Mon, 18 Apr 2022 10:57:02 +0200, Erikjan Rijkers <er@xs4all.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@entry=0xb20d76 "tabstat->trans == trans",
> #errorType=errorType@entry=0x9c7c2b "FailedAssertion",
> fileName=fileName@entry=0xb20d0b "pgstat_relation.c",
> lineNumber=lineNumber@entry=508) at assert.c:69
> #3 0x000000000086b77f in AtEOXact_PgStat_Relations
> #(xact_state=xact_state@entry=0x26f0b50, isCommit=isCommit@entry=true)
> #at pgstat_relation.c:508
Could you read tabstat, *tabstat, trans, *trans here?
> #4 0x000000000086ec0f in AtEOXact_PgStat (isCommit=isCommit@entry=true,
> #parallel=parallel@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@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