Re: Shared buffer access rule violations?

P <apraveen@pivotal.io>

From: Asim R P <apraveen@pivotal.io>
To: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Date: 2018-08-08T01:43:57Z
Lists: pgsql-hackers

Attachments

Please find attached a patch to mark a shared buffer as read-write or
read-only using mprotect().  The idea is to catch violations of shared
buffer access rules.  This patch was useful to detect the access
violations reported in this thread.  The mprotect() calls are enabled
by -DMPROTECT_BUFFER compile time flag.

Asim

Commits

  1. Fix inadequate buffer locking in FSM and VM page re-initialization.