Re: 9.4 failure on skink in _bt_newroot/XLogCheckBuffer - Mailing list pgsql-hackers

From Tom Lane
Subject Re: 9.4 failure on skink in _bt_newroot/XLogCheckBuffer
Date
Msg-id 56703.1463865494@sss.pgh.pa.us
Whole thread Raw
In response to 9.4 failure on skink in _bt_newroot/XLogCheckBuffer  (Andres Freund <andres@anarazel.de>)
Responses Re: 9.4 failure on skink in _bt_newroot/XLogCheckBuffer
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> The valgrind animal just reported a large object related failure on 9.4:

The proximate cause seems to be that _bt_newroot isn't bothering to
fill the buffer_std field here:
    /* Make a full-page image of the left child if needed */    rdata[2].data = NULL;    rdata[2].len = 0;
rdata[2].buffer= lbuf;    rdata[2].next = NULL;
 

which is indeed an actual bug, but the only consequence would be poor
compression of the full-page image (if the value chanced to be zero),
so it's not much of a problem.

What remains unclear is how come this only fails once in a blue moon.
Seems like any valgrind run of the regression tests should have caught it.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: 9.4 failure on skink in _bt_newroot/XLogCheckBuffer
Next
From: Andreas Karlsson
Date:
Subject: Re: Parallel safety tagging of extension functions