[sqlsmith] Crash on GUC serialization

From: Andreas Seltenreich <seltenreich(at)gmx(dot)de>
To: pgsql-hackers(at)postgresql(dot)org
Subject: [sqlsmith] Crash on GUC serialization
Date: 2016-11-19 12:46:35
Message-ID: 871sy78wno.fsf@credativ.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dilip Kumar 2016-11-19 13:18:12 Re: Proposal: scan key push down to heap [WIP]
Previous Message Stephen Frost 2016-11-19 12:36:00 Re: Mail thread references in commits