Re: Bus error in pg_logical_slot_get_changes (9.4.7, sparc)

From: Christoph Berg <christoph(dot)berg(at)credativ(dot)de>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: PostgreSQL Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Bus error in pg_logical_slot_get_changes (9.4.7, sparc)
Date: 2016-04-13 21:11:52
Message-ID: 20160413211152.GA21711@msg.credativ.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Re: Andres Freund 2016-04-13 <20160413161906(dot)aykti6iwdc7zv7l6(at)alap3(dot)anarazel(dot)de>
> > 2327 Size tuplelen = ((HeapTuple) data)->t_len;
>
> Hrmpf, I guess this is an alignment issue. We should probably replace
> that ->t_len lookup with a memcpy. IIRC it's not entirely trivial to
> access porter boxes anymore - could you perhaps just replace those two
> t_len lookups with a memcpy (i.e. memcpy(&tuplelen, &(HeapTuple)
> data)->t_len, sizeof(uint32))?

That fixed the contrib/test_decoding checks, thanks.
Will do another full build over night to double check.

Mit freundlichen Grüßen,
Christoph Berg
--
Senior Berater, Tel.: +49 (0)21 61 / 46 43-187
credativ GmbH, HRB Mönchengladbach 12080, USt-ID-Nummer: DE204566209
Hohenzollernstr. 133, 41061 Mönchengladbach
Geschäftsführung: Dr. Michael Meskes, Jörg Folz, Sascha Heuer
pgp fingerprint: 5C48 FE61 57F4 9179 5970 87C6 4C5A 6BAB 12D2 A7AE

Attachment Content-Type Size
pglogical-alignment text/plain 870 bytes

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Josh berkus 2016-04-13 22:59:44 Lock pileup stuck processes
Previous Message Andres Freund 2016-04-13 17:58:27 Re: Bus error in pg_logical_slot_get_changes (9.4.7, sparc)