Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bgFEG-0006RT-88 for pgsql-hackers@arkaria.postgresql.org; Sat, 03 Sep 2016 17:59:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bgFEF-0002yG-5p for pgsql-hackers@arkaria.postgresql.org; Sat, 03 Sep 2016 17:59:43 +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 1bgFEE-0002y9-Bz for pgsql-hackers@postgresql.org; Sat, 03 Sep 2016 17:59:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bgFEB-00075d-Vv for pgsql-hackers@postgresql.org; Sat, 03 Sep 2016 17:59:41 +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 u83HxWs5018657; Sat, 3 Sep 2016 13:59:33 -0400 From: Tom Lane To: Andreas Seltenreich cc: pgsql-hackers@postgresql.org Subject: Re: [sqlsmith] Failed assertion in numeric aggregate In-reply-to: <87oa45qfwq.fsf@credativ.de> References: <87oa45qfwq.fsf@credativ.de> Comments: In-reply-to Andreas Seltenreich message dated "Sat, 03 Sep 2016 15:19:49 +0200" Date: Sat, 03 Sep 2016 13:59:32 -0400 Message-ID: <18656.1472925572@sss.pgh.pa.us> X-Pg-Spam-Score: -3.4 (---) 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 Andreas Seltenreich writes: > Digging in the coredumps, it looks like set_var_from_num() is invoked on > an uninitialized NumericVar. Sample gdb session below. Hm, yeah, looks like numeric_poly_deserialize is missing a required init_var() step. Slightly astonishing that this got through even minimal testing. For the archives' sake: I could not reproduce this at default settings, because the aggregate calls don't get parallelized. But it fails fairly quickly with set parallel_tuple_cost = 0; set parallel_setup_cost = 0; set min_parallel_relation_size = 0; Thanks for the report! regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers