pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Pryzby <pryzby@telsasoft.com>
To: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: James Coleman <jtc331@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: sqlsmith crash incremental sort
Date: Sun, 12 Apr 2020 19:41:54 -0500
Message-ID: <20200413004154.GP2228@telsasoft.com> (raw)
In-Reply-To: <20200413000943.bejni6axj7v4q5rn@development>
References: <20200411191952.GA30754@telsasoft.com>
	<20200411202639.2o7quia37zd6ypw7@development>
	<20200411214639.GK2228@telsasoft.com>
	<20200411224445.x4whiaeo67glpqen@development>
	<20200413000943.bejni6axj7v4q5rn@development>

On Mon, Apr 13, 2020 at 02:09:43AM +0200, Tomas Vondra wrote:
> Justin, can you try if this resolves the crashes or if there's something
> else going on?

With your patch, this no longer crashes:
|explain SELECT * FROM information_schema.transforms AS ref_1 RIGHT JOIN (SELECT 1 FROM pg_catalog.pg_namespace TABLESAMPLE SYSTEM (7.2))AS sample_2 ON (ref_1.specific_name is NULL);
..and sqlsmith survived 20min, which is a good sign.

pg_ctl -c -D pgsql13.dat start -o '-c port=1234 -c log_min_messages=fatal'
sqlsmith --target='host=/tmp port=1234 dbname=postgres' --verbose

Previously, I changed find_base_rel()'s Assert to an if(){elog}, so I know from
another 12 sqlsmith-hours that there's no other crash occuring frequently.

(I hadn't used sqlsmith before this weekend, and was excited when I first saw
that it'd crashed overnight, and very surprised (after enabling core dumps) to
see that it crashed within ~10min.)

-- 
Justin





view thread (25+ messages)  latest in thread

Message-ID: <20200413004154.GP2228@telsasoft.com>
Permalink:  ../20200413004154.GP2228@telsasoft.com/
Also on:    postgresql.org/message-id/20200413004154.GP2228@telsasoft.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: pryzby@telsasoft.com, tomas.vondra@2ndquadrant.com, jtc331@gmail.com
  Subject: Re: sqlsmith crash incremental sort
  In-Reply-To: <20200413004154.GP2228@telsasoft.com>
  References: <20200411191952.GA30754@telsasoft.com> <20200411202639.2o7quia37zd6ypw7@development> <20200411214639.GK2228@telsasoft.com> <20200411224445.x4whiaeo67glpqen@development> <20200413000943.bejni6axj7v4q5rn@development> <20200413004154.GP2228@telsasoft.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox