pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Peter Geoghegan <pg@bowt.ie>
Cc: Daniel Verite <daniel@manitou-mail.org>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: Crash report for some ICU-52 (debian8) COLLATE and work_mem values
Date: Mon, 07 Aug 2017 13:19:06 -0400
Message-ID: <31926.1502126346@sss.pgh.pa.us> (raw)
In-Reply-To: <63891260-a3a4-65ba-57c7-fcf5b15b2082@2ndquadrant.com>
References: <57860965-169f-461b-81f0-60d398894938@manitou-mail.org>
	<10186.1501989988@sss.pgh.pa.us>
	<9397.1502049651@sss.pgh.pa.us>
	<CAH2-Wz=YoR-u247-k--TRpsTffRydpPGKbp9z_HDtLGQi00uKA@mail.gmail.com>
	<11062.1502052420@sss.pgh.pa.us>
	<CAH2-WznihUrKBLWcb4KUA9Q4wWED54vdEmuAAwbLpGwH85xNAA@mail.gmail.com>
	<686574df-66c0-600f-6c62-3f2560ce92a3@2ndquadrant.com>
	<63891260-a3a4-65ba-57c7-fcf5b15b2082@2ndquadrant.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> On 8/7/17 11:17, Peter Eisentraut wrote:
>> I can confirm that that avoids the crash in ICU 52, so it's something to
>> consider.  We would need more testing about which other ICU versions are
>> affected, however.

> In my testing, there are no crashes in ICU 51 and ICU 53, so we could
> restrict this workaround to version 52 specifically.  Perhaps someone
> else can confirm my test results.

I did some desultory comparison of this source code in ICU 51.2, 52.1,
and 53.1.  The crash-related code fragments are not significantly
different in 51.2 and 52.1.  It may be that 52's problem is triggered by
broken collation data that wasn't broken in previous versions ... but
I have to say that I don't find 51 worthy of trust either.  It seems
quite likely that pre-52 can still be made to crash, we just don't yet
have a test case that triggers it.

In 53, they have thrown away ucol.cpp lock stock and barrel, and rewritten
the whole thing from scratch in C++.  So it's not surprising that these
bugs are gone.  (Whether it's got other bugs is hard to tell.  I do not
get the impression, just from eyeballing it, that the code quality went
up significantly :-(.)  So that explains why upstream is not back-patching
fixes for these problems from newer versions: there are no newer versions
that they could possibly back-patch from.

I'm on board with Peter G's proposal: let's distrust ucol_strcollUTF8
in ICU < 53.  If those folk felt a need to rewrite it completely after
only three release cycles, that should tell us something.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (85+ messages)  latest in thread

Message-ID: <31926.1502126346@sss.pgh.pa.us>
Permalink:  ../31926.1502126346@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/31926.1502126346@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, peter.eisentraut@2ndquadrant.com, pg@bowt.ie, daniel@manitou-mail.org
  Subject: Re: Crash report for some ICU-52 (debian8) COLLATE and work_mem values
  In-Reply-To: <31926.1502126346@sss.pgh.pa.us>
  References: <57860965-169f-461b-81f0-60d398894938@manitou-mail.org> <10186.1501989988@sss.pgh.pa.us> <9397.1502049651@sss.pgh.pa.us> <CAH2-Wz=YoR-u247-k--TRpsTffRydpPGKbp9z_HDtLGQi00uKA@mail.gmail.com> <11062.1502052420@sss.pgh.pa.us> <CAH2-WznihUrKBLWcb4KUA9Q4wWED54vdEmuAAwbLpGwH85xNAA@mail.gmail.com> <686574df-66c0-600f-6c62-3f2560ce92a3@2ndquadrant.com> <63891260-a3a4-65ba-57c7-fcf5b15b2082@2ndquadrant.com> <31926.1502126346@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