[sqlsmith] Crash on GUC serialization - Mailing list pgsql-hackers

From Andreas Seltenreich
Subject [sqlsmith] Crash on GUC serialization
Date
Msg-id 871sy78wno.fsf@credativ.de
Whole thread Raw
Responses Re: [sqlsmith] Crash on GUC serialization  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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



pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Mail thread references in commits
Next
From: Dilip Kumar
Date:
Subject: Re: Proposal: scan key push down to heap [WIP]