From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Noah Misch <noah@leadboat.com>
Cc: Mike Yeap <wkk1020@gmail.com>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: LDAP authenticated session terminated by signal 11: Segmentation fault, PostgresSQL server terminates other active server processes
Date: Thu, 21 Mar 2019 00:07:35 -0400
Message-ID: <23566.1553141255@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+hUKGL6Ot5TADK_V4EO7Qj5WZy-gx7VddXrOQfdwkFB1q4UyA@mail.gmail.com>
References: <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>
<CA+hUKGK9VaQu7ZJXcicY17fD0Ju0wLRex75V6M-mQky2zZJZSA@mail.gmail.com>
<20190314054254.GC2512737@rfd.leadboat.com>
<CAMVYW_4kwL-Y_DiHvUnpqoACsnj-V6sh+6DpDXZX1AtJqO-Rsw@mail.gmail.com>
<20190315034631.GA2607362@rfd.leadboat.com>
<CA+hUKGKQ5TfOasFneVNhOSLpp8-Q+Qr_vpu=SNc8k4JT37AFmA@mail.gmail.com>
<31890.1553032259@sss.pgh.pa.us>
<CA+hUKGL6Ot5TADK_V4EO7Qj5WZy-gx7VddXrOQfdwkFB1q4UyA@mail.gmail.com>
Thomas Munro <thomas.munro@gmail.com> writes:
> On Wed, Mar 20, 2019 at 10:51 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> It's reasonable to assume that the proposed patch won't cause real issues
>> on any modern platform, but I'm not sure we can assume that for old ones,
>> so the whole thing is making me a bit nervous.
> Sure, it's possible that some BF animal will fail to link the backend
> for some reason that requires a bit of investigation and a follow-up
> patch. Are you thinking of systems not covered by the BF?
No, I'm thinking that a "followup patch" might be impossible.
> Unless the server is being built with an extremely small set of
> configure options enabled, it's almost certainly already linking
> something that pulls in the platform's threading library (SSL, GSSAPI,
> XML2, ...).
Yeah, but if somebody is relying on LDAP and not any of those other
things, they won't be happy.
> If someone out there is not enabling any of that stuff
> because their system doesn't like threads, they can use
> --disable-thread-safety to avoid the effects of this change.
No, that's nonsense; --disable-thread-safety only affects what happens
on the frontend side.
>> As far as the specifics of the patch go, I don't like that you didn't
>> adjust any of the comments near pthread_is_threaded_np() usages.
> Hmm. The comments seemed OK to me without adjustment, is there
> something specific that bothered you?
The comment at postmaster.c:1339 is very specific about how there's
a problem with macOS's libintl. On the basis of that, nobody would
expect that there's a need to do anything on any other platform.
I think we should at least add something about how we're worried
about libldap_r maybe causing the backend to become multithreaded.
> The errhint about LC_ALL is
> wrong though, it's macOS-specific.
Yeah, but that's part and parcel with the comment.
regards, tom lane
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, noah@leadboat.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: <23566.1553141255@sss.pgh.pa.us>
References: <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> <CA+hUKGK9VaQu7ZJXcicY17fD0Ju0wLRex75V6M-mQky2zZJZSA@mail.gmail.com> <20190314054254.GC2512737@rfd.leadboat.com> <CAMVYW_4kwL-Y_DiHvUnpqoACsnj-V6sh+6DpDXZX1AtJqO-Rsw@mail.gmail.com> <20190315034631.GA2607362@rfd.leadboat.com> <CA+hUKGKQ5TfOasFneVNhOSLpp8-Q+Qr_vpu=SNc8k4JT37AFmA@mail.gmail.com> <31890.1553032259@sss.pgh.pa.us> <CA+hUKGL6Ot5TADK_V4EO7Qj5WZy-gx7VddXrOQfdwkFB1q4UyA@mail.gmail.com> <23566.1553141255@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