Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W2n7m-0003j8-Qr for pgsql-bugs@arkaria.postgresql.org; Mon, 13 Jan 2014 19:24:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W2n7m-0000eb-BF for pgsql-bugs@arkaria.postgresql.org; Mon, 13 Jan 2014 19:24:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W2n7l-0000eS-Bb for pgsql-bugs@postgresql.org; Mon, 13 Jan 2014 19:24:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W2n7g-0000kn-Ky for pgsql-bugs@postgresql.org; Mon, 13 Jan 2014 19:24:35 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s0DJOVkZ016135; Mon, 13 Jan 2014 14:24:31 -0500 From: Tom Lane To: Ufuk Kayserilioglu cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8821: pg_trgm segfault with Turkish locale database In-reply-to: References: <20140113125641.30125.40578@wrigleys.postgresql.org> <10064.1389629385@sss.pgh.pa.us> Comments: In-reply-to Ufuk Kayserilioglu message dated "Mon, 13 Jan 2014 18:17:13 +0200" Date: Mon, 13 Jan 2014 14:24:31 -0500 Message-ID: <16134.1389641071@sss.pgh.pa.us> X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Ufuk Kayserilioglu 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=c3ccc9ee584b9b015dd9c1931e261e21f3961e5f 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