Re: BUG in 10.1 - dsa_area could not attach to a segment that hasbeen freed - Mailing list pgsql-bugs

From Thomas Munro
Subject Re: BUG in 10.1 - dsa_area could not attach to a segment that hasbeen freed
Date
Msg-id CAEepm=1V-ZjAAyG-xj6s7ESXFhzLsRBpyX=BLz-w2DS=ObNu4A@mail.gmail.com
Whole thread Raw
In response to Re: BUG in 10.1 - dsa_area could not attach to a segment that hasbeen freed  (Alexander Voytsekhovskyy <young.inbox@gmail.com>)
Responses Re: BUG in 10.1 - dsa_area could not attach to a segment that hasbeen freed  (Thomas Munro <thomas.munro@enterprisedb.com>)
List pgsql-bugs
On Thu, Nov 30, 2017 at 9:34 AM, Alexander Voytsekhovskyy
<young.inbox@gmail.com> wrote:
> Thanks for helping, here is one more try
>
> #0  get_segment_by_index (area=area@entry=0x556026700be8, index=1) at
> /build/postgresql-10-qAeTPy/postgresql-10-10.1/build/../src/backend/utils/mmgr/dsa.c:1736
> #1  0x00005560252c2b90 in dsa_get_address (area=area@entry=0x556026700be8,
> dp=dp@entry=1099511685280) at
> /build/postgresql-10-qAeTPy/postgresql-10-10.1/build/../src/backend/utils/mmgr/dsa.c:945
> #2  0x00005560250a2c2b in tbm_attach_shared_iterate
> (dsa=dsa@entry=0x556026700be8, dp=1099511685280) at
> /build/postgresql-10-qAeTPy/postgresql-10-10.1/build/../src/backend/nodes/tidbitmap.c:1503
> #3  0x0000556025066c7b in BitmapHeapNext (node=node@entry=0x556026460710) at
> /build/postgresql-10-qAeTPy/postgresql-10-10.1/build/../src/backend/executor/nodeBitmapHeapscan.c:176

Thank you for the report and the back trace.  I think this might be a
manifestation of the problem I just described[1] on -hackers.
Depending on the shape of a multi-Gather query plan and therefore the
order of control flow, you might finish up using the DSA area that
belongs to a different Gather node and then find that it goes away too
soon.  Investigating.

https://www.postgresql.org/message-id/CAEepm%3D1U6as%3DbrnVvMNixEV2tpi8NuyQoTmO8Qef0-VV%2B%3D7MDA%40mail.gmail.com

-- 
Thomas Munro
http://www.enterprisedb.com


pgsql-bugs by date:

Previous
From: Alexander Voytsekhovskyy
Date:
Subject: Re: BUG in 10.1 - dsa_area could not attach to a segment that hasbeen freed
Next
From: 陈欣
Date:
Subject: Fwd: Error about save extracted data