Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZJLTO-0000Es-Ai for pgsql-hackers@arkaria.postgresql.org; Sun, 26 Jul 2015 12:56:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZJLTN-0006Cg-O1 for pgsql-hackers@arkaria.postgresql.org; Sun, 26 Jul 2015 12:56:09 +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) (envelope-from ) id 1ZJLTM-0006CZ-V3 for pgsql-hackers@postgresql.org; Sun, 26 Jul 2015 12:56:09 +0000 Received: from mout.kundenserver.de ([212.227.126.187]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1ZJLTJ-00026G-Qn for pgsql-hackers@postgresql.org; Sun, 26 Jul 2015 12:56:07 +0000 Received: from ex ([109.41.158.143]) by mrelayeu.kundenserver.de (mreue002) with ESMTPSA (Nemesis) id 0MIUU3-1ZLGkX21Gx-004EjR for ; Sun, 26 Jul 2015 14:56:02 +0200 From: Andreas Seltenreich To: pgsql-hackers@postgresql.org Subject: Failing assertions in indxpath.c, placeholder.c and brin_minmax.c User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4 (gnu/linux) Message-ID: <871tfv3wor.fsf@ex.ansel.ydns.eu> Date: Sun, 26 Jul 2015 14:55:32 +0200 MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:MZxMuUPaN1XOxZ3/Y25lkf6oixFj2u92LIHPIKKnhqbxPE6flR2 oDYHZroplJD1eosXR5Ca60I1i0qLyXfb12Ww83GfvgseBSHr/7x8te8kqTdsl4TB0H2OyYu vpsHWocLCsL/GRWOyL4Pf9qw8B2ugqhwu45sFDbz+SxdJC7F0LqlQouSdynkK4NUCOoQe4R ncGX/882pI3hxwi2u11aQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:LAY8XpnCUdk=:Fa+wGUrZdAMpP6UCtmrhS0 h6Sw5dCM8CGf2XHWetP3CQkGzkBVc1AY85yaIix6HWO0Sy8YPEt3JCbnWRcQ7jPnDDPDuRgJM rzVYW70EcAG7Nbj1wBeN5WrT1Ple6tOJEMCpUByysjBdK9rnE6NTRZmRbcdRz4Y7903KD+ClH 2+xdm5mqq9mzzTUt6qRvk/CPVKPGzc1pWqewwZ4mVSbEeDSrlZAbeQAmi3tb4Vx+y8my3lxNZ ijhyU8eTkesN10dd0tP6BoBxglgxUAS9vb4LIH2SxxL74rz8YhcthxIVK1juCkLtGflx+Ulf9 Dsu5JuDkVvgEG9g53yIaEcmu35RX3u4wBuXdn+Oh90qvGZTsicdoFSYqS9E81zHYGJaGNCLxE S2rx/eupcDb+wQ7oJrFUTLqvNBkzku5Q6moqr4dnXMdu3F27bEUquhH+DRIf+L5vXBDDMjRkA HppkkfUryQPhOA2D6f2e96IEYABBd7f8IkyDHnoQH0cqh+9TbvGLLr6/cm+6zGNBkMLuQ9K8N pXPgaezY0u7OOY4E7BsLWMgSuP0nd1F39BS027f+K4Jr8roI0ld5ZikOxTpV6BhiU8S1FrYHq LQ9VVNlfobd/KsrQK7ttjugiLKfUsW1tbIat25Cwb4AltnHhNArpmCnnJp4QkzO56CVQZzjmJ 9hfDmAoMsMqYCFyxzfKAxwgGtN5NlVcIFTni4IzkkcKf/Nw== X-Pg-Spam-Score: -2.6 (--) 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, when running my random query generator contraption[1] against the regression database of 9.5 or master, it occasionally triggers one of the following three assertions. Someone more knowledgeable might want to take a look at them... -- FailedAssertion("!(outer_rel->rows > 0)", File: "indxpath.c", Line: 1911) -- sample query: select rel1925354.loid as c0, rel1925353.version as c1 from (select rel1925352.aa as c0, rel1925352.aa as c1 from public.b as rel1925352 where (rel1925352.bb is NULL) and (rel1925352.bb < rel1925352.bb)) as subq_303136 inner join pg_catalog.pg_stat_ssl as rel1925353 on (subq_303136.c0 = rel1925353.pid ) right join pg_catalog.pg_largeobject as rel1925354 on (subq_303136.c0 = rel1925354.pageno ) where (rel1925353.clientdn !~ rel1925353.clientdn) and (rel1925353.cipher <= rel1925353.clientdn); ,----[ git bisect ] | first bad commit: [3f8c23c4d31d4a0e801041733deb2c7cfa577b32] Improve | predtest.c's ability to reason about operator expressions. `---- -- FailedAssertion("!(!bms_is_empty(phinfo->ph_eval_at))", File: "placeholder.c", Line: 109) -- sample query: select rel1600276.viewowner as c0, rel1600274.maxwritten_clean as c1, rel1600275.n_tup_hot_upd as c2 from pg_catalog.pg_stat_bgwriter as rel1600274 inner join pg_catalog.pg_stat_xact_all_tables as rel1600275 on (rel1600274.maxwritten_clean = rel1600275.seq_scan ) right join pg_catalog.pg_views as rel1600276 right join pg_catalog.pg_operator as rel1600277 on (rel1600276.viewname = rel1600277.oprname ) on (rel1600275.relname = rel1600277.oprname ) where 3 is not NULL; ,----[ git bisect ] | first bad commit: [f4abd0241de20d5d6a79b84992b9e88603d44134] Support | flattening of empty-FROM subqueries and one-row VALUES tables. `---- -- FailedAssertion("!(key->sk_flags & 0x0080)", File: "brin_minmax.c", Line: 177) -- sample query: select rel167978.namecol as c0 from information_schema.parameters as rel167972 left join public.student as rel167977 inner join public.brintest as rel167978 on (rel167977.age = rel167978.int4col ) on (rel167972.interval_precision = rel167977.age ) where rel167977.name <> rel167977.name; regards, andreas Footnotes: [1] https://github.com/anse1/sqlsmith -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers