Re: [sqlsmith] Failed assertion in numeric aggregate - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [sqlsmith] Failed assertion in numeric aggregate
Date
Msg-id 18656.1472925572@sss.pgh.pa.us
Whole thread Raw
In response to [sqlsmith] Failed assertion in numeric aggregate  (Andreas Seltenreich <seltenreich@gmx.de>)
Responses Re: [sqlsmith] Failed assertion in numeric aggregate
List pgsql-hackers
Andreas Seltenreich <seltenreich@gmx.de> 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



pgsql-hackers by date:

Previous
From: Vik Fearing
Date:
Subject: Re: INSERT .. SET syntax
Next
From: Tom Lane
Date:
Subject: Re: (Comment)Bug in CteScanNext