Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avUlM-0007td-L1 for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Apr 2016 19:04:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1avUlL-0005pL-VN for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Apr 2016 19:04:40 +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 1avUjy-0004Er-5m for pgsql-hackers@postgresql.org; Wed, 27 Apr 2016 19:03:14 +0000 Received: from out.smtp-auth.no-ip.com ([8.23.224.60]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1avUjq-0000Ll-PT for pgsql-hackers@postgresql.org; Wed, 27 Apr 2016 19:03:12 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [190.21.119.18]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 2C10B4008BE; Wed, 27 Apr 2016 12:03:02 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 52AA04F3; Wed, 27 Apr 2016 16:02:59 -0300 (CLST) Date: Wed, 27 Apr 2016 16:02:59 -0300 From: Alvaro Herrera To: Robert Haas Cc: "pgsql-hackers@postgresql.org" , Mikael =?iso-8859-1?Q?Kjellstr=F6m?= Subject: Re: [COMMITTERS] pgsql: Modify the isolation tester so that multiple sessions can wait. Message-ID: <20160427190259.GA42596@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: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) 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 Robert Haas wrote: > That looks like malloc() returned NULL. I noticed when writing that > patch that isolationtester has never had any checks for malloc > returning NULL, which is bad, and probably worth fixing, but I didn't > choose to stop and fix it at that time. I didn't actually check closely but I wondered whether the pointer arithmetic is actually correct. Note that the memcpy length is zero. I doubt malloc returning null is the problem; how could it happen exactly at the same spot every time the suite has run? > I don't know off-hand why you see that problem starting at this commit > and not before, or why it doesn't show up on other machines. Perhaps it's only a problem for OpenBSD's libc and not for glibc which is the most common. The only other openbsd machine in buildfarm doesn't run the isolation tests. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers