Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phSbf-0004c7-FJ for pgsql-bugs@arkaria.postgresql.org; Wed, 29 Mar 2023 10:00:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1phSbd-0007Ny-0T for pgsql-bugs@arkaria.postgresql.org; Wed, 29 Mar 2023 10:00:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phSbc-0007Np-Mt for pgsql-bugs@lists.postgresql.org; Wed, 29 Mar 2023 10:00:36 +0000 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1phSba-000539-GP for pgsql-bugs@lists.postgresql.org; Wed, 29 Mar 2023 10:00:35 +0000 Received: by mail-lj1-x22e.google.com with SMTP id o20so12532440ljp.3 for ; Wed, 29 Mar 2023 03:00:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680084033; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=1XCf+q46UjyxIh6S0w1VrQ/2pHa4AXVJQoFB2s3lg2A=; b=iNm1Rr+GHjNLzIZ6NcMYR8hB9sRlsgztXFRiI8f16WNXt6gvN/r4DG27VlCrQnOV2p 0GDUws7bhjQZbh0NccbIbly7QvAtPHaz9Q5n4xtwGKZ163r8dM1v9za8jh3tbHmgQUJm rt2jUtSJQPJSSiNK9EvhFTJ4z8nIgzz66WhOuGNfWIYt1kdAD/fcLCoN05SDC281L45z zCvpGCj3tYYSDh5UxhIyIPcWJK7/YstVF23DzP97bzJvcs2SF7YlE8lunQObIeFI1X4G g9pT0yshm7u3DKu+z9aV9eDFIiViR5TB/8802dyDR3ExZrK17dflmkcD0UyemLWxdx61 HIJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680084033; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1XCf+q46UjyxIh6S0w1VrQ/2pHa4AXVJQoFB2s3lg2A=; b=S5Naz89vOdm3qGQ0Exy89MHBMuQsSQCGtMWN8qsKoeqnjVTakCf/pxIqNZYV7NH5gl NsUUsxkejTdzyikqcEQlOBZZ+JxhAwwDGrTb2GLC+PsZu7f3S3jC2KTyBj7w1gifnNzP xje2vOf6rvLSzgYAp2ethbmacvuPC4RpWlw8JTwO6jcmjM+5o7lYHw9FDQ4UXeDa2BN1 ymfxmHlLEIK26NziHgPRQT9qF+GgnPtqfotSQ/oRZJ1BUQUys3dPcaqCgH3JyqqhkhWe PxLlWCtoFk18mpWQrAp5vq15I8h9rJBa/FHHlZb/t5j/hO3AXopbnyspW49YOAGFNm0X jDKw== X-Gm-Message-State: AAQBX9fyuKI2QFZFgmaV9tTZtHojUjhtO+d/5rDsriXWNVTJmn1HpVPG S63h92HcZ1S/lx/ni3Xlh9BeTs9zXPc= X-Google-Smtp-Source: AKy350bWZOzv/94vI1GWIPfAJ5nXSOgXM7PpZTL5itSwLxD7cfKP/Lj/XDI+tzBhvD52sUI4xHPEaw== X-Received: by 2002:a05:651c:10b:b0:29c:9617:842c with SMTP id a11-20020a05651c010b00b0029c9617842cmr6013880ljb.7.1680084002713; Wed, 29 Mar 2023 03:00:02 -0700 (PDT) Received: from [1.0.0.7] ([178.155.30.16]) by smtp.gmail.com with ESMTPSA id b8-20020a2e9888000000b00295a583a20bsm5421450ljj.74.2023.03.29.03.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Mar 2023 03:00:01 -0700 (PDT) Message-ID: <6341c61d-e6cd-bc68-8a8b-8b307b6f9359@gmail.com> Date: Wed, 29 Mar 2023 13:00:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: BUG #17874: Incorrect memory access at gistBuildCallback Content-Language: en-US To: kyzevan23@mail.ru, pgsql-bugs@lists.postgresql.org References: <17874-63ca6c7ce42d2103@postgresql.org> From: Alexander Lakhin In-Reply-To: <17874-63ca6c7ce42d2103@postgresql.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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@mail.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