Re: [COMMITTERS] pgsql: Modify the isolation tester so that multiple sessions can wait.

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, Mikael Kjellström <mikael(dot)kjellstrom(at)gmail(dot)com>
Subject: Re: [COMMITTERS] pgsql: Modify the isolation tester so that multiple sessions can wait.
Date: 2016-04-27 19:02:59
Message-ID: 20160427190259.GA42596@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

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

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2016-04-27 20:46:49 Re: Re: [COMMITTERS] pgsql: Modify the isolation tester so that multiple sessions can wait.
Previous Message Robert Haas 2016-04-27 18:53:11 Re: [COMMITTERS] pgsql: Modify the isolation tester so that multiple sessions can wait.

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2016-04-27 19:16:23 Re: pg_dump dump catalog ACLs
Previous Message Robert Haas 2016-04-27 18:54:35 Re: pgindent