Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8540-0004KR-4t for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Nov 2016 12:48:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c853z-0003lr-O3 for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Nov 2016 12:48:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c852a-00028K-EO for pgsql-hackers@postgresql.org; Sat, 19 Nov 2016 12:46:44 +0000 Received: from gauss.credativ.com ([93.94.130.89]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1c852X-00034D-Ue for pgsql-hackers@postgresql.org; Sat, 19 Nov 2016 12:46:43 +0000 Received: from gauss.credativ.com (localhost [127.0.0.1]) by gauss.credativ.com (Postfix) with ESMTP id 393011B4006; Sat, 19 Nov 2016 13:46:38 +0100 (CET) Received: from ex (ip-109-44-1-187.web.vodafone.de [109.44.1.187]) (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 D85101B4004 for ; Sat, 19 Nov 2016 13:46:37 +0100 (CET) From: Andreas Seltenreich To: pgsql-hackers@postgresql.org Subject: [sqlsmith] Crash on GUC serialization Date: Sat, 19 Nov 2016 13:46:35 +0100 Message-ID: <871sy78wno.fsf@credativ.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) 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, sqlsmith just made a GUC that tricks the serialization code into dereferencing a nullpointer. Here's a recipe: --8<---------------cut here---------------start------------->8--- set min_parallel_relation_size to 0; set max_parallel_workers_per_gather to 2; set force_parallel_mode to on; begin; select set_config('foo.baz', null, b) from (values (false), (true)) g(b); commit; select 1; --8<---------------cut here---------------end--------------->8--- regards, Andreas -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers