From: Noah Misch <noah@leadboat.com>
To: Mike Yeap <wkk1020@gmail.com>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: pgsql-general@postgresql.org
Subject: Re: LDAP authenticated session terminated by signal 11: Segmentation fault, PostgresSQL server terminates other active server processes
Date: Wed, 6 Mar 2019 19:19:54 -0800
Message-ID: <20190307031954.GA1797215@rfd.leadboat.com> (raw)
In-Reply-To: <CA+hUKG+cH_c7oBDROdLMF1k1Lt0H-UyAAm5dWxri531bGQUbeg@mail.gmail.com>
References: <82aa3583d44584fa3d3a3761e8df1fa48d68d8e2.camel@cybertec.at>
<2280.1550672218@sss.pgh.pa.us>
<CAMVYW_6XyjFM1JCg3Rs32ocFZf_zHqhyxQcnx8mrFsnxDm-1uA@mail.gmail.com>
<CA+hUKG+m5XbDDUNQwZB1=edGdrmm30OJHR3Dit6mMwyX-54FRg@mail.gmail.com>
<CAMVYW_7F2=CtgDuAOjXQyOt6_h5sqyDSdJz9eBZemzSxotz86g@mail.gmail.com>
<CA+hUKGLeWiHCwq00GbLJ0ZLfqei89L8suj1R1PGZ=niJEfaXzg@mail.gmail.com>
<6823.1551193055@sss.pgh.pa.us>
<CA+hUKGLuHS+FYJcMfYFo1NzfKFqyCM1Sv1y+r2Q_3LgO4QWnEQ@mail.gmail.com>
<14938.1551220103@sss.pgh.pa.us>
<CA+hUKG+cH_c7oBDROdLMF1k1Lt0H-UyAAm5dWxri531bGQUbeg@mail.gmail.com>
On Thu, Mar 07, 2019 at 10:45:56AM +1300, Thomas Munro wrote:
> On Wed, Feb 27, 2019 at 11:28 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > Thomas Munro <thomas.munro@gmail.com> writes:
> > > I don't see pthread_is_threaded_np() on any non-Apple systems in my
> > > lab.
> >
> > Yeah, I thought that might be a Mac thing. I wonder if POSIX has any
> > usable equivalent.
>
> I don't see anything like that (the concept doesn't seem very
> portable).
I'm not aware of one.
> > > Clearly libdap_r is *capable* of creating threads: it contains a
> > > function ldap_pvt_thread_create(), and we can see that slapd and other
> > > OpenLDAP things use that, but AFAICT that's a private facility not
> > > intended for end users to call, so there's no danger if you just use
> > > the documented LDAP client API.
> >
> > That seems promising, but I'd sure be happier if we could cross-check
> > that there's still just one thread at the completion of authentication.
>
> Ok, here's that patch again with a commit message and with the
> configure version warning removed, and a make-sure-we're-not-threaded
> patch for FreeBSD.
>
> I'm not sure what to do about the LDAP test in
> contrib/dblink/sql/dblink.sql. Do we still want this?
Mike, does the dblink test suite not fail on your system? It's designed to
catch this exact problem.
Has anyone else reproduced this?
> I propose this for master only, for now. I also think it'd be nice to
> consider back-patching it after a while, especially since this
> reported broke on CentOS/RHEL7, a pretty popular OS that'll be around
> for a good while. Hmm, I wonder if it's OK to subtly change library
> dependencies in a minor release; I don't see any problem with it since
> I expect both variants to be provided by the same package in every
> distro but we'd certainly want to highlight this to the package
> maintainers if we did it.
It's not great to change library dependencies in a minor release. If every
RHEL 7 installation can crash this way, changing the dependencies is probably
the least bad thing.
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-general@postgresql.org
Cc: noah@leadboat.com, wkk1020@gmail.com, thomas.munro@gmail.com, tgl@sss.pgh.pa.us, laurenz.albe@cybertec.at
Subject: Re: LDAP authenticated session terminated by signal 11: Segmentation fault, PostgresSQL server terminates other active server processes
In-Reply-To: <20190307031954.GA1797215@rfd.leadboat.com>
References: <82aa3583d44584fa3d3a3761e8df1fa48d68d8e2.camel@cybertec.at> <2280.1550672218@sss.pgh.pa.us> <CAMVYW_6XyjFM1JCg3Rs32ocFZf_zHqhyxQcnx8mrFsnxDm-1uA@mail.gmail.com> <CA+hUKG+m5XbDDUNQwZB1=edGdrmm30OJHR3Dit6mMwyX-54FRg@mail.gmail.com> <CAMVYW_7F2=CtgDuAOjXQyOt6_h5sqyDSdJz9eBZemzSxotz86g@mail.gmail.com> <CA+hUKGLeWiHCwq00GbLJ0ZLfqei89L8suj1R1PGZ=niJEfaXzg@mail.gmail.com> <6823.1551193055@sss.pgh.pa.us> <CA+hUKGLuHS+FYJcMfYFo1NzfKFqyCM1Sv1y+r2Q_3LgO4QWnEQ@mail.gmail.com> <14938.1551220103@sss.pgh.pa.us> <CA+hUKG+cH_c7oBDROdLMF1k1Lt0H-UyAAm5dWxri531bGQUbeg@mail.gmail.com> <20190307031954.GA1797215@rfd.leadboat.com>
* 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