From: Ufuk Kayserilioglu <ufuk@paralaus.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8821: pg_trgm segfault with Turkish locale database
Date: Tue, 14 Jan 2014 15:59:29 +0200
Message-ID: <etPan.52d542c1.3352255a.1942@Ufuk-MBA-2.local> (raw)
In-Reply-To: <16134.1389641071@sss.pgh.pa.us>
References: <20140113125641.30125.40578@wrigleys.postgresql.org>
<10064.1389629385@sss.pgh.pa.us>
<etPan.52d41189.74de0ee3.c82f@Ufuk-MBA-2.local>
<16134.1389641071@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Hi Tom,
Thank you so much for the quick turnaround. Indeed, I just built the latest version from Git and tested it on one of the original test machines and all cases are working perfectly.
Regards,
--
Ufuk Kayserilioglu
From: Tom Lane Tom Lane
Reply: Tom Lane tgl@sss.pgh.pa.us
Date: 13 January 2014 at 21:24:31
To: Ufuk Kayserilioglu ufuk@paralaus.com
Subject: Re: [BUGS] BUG #8821: pg_trgm segfault with Turkish locale database
Ufuk Kayserilioglu <ufuk@paralaus.com> writes:
> Thanks for the quick response. Just a quick followup note though; running:
> SELECT show_trgm(maker) FROM car_makers;
> behaves properly, but trying to make a similarity comparison triggers the segfault (at least in my case). That's why I suspect there may be 2 related bugs, one related trigram generation and, maybe, one related to trigram comparison. Hope this info will help you as well.
The given cases all work for me with the committed patch to generate_trgm(),
http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=c3ccc9ee584b9b015dd9c1931e261e21f3...
I'm not going to sit here and claim that there are now zero bugs in
pg_trgm, but I'm not seeing evidence of a second issue. Since the bug is
a buffer overrun of just a few bytes, whether it results in a crash in any
particular trigram operation is hard to predict; it might just stomp on
noncritical memory.
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-bugs@postgresql.org
Cc: ufuk@paralaus.com, tgl@sss.pgh.pa.us
Subject: Re: BUG #8821: pg_trgm segfault with Turkish locale database
In-Reply-To: <etPan.52d542c1.3352255a.1942@Ufuk-MBA-2.local>
References: <20140113125641.30125.40578@wrigleys.postgresql.org> <10064.1389629385@sss.pgh.pa.us> <etPan.52d41189.74de0ee3.c82f@Ufuk-MBA-2.local> <16134.1389641071@sss.pgh.pa.us> <etPan.52d542c1.3352255a.1942@Ufuk-MBA-2.local>
* 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