Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFoQa-0003mw-2e for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Nov 2017 21:44:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFoQZ-0002v2-4e for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Nov 2017 21:43:59 +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 1eFoQY-0002ur-9E for pgsql-hackers@lists.postgresql.org; Fri, 17 Nov 2017 21:43:58 +0000 Received: from mail-it0-x22b.google.com ([2607:f8b0:4001:c0b::22b]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eFoQV-0006FN-3E for pgsql-hackers@postgresql.org; Fri, 17 Nov 2017 21:43:56 +0000 Received: by mail-it0-x22b.google.com with SMTP id m11so3429424iti.1 for ; Fri, 17 Nov 2017 13:43:54 -0800 (PST) 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=5ESBE5uOzuwcRdWDa3/4Vkzs7J3eLkWo7YAlH6uGie8=; b=Fl8IAVeyVQWB40VF6dZ3qa2ZEAoZ3morjRjw/MrrArJ0njCjC/1LTwuCsMSa13FYeW IiUnfX7LG9BgTQRD7DluFM7+oZ1aPIeLzhxxahVMiB1sa8e7Mc6s1gIZfDOOlL8r0+Td m+19GPSzHjm48RjmfnyBbslMfE/5nZ1oGgKPfZkSmh9npm2EiKUGN1FOgKonqNE2d0MR xeeSraVh/Nw1K/1WvUSzka1dSIZxJXbnfnOdXf/RVKxXHI1oiAjETk1JHOaBA9aR6aTI WIMQsCbTc89r2NRs1669p+rKUJowzP01Iic1MWewVtq8CO57JtbF5pRVX7Omzcj5+YUa dTnQ== 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=5ESBE5uOzuwcRdWDa3/4Vkzs7J3eLkWo7YAlH6uGie8=; b=n8aN3/IUDqV6Qj+K1pZv2lybcuGLQPH4Q0lhNPILqMecPmgGso5effvvCXH+vuPfHn XZbC/uGWb73/1wLN8vrtbmgZtDcy4cUS6mEXNLGpMr9O53kmJf4XpDh4Hpidy5qK8Wjt RKW9K3OhzHzW2hOx3NWLJrOz46sZf3jIvpVZFHqXZQMSq12Xw5k5PPaP2mcqU+M4HsyV 5a7XJHkUT9zMwOa0AnUkW5WdLtCfBF+ZjuNN/WpPeSkjwCGbSoFFTbH1lev051yP7Fih xfSpv6TAgIA1ocK+2Y00YuGKz0Fvy2+bir3vIbF6JoQumm5WOpJM4Rmos6jw8lY5kC9a OIdw== X-Gm-Message-State: AJaThX6LSwP+vc7i7NDD50bpn30mPvwCwjnZxVViIz6Dl06kNpYBt/Te K+7IxwqubWbDDs01ARM9CWGdeK/LbSs= X-Google-Smtp-Source: AGs4zMb40hFnXT8qUytMlluWz9i3ep0Pis5YhbXrMxa3pcERNp5XzpQpZjY+XkG7xvkQeSIwkaz29A== X-Received: by 10.36.16.193 with SMTP id 184mr8613964ity.30.1510955033942; Fri, 17 Nov 2017 13:43:53 -0800 (PST) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id z27sm2465972ita.13.2017.11.17.13.43.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Nov 2017 13:43:53 -0800 (PST) Received: by pryzbyj (Postfix, from userid 1000) id 55620801058; Fri, 17 Nov 2017 15:43:52 -0600 (CST) Date: Fri, 17 Nov 2017 15:43:52 -0600 From: Justin Pryzby To: Alvaro Herrera Cc: pgsql-hackers@postgresql.org Subject: Re: PG10.1 autovac killed building extended stats Message-ID: <20171117214352.GE25796@telsasoft.com> References: <20171117152714.GA25754@telsasoft.com> <20171117163600.d7zsm2odaizikdhs@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171117163600.d7zsm2odaizikdhs@alvherre.pgsql> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, Nov 17, 2017 at 01:36:00PM -0300, Alvaro Herrera wrote: > Justin Pryzby wrote: > > > Core was generated by `postgres: autovacuum worker process gtt '. > > Program terminated with signal 11, Segmentation fault. > > #0 statext_ndistinct_build (totalrows=300, numrows=300, rows=0x21df3e8, attrs=, stats=0x0) at mvdistinct.c:103 > > 103 item->attrs = bms_add_member(item->attrs, > > > > (gdb) p stats > > $5 = (VacAttrStats **) 0x0 > > => This is an error, no ?? > > Not necessarily, but then I think this previous code is busted: > If I recall things correctly, the "continue" should be executed > regardless of IsAutoVacuumWorkerProcess() (only the log should be > conditional on that). I'm not sure how I arrived at the current coding, > which I added in bf2a691e02d7 -- probably just fuzzy thinking. Is it useful to run with that change ? Justin