Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fsUkZ-0004b7-50 for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Aug 2018 15:08:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fsUkW-0004mw-Ov for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Aug 2018 15:08:44 +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.89) (envelope-from ) id 1fsUkW-0004mg-Ba for pgsql-bugs@lists.postgresql.org; Wed, 22 Aug 2018 15:08:44 +0000 Received: from mail-qt0-x243.google.com ([2607:f8b0:400d:c0d::243]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fsUkT-0003f5-0K for pgsql-bugs@lists.postgresql.org; Wed, 22 Aug 2018 15:08:43 +0000 Received: by mail-qt0-x243.google.com with SMTP id o15-v6so2440115qtk.6 for ; Wed, 22 Aug 2018 08:08:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=iacmevOKpCQ8GcSfoltjQpu4apN0rovPcfBSas3Cej0=; b=LPFSIdHsIWlOnVVMU8rQN6nDJ2+kGNViqGDA8VTzfRxqWWPTq3XBJhgtaBL6MSsLGc s965/su54QKFkTUVtQqTO+dLbbz+N6UsDXsQtPa9pZvoVHTem7ogR+CA/n7+a2BU5Si8 WPjZRlAYiijERuzAeb5mH83dZf/Xp00IkbRpVlfZvA3zRJ60BUDoyHlzcy+26jw1qZSq +SWRqUQHWm64NAkSXTxez7dumdlU8aM5S3GoYI7RV9HFjKh7sRXMySA6bUax9NGmXJC3 9sO/3tCCfu+y9jc8ff3+onKBMUqmNnZFj38FSfRrs85cO4YSjtoBjIaqr0nZpgxYV48O Ne2w== 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:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=iacmevOKpCQ8GcSfoltjQpu4apN0rovPcfBSas3Cej0=; b=twjS4UkkeB2tKyVQ0xOYylKd0BTnN6Wuut+LWG2HZAHPlZ42WcePWcQuRp72RKH7Wx aLMkN7CiozLzOqhqmEg5GYapo6A3LUBWWtbY4eXxvXYhoMI6PayK+dVro5IAOS3UIWyn Qn/p22xDzXFvztcZ7MrCLNlXhCEfsoP8ejoXjSzCUBvEHaMzYPB5U1VKJ3Gw8GP1Pk51 Zm/5/JaGQqUATfg3czNDiqSB1x8+sXs66RGHZeEYCVj2K3mkimkaczfLVJWG9TcCdbOt IU52EOLsPRAnKJUPT46dQttA9aN4HNwjCNYK2Tn8f1cI08ROeYQs1MAI25wRP4+wKl/V DErA== X-Gm-Message-State: APzg51ClUNYLZVWnYJ2wuOhjJPwawCgr/7pWNa6/Jjl6H3skfynj8819 qnW5mUHmBLbqFoAj49d9C/6Rxw== X-Google-Smtp-Source: ANB0VdYWeEUDnJAEAsndW4018k9L2Fb48KxUZE4Uqq1zVPnx0XWx7AAoUJTuAf4iI5epHDqbvmphLA== X-Received: by 2002:a0c:e00b:: with SMTP id j11-v6mr2205937qvk.197.1534950520268; Wed, 22 Aug 2018 08:08:40 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id z14-v6sm990640qti.83.2018.08.22.08.08.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 22 Aug 2018 08:08:39 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 33B256FB; Wed, 22 Aug 2018 12:08:38 -0300 (-03) Date: Wed, 22 Aug 2018 12:08:38 -0300 From: Alvaro Herrera To: Alexander Kukushkin Cc: Michael Paquier , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15346: Replica fails to start after the crash Message-ID: <20180822150838.ffdszn4wz57owd3c@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Aug-22, Alexander Kukushkin wrote: > 2018-08-22 16:44 GMT+02:00 Alvaro Herrera : > > > > > Sounds likely. I suggest to have a look at what's going on inside the > > postmaster process when it gets stuck. > > Well, it doesn't get stuck, it aborts start with the message: > 2018-08-22 14:26:42.073 UTC,,,28485,,5b7d7282.6f45,23,,2018-08-22 > 14:26:10 UTC,1/0,0,WARNING,01000,"page 179503104 of relation > base/18055/212875 does not exist",,,,,"xlog redo at AB3/50323E78 for > Btree/DELETE: 182 items",,,,"" > 2018-08-22 14:26:42.073 UTC,,,28485,,5b7d7282.6f45,24,,2018-08-22 > 14:26:10 UTC,1/0,0,PANIC,XX000,"WAL contains references to invalid > pages",,,,,"xlog redo at AB3/50323E78 for Btree/DELETE: 182 > items",,,,"" > 2018-08-22 14:26:42.214 UTC,,,28483,,5b7d7282.6f43,3,,2018-08-22 > 14:26:10 UTC,,0,LOG,00000,"startup process (PID 28485) was terminated > by signal 6: Aborted",,,,,,,,,"" Oh, that's weird ... sounds like the fact that the bgworker starts somehow manages to corrupt the list of invalid pages in the startup process. That doesn't make any sense ... ENOTIME for a closer look ATM, though, sorry. Maybe you could try running under valgrind? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services