Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4rWj-0001m4-72 for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Oct 2017 16:49:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e4rWi-0007u9-Oh for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Oct 2017 16:49:04 +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_2) (envelope-from ) id 1e4rWh-0007sg-7G for pgsql-hackers@postgresql.org; Wed, 18 Oct 2017 16:49:03 +0000 Received: from mail-io0-x22e.google.com ([2607:f8b0:4001:c06::22e]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1e4rWc-0005oc-AY for pgsql-hackers@postgresql.org; Wed, 18 Oct 2017 16:49:01 +0000 Received: by mail-io0-x22e.google.com with SMTP id 189so6918583iow.10 for ; Wed, 18 Oct 2017 09:48:57 -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=ZNPXGrDehfLcttbITkaziY6+7CwPWGzbTzE0j0yBn6E=; b=Kr8Q0lR3J0LvLFcl4c7v0x2YK1oYHoEhe4c1HonKTtH+Gn6EgMgD/2gAbMbHmAYuhk 2af94yIvHsr1ASxYxFhOBbA2zYroK1Aq0d8W77qmqEG2AslrfmZfxgT32vWenJHmMYur q7833YNHdS9tkNZmcZ4uoGfmqdkxAHJVi3Lij1qdgj09e6ws3oDmX3aN14HblJYxkDhP 1Qc4I/WmUEf4Tb5IjKHGxcHvOEw9rZ3ZzHRv+nR1Hxlc/ZWoN3AUpQ/d5wDJ801kBSuE ArBFBletuHmGLoBPq62s9M4+b2b1eJ52igIueMc0fU/fCxqtgddG+enW7iNaaLBDsw2f 09gg== 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=ZNPXGrDehfLcttbITkaziY6+7CwPWGzbTzE0j0yBn6E=; b=oWR7gNTJcwp+BcCrJLGjN86Pw6nCcYZIceytEKDH9c1W1Bdz2Lq9IxHiIdHvTHx4XJ a3thh1mPDjDppHUMP8bycy0QBUdNNe27xjiFCGFk798J0Ow2GWSmSyWhqu6uSf+MQOC0 yVMidDQwt7WOkG2rFaw/grCn/+3iiKOVxIxaBbjoWT65awCrvQKEi4/B4CsBVwxsM3ot DXpaqioEPZFfZ9UPoO5+LReuK8h13N5XyQFuJF8VLDJZ+iRntnFwez16ytasbOOrFlSi 4ht3ilRGesBLfbeVaXbAMT1pWH6XSkVmfsdX69tGkRV9rcQs4S/dir71fqRP4rlZGvIn C9zg== X-Gm-Message-State: AMCzsaVBcaNidhjN0l6/7U2qKFh39HVqXcajhbild7zSX/kJeeA/tMBG JAmg6HOmEe7YxYbAXbWfCVuAFQ== X-Google-Smtp-Source: ABhQp+RDRlJKMSDV22mStB6rHJ0Vav/vNCsZVu67qkIKVCeGjePfikdIBTNwQelsENbWsWqtzZI6Ig== X-Received: by 10.107.138.222 with SMTP id c91mr22258830ioj.246.1508345337205; Wed, 18 Oct 2017 09:48:57 -0700 (PDT) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id i63sm3824638ioi.68.2017.10.18.09.48.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Oct 2017 09:48:56 -0700 (PDT) Received: by pryzbyj (Postfix, from userid 1000) id A10D880129D; Wed, 18 Oct 2017 11:48:55 -0500 (CDT) Date: Wed, 18 Oct 2017 11:48:55 -0500 From: Justin Pryzby To: Tom Lane Cc: Alvaro Herrera , pgsql-hackers@postgresql.org Subject: Re: SIGSEGV in BRIN autosummarize Message-ID: <20171018164855.GC17895@telsasoft.com> References: <20171014224220.GB22678@telsasoft.com> <20171017105916.3rvmznxnuphn3uph@alvherre.pgsql> <20171017122922.GC13880@telsasoft.com> <5648.1508247264@sss.pgh.pa.us> <20171017140740.GD13880@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171017140740.GD13880@telsasoft.com> User-Agent: Mutt/1.5.23 (2014-03-12) 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 On Tue, Oct 17, 2017 at 09:07:40AM -0500, Justin Pryzby wrote: > On Tue, Oct 17, 2017 at 09:34:24AM -0400, Tom Lane wrote: > > Justin Pryzby writes: > > > On Tue, Oct 17, 2017 at 12:59:16PM +0200, Alvaro Herrera wrote: > > >> Anyway, can give this patch a try? > > > > The trick in this sort of situation is to make sure you build binaries > > that match your existing install in every way except having the added > > patch, and maybe getting installed into a different directory. > > I'm familiar with that process; but, these are PG10 binaries from PGDG for > centos6 x64. I had to add symlinks for postgis library, but otherwise seems to > be working fine (although I didn't preserve as many configure options as your > message would suggest I should have). On Tue, Oct 17, 2017 at 12:49:55PM -0400, Tom Lane wrote: > So what I'm thinking is that you need an error during perform_work_item, > and/or more than one work_item picked up in the calling loop, to make this > bug manifest. You would need to enter perform_work_item in a ..in our case probably due to interruption by LOCK TABLE, yes? On Tue, Oct 17, 2017 at 12:49:55PM -0400, Tom Lane wrote: > Alvaro Herrera writes: > > And I think that's because we're not > > checking that the namespace OID is a valid value before calling > > get_namespace_name on it. > > The part of your patch that adds a check on avw_database is clearly > correct and necessary. I'm thinking the change you propose in > perform_work_item is just overcomplicating code that's okay as it > stands. We don't need to optimize for the schema-went-away case. No crashes in ~28hr. It occurs to me that it's a weaker test due to not preserving most compilation options. If I understand, our crash isn't explained by the avw_database test anyway (?) Should I make clean and recompile with all non-prefix options and a minimal patch (avw_database==MyDatabaseId || continue) ? Or recompile with existing options but no patch to first verify crash occurs with locally compiled binary? Justin -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers