Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jNnAs-0005mx-Km for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Apr 2020 00:42:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jNnAr-0000f2-HX for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Apr 2020 00:42:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jNnAr-0000ev-6d for pgsql-hackers@lists.postgresql.org; Mon, 13 Apr 2020 00:42:05 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jNnAk-0007N4-JL for pgsql-hackers@postgresql.org; Mon, 13 Apr 2020 00:42:04 +0000 Received: by mail-qt1-x843.google.com with SMTP id w29so5648010qtv.3 for ; Sun, 12 Apr 2020 17:41:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=KS3pROSy0lx1NTZKN3dAXphynIxKdFknYrcOJWlTBI4=; b=0100JIFQhleMhjoEHOhJ1La8a6BkBaS9X/Q5KpLDpzFb5MSabVX3f7HeBldY2Yaa/n tMpqsRctwBIV2ISggnfQ3cZquSs5DatIZotKBBqZcHAgmtnhxzW01tmSPxvUeGkGunf0 c6F7lPch9p4FPCnx7xdz577ftx9f3oc7m+t+usOHXhek/qJpzsRVEKM6/Crrvd//rsBD hKVHSvRJ3xko83eJv7dAjnZAIMjamxJfc3T9adoOdjZR87NHgrmvNwjuQjAMFmKJ/CKO wLiPuVwR+QB0IuMI5XEuYNr0rpBBoAfoM96UYeRq1Zp6PZg/CPIhVSPSy+ex8vDfwv4z oeSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=KS3pROSy0lx1NTZKN3dAXphynIxKdFknYrcOJWlTBI4=; b=ekVdeHFqLi+jPxK8ienh+kJLaQKepg4j1QIBIUKn6hSBdG9aMbmY0h+z8VtXtTborV klpiC/+Y07vWrlErh1vURnzFoVc3JmNXZXcYcKUqwIKwsmjyu+fqRizVHYEbTOdRIn3c CiSltCumQ+U6+C8yxU6euyYKxnoIjoPEZTXeUtEGSkv3kcGR0qudk1h5REg9zQvlc+21 jF1AfvEc1Rp8Y/ICuQx+TK0vG0dk0idFyiCTfmorsYTqpsRt3gCPoVRIVAKRGNLBp+yV KI2vUSOMOwTVLce+xoTR/jOcSZjy2EEbFAmImilKFDzquCt5obEfiwtot+DHcxl29xAf Fyyg== X-Gm-Message-State: AGi0PubGnRXnCsHSG6DzFl6ioVGdVVhOtEccaT9Xxp5nghQCJA6pukY9 RS06gOd73dQgBkigeqNHDbAUxw== X-Google-Smtp-Source: APiQypJ6A9TaFPcY5+zcWx+gK7luHg/fawIy1J0HQ0wR0K1Rgc3Kn7xLQoZ463CZAi9omtOD6ZAQdA== X-Received: by 2002:ac8:758d:: with SMTP id s13mr9245771qtq.105.1586738517204; Sun, 12 Apr 2020 17:41:57 -0700 (PDT) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id a22sm4218567qko.81.2020.04.12.17.41.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Apr 2020 17:41:56 -0700 (PDT) Received: by pryzbyj (Postfix, from userid 1000) id B74A6800AE5; Sun, 12 Apr 2020 19:41:54 -0500 (CDT) Date: Sun, 12 Apr 2020 19:41:54 -0500 From: Justin Pryzby To: Tomas Vondra Cc: James Coleman , pgsql-hackers@postgresql.org Subject: Re: sqlsmith crash incremental sort Message-ID: <20200413004154.GP2228@telsasoft.com> References: <20200411191952.GA30754@telsasoft.com> <20200411202639.2o7quia37zd6ypw7@development> <20200411214639.GK2228@telsasoft.com> <20200411224445.x4whiaeo67glpqen@development> <20200413000943.bejni6axj7v4q5rn@development> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200413000943.bejni6axj7v4q5rn@development> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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