pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Jeremy Finzel <finzelj@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Segmentation Fault in logical decoding get/peek API
Date: Mon, 18 Feb 2019 12:15:47 -0800
Message-ID: <20190218201547.pv53o6aqeq675ehf@alap3.anarazel.de> (raw)
In-Reply-To: <CAMa1XUjoL_DhD4AWz+MRZYYqjXt=vNcUhuy=JPK2LKS3boVqGQ@mail.gmail.com>
References: <20180220175530.6ib4b3ngzkipekgs@alap3.anarazel.de>
	<d1354af3-d34a-75a2-a171-3ac981bce639@2ndquadrant.com>
	<CAH2-WzkXxqtEH8CpUrpSewFfiZFqyjrhjQ1nLeYb_n-kR_uU0Q@mail.gmail.com>
	<1519197538224-0.post@n3.nabble.com>
	<9fe0a6de-d204-9067-4eba-dd686077dd89@2ndquadrant.com>
	<1550176423593-0.post@n3.nabble.com>
	<2527.1550183215@sss.pgh.pa.us>
	<CAMa1XUiPZVyxYe2FTr4RVd8DPrb-h1_2CLBG1ND82wKk4eSvPg@mail.gmail.com>
	<4354.1550185500@sss.pgh.pa.us>
	<CAMa1XUjoL_DhD4AWz+MRZYYqjXt=vNcUhuy=JPK2LKS3boVqGQ@mail.gmail.com>

Hi,

>    - I definitely got the same segfault on a commit after 10.4 - 0bb28ca
>    - I am now getting a different segfault on 10.5 - but I need another set
>    of eyes to verify I am not compiling it wrong
> 
> After decoding successfully for awhile, now I get an immediate segfault
> upon peek_changes.  First of all, here is the backtrace:

But to confirm, with 10.6 that's gone?


> $ sudo -u postgres gdb -q -c /san/<cluster>/pgdata/core
> /usr/lib/postgresql/10.5/bin/postgres
> Reading symbols from /usr/lib/postgresql/10.5/bin/postgres...done.
> [New LWP 22699]
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> Core was generated by `postgres: <cluster>: jfinzel foo_db
> 10.7.111.37(52316) FETCH'.
> Program terminated with signal SIGABRT, Aborted.

Note that this is not a segfault, it's an assertion that failed.


> #0  0x00007eff42d54428 in raise () from /lib/x86_64-linux-gnu/libc.so.6
> (gdb) bt
> #0  0x00007eff42d54428 in raise () from /lib/x86_64-linux-gnu/libc.so.6
> #1  0x00007eff42d5602a in abort () from /lib/x86_64-linux-gnu/libc.so.6
> #2  0x0000000000a45f9c in ExceptionalCondition (conditionName=0xc2d688
> "!(prev_first_lsn < cur_txn->first_lsn)", errorType=0xc2d404
> "FailedAssertion", fileName=0xc2d478 "reorderbuffer.c", lineNumber=688) at
> assert.c:54

If it's not gone with 10.6, could you print the two variables in that
expression?



> # Install Extensions
> cd $HOME/pgl_ddl_deploy
> make clean
> sudo "PATH=$PATH" make install
> cd $HOME/pglogical_ticker
> make clean
> sudo "PATH=$PATH" make install
> cd $HOME/pg_fact_loader
> make clean
> sudo "PATH=$PATH" make install

It's entirely possible that one of those extensions does something to
violate WAL logging rules :/

Greetings,

Andres Freund




view thread (27+ messages)  latest in thread

Message-ID: <20190218201547.pv53o6aqeq675ehf@alap3.anarazel.de>
Permalink:  ../20190218201547.pv53o6aqeq675ehf@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20190218201547.pv53o6aqeq675ehf@alap3.anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: andres@anarazel.de, finzelj@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: Segmentation Fault in logical decoding get/peek API
  In-Reply-To: <20190218201547.pv53o6aqeq675ehf@alap3.anarazel.de>
  References: <20180220175530.6ib4b3ngzkipekgs@alap3.anarazel.de> <d1354af3-d34a-75a2-a171-3ac981bce639@2ndquadrant.com> <CAH2-WzkXxqtEH8CpUrpSewFfiZFqyjrhjQ1nLeYb_n-kR_uU0Q@mail.gmail.com> <1519197538224-0.post@n3.nabble.com> <9fe0a6de-d204-9067-4eba-dd686077dd89@2ndquadrant.com> <1550176423593-0.post@n3.nabble.com> <2527.1550183215@sss.pgh.pa.us> <CAMa1XUiPZVyxYe2FTr4RVd8DPrb-h1_2CLBG1ND82wKk4eSvPg@mail.gmail.com> <4354.1550185500@sss.pgh.pa.us> <CAMa1XUjoL_DhD4AWz+MRZYYqjXt=vNcUhuy=JPK2LKS3boVqGQ@mail.gmail.com> <20190218201547.pv53o6aqeq675ehf@alap3.anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox