pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Mike Yeap <wkk1020@gmail.com>
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: Tue, 26 Feb 2019 09:57:35 -0500
Message-ID: <6823.1551193055@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+hUKGLeWiHCwq00GbLJ0ZLfqei89L8suj1R1PGZ=niJEfaXzg@mail.gmail.com>
References: <CAMVYW_6Ee-cYdpZ++VLnab_-3hmcorOA_kmBtsnw2R+n0nVxMw@mail.gmail.com>
	<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>

Thomas Munro <thomas.munro@gmail.com> writes:
> Question
> for the list: other stuff in the server needs libpthread (SSL, LLVM,
> ...), so why are we insisting on using non-MT LDAP?

The traditional reason for avoiding that is the risk of a server
process becoming multi-threaded.  There are live bugs of that ilk
on Darwin, and we actually have cross-checks for the case in our
code (see HAVE_PTHREAD_IS_THREADED_NP stanzas).

If pthread_is_threaded_np(), or something equivalent, is widely available
then it might be all right to try solving this going forward by switching
to libldap_r and seeing if anyone hits those cross-checks.  I'd be afraid
to risk it in the back branches though ...

			regards, tom lane




view thread (27+ messages)  latest in thread

Message-ID: <6823.1551193055@sss.pgh.pa.us>
Permalink:  ../6823.1551193055@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6823.1551193055@sss.pgh.pa.us

 · 

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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, thomas.munro@gmail.com, wkk1020@gmail.com, 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: <6823.1551193055@sss.pgh.pa.us>
  References: <CAMVYW_6Ee-cYdpZ++VLnab_-3hmcorOA_kmBtsnw2R+n0nVxMw@mail.gmail.com> <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>

* 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