crash in DROP INDEX CONCURRENTLY - Mailing list pgsql-hackers

From Alvaro Herrera
Subject crash in DROP INDEX CONCURRENTLY
Date
Msg-id 20121107155457.GB8564@alvh.no-ip.org
Whole thread Raw
Responses Re: crash in DROP INDEX CONCURRENTLY  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-hackers
I just observed that if I run src/test/regress' "make
installcheck-parallel" and concurrently src/test/isolation's "make
installcheck", I very reproducibly get a segfault (in an assert-enabled
build).  Apparently the problem is that somebody is trying to transfer
predicate locks to a relation, but the index' relcache entry is pfreed.

I think the fix is just to move the heap_open calls some lines upwards, as in
the attached patch.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Attachment

pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: TRUNCATE SERIALIZABLE and frozen COPY
Next
From: Merlin Moncure
Date:
Subject: Re: WIP patch for hint bit i/o mitigation