pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ufuk Kayserilioglu <ufuk@paralaus.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8821: pg_trgm segfault with Turkish locale database
Date: Mon, 13 Jan 2014 14:24:31 -0500
Message-ID: <16134.1389641071@sss.pgh.pa.us> (raw)
In-Reply-To: <etPan.52d41189.74de0ee3.c82f@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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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


-- 
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 (5+ messages)  latest in thread

Message-ID: <16134.1389641071@sss.pgh.pa.us>
Permalink:  ../16134.1389641071@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16134.1389641071@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, ufuk@paralaus.com
  Subject: Re: BUG #8821: pg_trgm segfault with Turkish locale database
  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>

* 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