Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avv7k-00068u-7n for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Apr 2016 23:13:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1avv7j-0003jH-Pr for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Apr 2016 23:13:31 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1avv7i-0003j1-OJ for pgsql-hackers@postgresql.org; Thu, 28 Apr 2016 23:13:30 +0000 Received: from gauss.credativ.com ([93.94.130.89]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1avv7g-000232-1T for pgsql-hackers@postgresql.org; Thu, 28 Apr 2016 23:13:29 +0000 Received: from gauss.credativ.com (localhost [127.0.0.1]) by gauss.credativ.com (Postfix) with ESMTP id 14D421450072; Fri, 29 Apr 2016 01:13:25 +0200 (CEST) Received: from elite (ip-109-44-2-44.web.vodafone.de [109.44.2.44]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: ase@gauss.credativ.com) by gauss.credativ.com (Postfix) with ESMTPSA id C22511450070 for ; Fri, 29 Apr 2016 01:13:24 +0200 (CEST) From: Andreas Seltenreich To: pgsql-hackers@postgresql.org Subject: [sqlsmith] Crash in apply_projection_to_path User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.5 (gnu/linux) X-Now-Playing: Max Melvin - Seaside =?utf-8?Q?=E2=99=AA?= Space Night 8 =?utf-8?Q?=E2=99=AA?= Space Night Date: Fri, 29 Apr 2016 01:13:18 +0200 Message-ID: <871t5pgwdt.fsf@credativ.de> MIME-Version: 1.0 Content-Type: text/plain X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Hi, the following query against the regression database crashes master as of 23b09e15. select 1 from depth0 inner join depth1 on (depth0.c = depth1.c) where depth0.c @@ depth1.c limit 1; regards, Andreas Program terminated with signal SIGSEGV, Segmentation fault. #0 create_projection_path (root=root@entry=0x6918e60, rel=0x7f7f7f7f7f7f7f7f, subpath=0x69d6de8, target=target@entry=0x69d7428) at pathnode.c:2160 2160 pathnode->path.parallel_safe = rel->consider_parallel && #0 create_projection_path (root=root@entry=0x6918e60, rel=0x7f7f7f7f7f7f7f7f, subpath=0x69d6de8, target=target@entry=0x69d7428) at pathnode.c:2160 #1 0x000000000067841e in apply_projection_to_path (root=0x6918e60, rel=0x69d5e18, path=0x69d6ee0, target=0x69d7428) at pathnode.c:2251 #2 0x000000000065ff20 in grouping_planner (root=0x22e1850, root@entry=0x6918e60, inheritance_update=56 '8', inheritance_update@entry=0 '\000', tuple_fraction=2615.2579411764709, tuple_fraction@entry=0) at planner.c:1737 #3 0x0000000000661f44 in subquery_planner (glob=glob@entry=0x6918dc8, parse=parse@entry=0x235e3b0, parent_root=parent_root@entry=0x0, hasRecursion=hasRecursion@entry=0 '\000', tuple_fraction=tuple_fraction@entry=0) at planner.c:758 #4 0x0000000000662e2b in standard_planner (parse=0x235e3b0, cursorOptions=256, boundParams=0x0) at planner.c:307 #5 0x00000000006f40ed in pg_plan_query (querytree=0x235e3b0, cursorOptions=256, boundParams=0x0) at postgres.c:798 #6 0x00000000006f41e4 in pg_plan_queries (querytrees=, cursorOptions=256, boundParams=0x0) at postgres.c:857 #7 0x00000000006f5c93 in exec_simple_query (query_string=) at postgres.c:1022 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers