Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W36aA-0006P9-4F for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Jan 2014 16:11:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W36a8-00051Z-RU for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Jan 2014 16:11:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W34Wo-0000jy-RY for pgsql-bugs@postgresql.org; Tue, 14 Jan 2014 13:59:39 +0000 Received: from mail-ea0-x231.google.com ([2a00:1450:4013:c01::231]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W34Wk-0004QH-HZ for pgsql-bugs@postgresql.org; Tue, 14 Jan 2014 13:59:38 +0000 Received: by mail-ea0-f177.google.com with SMTP id n15so3979114ead.36 for ; Tue, 14 Jan 2014 05:59:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paralaus.com; s=google; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:content-type; bh=mJu/krU+OWYP3tpR5wwNLGSPoOWGG761JRFH8FwPKlE=; b=LVMs4sw3bRfzPA2amzes9hRZzcw57OIDspBBKuYykokjEoewsM329646oCDx6EJ70U T3OFyf6JwnOv4pJl9BwN0RCmopG7YfkLdCbprJLWOshoP02abGKYtrfqR04UA7evL1Vx 83BUSKT6aJQmlXVKPGmJHAE4E/XFyJOyeoR6w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version:content-type; bh=mJu/krU+OWYP3tpR5wwNLGSPoOWGG761JRFH8FwPKlE=; b=LXI3Wm29fl4ml4SYoCJMkCaeJ7JEzw8wUaw/gQT0jewGEZEhphU3XZCtHISZiJwd1V C3PRpKYyeSxcwD7JP4OncEnNc/VQBpLUZYf3t9yi7oSVl27/TaSgRAPxP2Z09pcJaGiN 3LHrnnwHhYHX41o/IhbM4mbZ04Jf+Y4Q/uMPfXy+wS49u//2rlNMSLcfoIjpEpm39Z7t G6WCS6551PZDA/S7ZIv7BzabKvMzCcsd1zvohSobNiUvNQHQH2bG4P5z1TAaKDOhHsEe KaYSW+HQgoDJ9I0vrTr4cAYHbMy5AdsrGjrhUvHl2zEfD0gQ/4Kq/w2ks00m7hW3jiaK 1AJA== X-Gm-Message-State: ALoCoQnDNrZCWBsyLXjFhQFIu2kihQnTIHBOayOh8+QpxbPyKyCqX1SS7wi9ScWacFU31Gy9eoJG X-Received: by 10.15.45.135 with SMTP id b7mr2485956eew.88.1389707973271; Tue, 14 Jan 2014 05:59:33 -0800 (PST) Received: from Ufuk-MBA-2.local ([78.188.173.206]) by mx.google.com with ESMTPSA id b41sm1845203eef.16.2014.01.14.05.59.31 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Jan 2014 05:59:32 -0800 (PST) Date: Tue, 14 Jan 2014 15:59:29 +0200 From: Ufuk Kayserilioglu To: Tom Lane Cc: pgsql-bugs@postgresql.org Message-ID: In-Reply-To: <16134.1389641071@sss.pgh.pa.us> References: <20140113125641.30125.40578@wrigleys.postgresql.org> <10064.1389629385@sss.pgh.pa.us> <16134.1389641071@sss.pgh.pa.us> Subject: Re: BUG #8821: pg_trgm segfault with Turkish locale database X-Mailer: Airmail (223) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="52d542c1_109cf92e_1942" 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 --52d542c1_109cf92e_1942 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Tom, Thank you so much for the quick turnaround. Indeed, I just built the late= st version from Git and tested it on one of the original test machines an= d all cases are working perfectly. Regards, -- Ufuk Kayserilioglu =46rom:=C2=A0Tom Lane Tom Lane Reply:=C2=A0Tom Lane tgl=40sss.pgh.pa.us Date:=C2=A013 January 2014 at 21:24:31 To:=C2=A0Ufuk Kayserilioglu ufuk=40paralaus.com Subject:=C2=A0 Re: =5BBUGS=5D BUG =238821: pg=5Ftrgm segfault with Turkis= h locale database =20 Ufuk Kayserilioglu writes: =20 > Thanks for the quick response. Just a quick followup note though; runni= ng: =20 > SELECT show=5Ftrgm(maker) =46ROM car=5Fmakers; =20 > behaves properly, but trying to make a similarity comparison triggers t= he segfault (at least in my case). That's why I suspect there may be 2 re= lated bugs, one related trigram generation and, maybe, one related to tri= gram comparison. Hope this info will help you as well. =20 The given cases all work for me with the committed patch to generate=5Ftr= gm(), =20 http://git.postgresql.org/gitweb/=3Fp=3Dpostgresql.git;a=3Dcommitdiff;h=3D= c3ccc9ee584b9b015dd9c1931e261e21f3961e5f =20 I'm not going to sit here and claim that there are now zero bugs in =20 pg=5Ftrgm, but I'm not seeing evidence of a second issue. Since the bug i= s =20 a buffer overrun of just a few bytes, whether it results in a crash in an= y =20 particular trigram operation is hard to predict; it might just stomp on =20 noncritical memory. =20 regards, tom lane =20 --52d542c1_109cf92e_1942 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline