From: | Ľuboslav Špilák <lspilak(at)microstep-hdo(dot)sk> |
---|---|
To: | Peter Geoghegan <pg(at)bowt(dot)ie>, Tomas Vondra <tomas(at)vondra(dot)me> |
Cc: | "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Segmentation fault - PostgreSQL 17.0 |
Date: | 2024-11-11 08:25:21 |
Message-ID: | VI1PR02MB63336CE77E1B55F9842683078A582@VI1PR02MB6333.eurprd02.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Hello.
I am sending you the dump file from command:
Postgres(at)hdoppxendb1:~$ PGOPTIONS="-c search_path=\"XEN_TS\"" psql -XAt -d "xtimeseries" -c "SELECT encode(get_raw_page('test_idxbrin', 2),'base64')" | base64 -d > dump_block_2.page
The steps for preparing table and index are:
CREATE TABLE test (
cas int8 NULL
);
CREATE INDEX test_idxbrin ON test USING brin (cas) WITH (pages_per_range='32');
insert into test values (123)
analyse test
vacuum test
CREATE extension pageinspect;
SELECT brin_page_type(get_raw_page('test_idxbrin', 0));
select * from "XEN_TS".brin_metapage_info(get_raw_page('test_idxbrin',0));
select * from brin_revmap_data(get_raw_page('test_idxbrin',1)) limit 1000;
[cid:8ee2db51-07e6-4d71-a134-5a6a5954a9d7]
select *
from brin_page_items(
get_raw_page('test_idxbrin',2),
'test_idxbrin'
);
Last select returns this error:
SQL Error [57P03]: FATAL: the database system is not yet accepting connections
Detail: Consistent recovery state has not been yet reached.
I am working on getting the backtrace.
Thank You.
Best regards, Lubo
________________________________
From: Peter Geoghegan <pg(at)bowt(dot)ie>
Sent: Saturday, 9 November 2024 16:53
To: Tomas Vondra <tomas(at)vondra(dot)me>
Cc: Ľuboslav Špilák <lspilak(at)microstep-hdo(dot)sk>; pgsql-bugs(at)lists(dot)postgresql(dot)org <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: Segmentation fault - PostgreSQL 17.0
On Sat, Nov 9, 2024 at 7:01 AM Tomas Vondra <tomas(at)vondra(dot)me> wrote:
> Considering you're able to trigger the issue easily, it shouldn't be too
> difficult to attach GDB to a backend before running the query.
> Alternatively, you can enable core files, and generate the backtrace
> from that.
This query involves the use of a pageinspect function that accepts a
raw page image. There are some sanity checks of the page, but those
are quite lightweight. It's really not that hard to imagine it
segfaulting from a page image that passes those checks by mistake, but
is nevertheless not a valid BRIN page.
In any case this should be easy to debug: save the page image that the
function segfaults on, verify that it doesn't contain confidential
information, and then post it here. See:
--
Peter Geoghegan
________________________________
Textom tejto emailovej správy odosielateľ nesľubuje ani neuzatvára za spoločnosť MicroStep – HDO s.r.o. žiadnu zmluvu, nakoľko naša spoločnosť uzatvára každú zmluvu výlučne v písomnej forme. Ak Vám bol tento e-mail zaslaný omylom, prosím upozornite odosielateľa a tento e-mail odstráňte.
The sender of this e-mail message does not promise nor shall conclude any contract on the behalf of the company MicroStep HDO s.r.o. as our company enters into any contract exclusively in writing. If you have been sent this email in error, please notify the sender and delete this email.
Attachment | Content-Type | Size |
---|---|---|
dump_block_2.page | application/octet-stream | 8.0 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Ľuboslav Špilák | 2024-11-11 09:30:13 | Re: Segmentation fault - PostgreSQL 17.0 |
Previous Message | PG Bug reporting form | 2024-11-10 18:18:30 | BUG #18698: Checksum verification failed for: deb_postgis_3_4_pg16.app.zip |