Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hvlVu-0007A0-Bi for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Aug 2019 16:43:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hvlVt-0004Xf-25 for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Aug 2019 16:43:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hvlVs-0004XY-Qj for pgsql-bugs@lists.postgresql.org; Thu, 08 Aug 2019 16:43:40 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hvlVo-0006Cb-Q8 for pgsql-bugs@lists.postgresql.org; Thu, 08 Aug 2019 16:43:39 +0000 Received: by mail-qt1-x844.google.com with SMTP id a15so92785485qtn.7 for ; Thu, 08 Aug 2019 09:43:36 -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=+EMoaNBaVsTnau23dm3q9fhDoWw479RQGk54dxWwqRw=; b=HD3c9Tz3lb0gQgPNVDcXmBYVts29FPBs5IhMlbe8YzrgJvEwi7fqJgVtlxSQGsnx+z yoCvGjVECPgwlE96bL/3PVq+JcK2B6GA+4gk9x3SAKbj+VKkcn6R1e1WSEkRqx7h4vgZ sxmmwQdj37mDTh5h34volaED2uLK05sKUauUNMvCp+A9Dt/JIIJB4g6cFnYtj8gZwQkI 3WPXCFTmlf/8XpfKis0fv0xWh0sK6fU4Nru2kqUxJKo1YxcLs9x3hF5mB49okOwo1dD8 R+GkvDANy+OfIfUSAWW93Er58QOP0d65ofdwmN1R7Z+UxNYJM35W+G8NVFeWO7s2rN6r l2GQ== 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=+EMoaNBaVsTnau23dm3q9fhDoWw479RQGk54dxWwqRw=; b=DFrEF+UqPevqNpINC+wCVZTvvYUoPv2M4vIcG1x7aaMOIv3MMr4NCiVmMWimjRQF5f URu7bvX5hWDxSgLVO6pDjwEPO4A1HyisWuCNmGcGqerPvNw1moxf5CDB2ZWhXn7v1Zv6 eJ2ms5xsLdDTwAOgvgxzj6f4l+K88uyNcLmc0gkyroukqOqP4pk+0Xxz929iJCKaVN4+ x4MQxVhnobjOlDMzCZEEkkMi/SseE2F/O/pp3HtUbMnQOAW4vdBzVCDMxU13Ks8ZTa4h i7Von23b2qDkzLraylQgk2kQcxglFnrVrljhTMsXhXx1KuX1Nq0rVEpmxsxh7bxXeAKp RVAA== X-Gm-Message-State: APjAAAV2H+hbyx3hQHMLDIUJdvO0kg/72Of4jm3AWpF0PA/+7EDvAAyc htBY2VdXS1Hfy05lFwFiFZvibQ== X-Google-Smtp-Source: APXvYqwPtplHxTVx651/ZpuSqq+Gh7k8kXj8+OY6Zsr0C2BS50NAlZ7I1HyiWunHk31ieWvVHP/aeQ== X-Received: by 2002:a0c:81b8:: with SMTP id 53mr13805647qvd.91.1565282614860; Thu, 08 Aug 2019 09:43:34 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id o10sm45978956qti.62.2019.08.08.09.43.34 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 08 Aug 2019 09:43:34 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id BB941123B38; Thu, 8 Aug 2019 12:43:32 -0400 (-04) Date: Thu, 8 Aug 2019 12:43:32 -0400 From: Alvaro Herrera To: Alexander Lakhin Cc: Andres Freund , pgsql-bugs@lists.postgresql.org, PG Bug reporting form Subject: Re: BUG #15943: Valgrind-detected error in SlruPhysicalWritePage Message-ID: <20190808164332.GA20632@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8c31c946-f2e8-3b07-3191-9f5698e3dd14@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Aug-08, Alexander Lakhin wrote: > Indeed, "memset(&qe, 0, sizeof(qe));" added in the beginning of > asyncQueueAddEntries fixes the issue. > More interestingly, "memset(qe.data, 0, sizeof(qe.data));" in the same > place fixes it too (the patch is attached). Maybe VALGRIND_MAKE_MEM_DEFINED? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services