Re: BUG #17874: Incorrect memory access at gistBuildCallback

From: Alexander Lakhin <exclusion(at)gmail(dot)com>
To: kyzevan23(at)mail(dot)ru, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #17874: Incorrect memory access at gistBuildCallback
Date: 2023-03-29 10:00:00
Message-ID: 6341c61d-e6cd-bc68-8a8b-8b307b6f9359@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi Egor,

28.03.2023 19:01, PG Bug reporting form wrote:
> The following bug has been logged on the website:
>
> Bug reference: 17874
> Logged by: Egor Chindyaskin
> Email address: kyzevan23(at)mail(dot)ru
> PostgreSQL version: 15.2
> Operating system: Ubuntu 22.04
> Description:
>
> With a server compiled with flag -DUSE_VALGRIND the following query:
>
> create table test(a int4, b point);
>
> create index test_index on test using gist(b) with (buffering = on,
> fillfactor=50);
> drop index test_index;
> insert into test (a, b) select g, point(g*10, g*10) from generate_series(1,
> 10000) g;
> vacuum analyze test;
>
> ...
>
> causes an incorrect memory access:
>
> ==00:00:00:20.465 256552== Invalid read of size 2
> ==00:00:00:20.465 256552== at 0x20EE4F: gistBuildCallback
> (gistbuild.c:921)
> ...
>
> This issue reproduces on all supported branches.

That issue was reported already as bug #16329:
https://www.postgresql.org/message-id/flat/16329-7a6aa9b6fa1118a1%40postgresql.org

Maybe it's worth to register the fix proposed there for the next commitfest...

Best regards,
Alexander

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Daniel Gustafsson 2023-03-29 10:11:09 Re: BUG #17874: Incorrect memory access at gistBuildCallback
Previous Message Balaguer, Jordi 2023-03-29 08:44:38 Problem install Stack builder download server