2024-09-03 19:08:20.919 UTC [28762][postmaster] LOG: starting PostgreSQL 18devel on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit 2024-09-03 19:08:20.919 UTC [28762][postmaster] LOG: listening on Unix socket "/tmp/pg_regress-2WDhlU/.s.PGSQL.65312" 2024-09-03 19:08:20.939 UTC [28778][startup] LOG: database system was shut down at 2024-09-03 19:05:44 UTC 2024-09-03 19:08:20.949 UTC [28762][postmaster] LOG: database system is ready to accept connections 2024-09-03 19:08:20.959 UTC [28783][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-09-03 19:08:20.960 UTC [28783][client backend] [[unknown]][0/1:0] LOG: connection authenticated: user="postgres" method=trust (/tmp/cirrus-ci-build/contrib/pg_visibility/tmp_check/data/pg_hba.conf:117) 2024-09-03 19:08:20.960 UTC [28783][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=postgres application_name=pg_regress 2024-09-03 19:08:20.979 UTC [28783][client backend] [pg_regress][:0] LOG: disconnection: session time: 0:00:00.020 user=postgres database=postgres host=[local] 2024-09-03 19:08:21.097 UTC [28795][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-09-03 19:08:21.121 UTC [28795][client backend] [[unknown]][1/1:0] LOG: connection authenticated: user="postgres" method=trust (/tmp/cirrus-ci-build/contrib/pg_visibility/tmp_check/data/pg_hba.conf:117) 2024-09-03 19:08:21.121 UTC [28795][client backend] [[unknown]][1/1:0] LOG: connection authorized: user=postgres database=postgres application_name=pg_regress 2024-09-03 19:08:21.267 UTC [28795][client backend] [pg_regress][:0] LOG: disconnection: session time: 0:00:00.171 user=postgres database=postgres host=[local] 2024-09-03 19:08:21.331 UTC [28819][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-09-03 19:08:21.333 UTC [28819][client backend] [[unknown]][2/1:0] LOG: connection authenticated: user="postgres" method=trust (/tmp/cirrus-ci-build/contrib/pg_visibility/tmp_check/data/pg_hba.conf:117) 2024-09-03 19:08:21.333 UTC [28819][client backend] [[unknown]][2/1:0] LOG: connection authorized: user=postgres database=contrib_regression application_name=pg_regress/pg_visibility 2024-09-03 19:08:21.388 UTC [28819][client backend] [pg_regress/pg_visibility][2/3:742] ERROR: could not open relation with OID 16394 2024-09-03 19:08:21.388 UTC [28819][client backend] [pg_regress/pg_visibility][2/3:742] STATEMENT: SELECT * FROM pg_visibility_map(16394); 2024-09-03 19:08:21.390 UTC [28819][client backend] [pg_regress/pg_visibility][2/3:742] ERROR: could not open relation with OID 16394 2024-09-03 19:08:21.390 UTC [28819][client backend] [pg_regress/pg_visibility][2/3:742] STATEMENT: SELECT * FROM pg_visibility_map(16394); 2024-09-03 19:08:21.393 UTC [28819][client backend] [pg_regress/pg_visibility][2/5:0] ERROR: relation "test_partitioned" is of wrong relation kind 2024-09-03 19:08:21.393 UTC [28819][client backend] [pg_regress/pg_visibility][2/5:0] DETAIL: This operation is not supported for partitioned tables. 2024-09-03 19:08:21.393 UTC [28819][client backend] [pg_regress/pg_visibility][2/5:0] STATEMENT: select pg_visibility('test_partitioned', 0); 2024-09-03 19:08:21.393 UTC [28819][client backend] [pg_regress/pg_visibility][2/6:0] ERROR: relation "test_partitioned" is of wrong relation kind 2024-09-03 19:08:21.393 UTC [28819][client backend] [pg_regress/pg_visibility][2/6:0] DETAIL: This operation is not supported for partitioned tables. 2024-09-03 19:08:21.393 UTC [28819][client backend] [pg_regress/pg_visibility][2/6:0] STATEMENT: select pg_visibility_map('test_partitioned'); 2024-09-03 19:08:21.394 UTC [28819][client backend] [pg_regress/pg_visibility][2/7:0] ERROR: relation "test_partitioned" is of wrong relation kind 2024-09-03 19:08:21.394 UTC [28819][client backend] [pg_regress/pg_visibility][2/7:0] DETAIL: This operation is not supported for partitioned tables. 2024-09-03 19:08:21.394 UTC [28819][client backend] [pg_regress/pg_visibility][2/7:0] STATEMENT: select pg_visibility_map_summary('test_partitioned'); 2024-09-03 19:08:21.394 UTC [28819][client backend] [pg_regress/pg_visibility][2/8:0] ERROR: relation "test_partitioned" is of wrong relation kind 2024-09-03 19:08:21.394 UTC [28819][client backend] [pg_regress/pg_visibility][2/8:0] DETAIL: This operation is not supported for partitioned tables. 2024-09-03 19:08:21.394 UTC [28819][client backend] [pg_regress/pg_visibility][2/8:0] STATEMENT: select pg_check_frozen('test_partitioned'); 2024-09-03 19:08:21.394 UTC [28819][client backend] [pg_regress/pg_visibility][2/9:745] ERROR: relation "test_partitioned" is of wrong relation kind 2024-09-03 19:08:21.394 UTC [28819][client backend] [pg_regress/pg_visibility][2/9:745] DETAIL: This operation is not supported for partitioned tables. 2024-09-03 19:08:21.394 UTC [28819][client backend] [pg_regress/pg_visibility][2/9:745] STATEMENT: select pg_truncate_visibility_map('test_partitioned'); 2024-09-03 19:08:21.399 UTC [28819][client backend] [pg_regress/pg_visibility][2/12:0] ERROR: relation "test_index" is of wrong relation kind 2024-09-03 19:08:21.399 UTC [28819][client backend] [pg_regress/pg_visibility][2/12:0] DETAIL: This operation is not supported for indexes. 2024-09-03 19:08:21.399 UTC [28819][client backend] [pg_regress/pg_visibility][2/12:0] STATEMENT: select pg_visibility('test_index', 0); 2024-09-03 19:08:21.399 UTC [28819][client backend] [pg_regress/pg_visibility][2/13:0] ERROR: relation "test_index" is of wrong relation kind 2024-09-03 19:08:21.399 UTC [28819][client backend] [pg_regress/pg_visibility][2/13:0] DETAIL: This operation is not supported for indexes. 2024-09-03 19:08:21.399 UTC [28819][client backend] [pg_regress/pg_visibility][2/13:0] STATEMENT: select pg_visibility_map('test_index'); 2024-09-03 19:08:21.399 UTC [28819][client backend] [pg_regress/pg_visibility][2/14:0] ERROR: relation "test_index" is of wrong relation kind 2024-09-03 19:08:21.399 UTC [28819][client backend] [pg_regress/pg_visibility][2/14:0] DETAIL: This operation is not supported for indexes. 2024-09-03 19:08:21.399 UTC [28819][client backend] [pg_regress/pg_visibility][2/14:0] STATEMENT: select pg_visibility_map_summary('test_index'); 2024-09-03 19:08:21.399 UTC [28819][client backend] [pg_regress/pg_visibility][2/15:0] ERROR: relation "test_index" is of wrong relation kind 2024-09-03 19:08:21.399 UTC [28819][client backend] [pg_regress/pg_visibility][2/15:0] DETAIL: This operation is not supported for indexes. 2024-09-03 19:08:21.399 UTC [28819][client backend] [pg_regress/pg_visibility][2/15:0] STATEMENT: select pg_check_frozen('test_index'); 2024-09-03 19:08:21.399 UTC [28819][client backend] [pg_regress/pg_visibility][2/16:748] ERROR: relation "test_index" is of wrong relation kind 2024-09-03 19:08:21.399 UTC [28819][client backend] [pg_regress/pg_visibility][2/16:748] DETAIL: This operation is not supported for indexes. 2024-09-03 19:08:21.399 UTC [28819][client backend] [pg_regress/pg_visibility][2/16:748] STATEMENT: select pg_truncate_visibility_map('test_index'); 2024-09-03 19:08:21.401 UTC [28819][client backend] [pg_regress/pg_visibility][2/18:0] ERROR: relation "test_view" is of wrong relation kind 2024-09-03 19:08:21.401 UTC [28819][client backend] [pg_regress/pg_visibility][2/18:0] DETAIL: This operation is not supported for views. 2024-09-03 19:08:21.401 UTC [28819][client backend] [pg_regress/pg_visibility][2/18:0] STATEMENT: select pg_visibility('test_view', 0); 2024-09-03 19:08:21.401 UTC [28819][client backend] [pg_regress/pg_visibility][2/19:0] ERROR: relation "test_view" is of wrong relation kind 2024-09-03 19:08:21.401 UTC [28819][client backend] [pg_regress/pg_visibility][2/19:0] DETAIL: This operation is not supported for views. 2024-09-03 19:08:21.401 UTC [28819][client backend] [pg_regress/pg_visibility][2/19:0] STATEMENT: select pg_visibility_map('test_view'); 2024-09-03 19:08:21.401 UTC [28819][client backend] [pg_regress/pg_visibility][2/20:0] ERROR: relation "test_view" is of wrong relation kind 2024-09-03 19:08:21.401 UTC [28819][client backend] [pg_regress/pg_visibility][2/20:0] DETAIL: This operation is not supported for views. 2024-09-03 19:08:21.401 UTC [28819][client backend] [pg_regress/pg_visibility][2/20:0] STATEMENT: select pg_visibility_map_summary('test_view'); 2024-09-03 19:08:21.401 UTC [28819][client backend] [pg_regress/pg_visibility][2/21:0] ERROR: relation "test_view" is of wrong relation kind 2024-09-03 19:08:21.401 UTC [28819][client backend] [pg_regress/pg_visibility][2/21:0] DETAIL: This operation is not supported for views. 2024-09-03 19:08:21.401 UTC [28819][client backend] [pg_regress/pg_visibility][2/21:0] STATEMENT: select pg_check_frozen('test_view'); 2024-09-03 19:08:21.402 UTC [28819][client backend] [pg_regress/pg_visibility][2/22:750] ERROR: relation "test_view" is of wrong relation kind 2024-09-03 19:08:21.402 UTC [28819][client backend] [pg_regress/pg_visibility][2/22:750] DETAIL: This operation is not supported for views. 2024-09-03 19:08:21.402 UTC [28819][client backend] [pg_regress/pg_visibility][2/22:750] STATEMENT: select pg_truncate_visibility_map('test_view'); 2024-09-03 19:08:21.403 UTC [28819][client backend] [pg_regress/pg_visibility][2/24:0] ERROR: relation "test_sequence" is of wrong relation kind 2024-09-03 19:08:21.403 UTC [28819][client backend] [pg_regress/pg_visibility][2/24:0] DETAIL: This operation is not supported for sequences. 2024-09-03 19:08:21.403 UTC [28819][client backend] [pg_regress/pg_visibility][2/24:0] STATEMENT: select pg_visibility('test_sequence', 0); 2024-09-03 19:08:21.403 UTC [28819][client backend] [pg_regress/pg_visibility][2/25:0] ERROR: relation "test_sequence" is of wrong relation kind 2024-09-03 19:08:21.403 UTC [28819][client backend] [pg_regress/pg_visibility][2/25:0] DETAIL: This operation is not supported for sequences. 2024-09-03 19:08:21.403 UTC [28819][client backend] [pg_regress/pg_visibility][2/25:0] STATEMENT: select pg_visibility_map('test_sequence'); 2024-09-03 19:08:21.403 UTC [28819][client backend] [pg_regress/pg_visibility][2/26:0] ERROR: relation "test_sequence" is of wrong relation kind 2024-09-03 19:08:21.403 UTC [28819][client backend] [pg_regress/pg_visibility][2/26:0] DETAIL: This operation is not supported for sequences. 2024-09-03 19:08:21.403 UTC [28819][client backend] [pg_regress/pg_visibility][2/26:0] STATEMENT: select pg_visibility_map_summary('test_sequence'); 2024-09-03 19:08:21.403 UTC [28819][client backend] [pg_regress/pg_visibility][2/27:0] ERROR: relation "test_sequence" is of wrong relation kind 2024-09-03 19:08:21.403 UTC [28819][client backend] [pg_regress/pg_visibility][2/27:0] DETAIL: This operation is not supported for sequences. 2024-09-03 19:08:21.403 UTC [28819][client backend] [pg_regress/pg_visibility][2/27:0] STATEMENT: select pg_check_frozen('test_sequence'); 2024-09-03 19:08:21.404 UTC [28819][client backend] [pg_regress/pg_visibility][2/28:752] ERROR: relation "test_sequence" is of wrong relation kind 2024-09-03 19:08:21.404 UTC [28819][client backend] [pg_regress/pg_visibility][2/28:752] DETAIL: This operation is not supported for sequences. 2024-09-03 19:08:21.404 UTC [28819][client backend] [pg_regress/pg_visibility][2/28:752] STATEMENT: select pg_truncate_visibility_map('test_sequence'); 2024-09-03 19:08:21.406 UTC [28819][client backend] [pg_regress/pg_visibility][2/32:0] ERROR: relation "test_foreign_table" is of wrong relation kind 2024-09-03 19:08:21.406 UTC [28819][client backend] [pg_regress/pg_visibility][2/32:0] DETAIL: This operation is not supported for foreign tables. 2024-09-03 19:08:21.406 UTC [28819][client backend] [pg_regress/pg_visibility][2/32:0] STATEMENT: select pg_visibility('test_foreign_table', 0); 2024-09-03 19:08:21.406 UTC [28819][client backend] [pg_regress/pg_visibility][2/33:0] ERROR: relation "test_foreign_table" is of wrong relation kind 2024-09-03 19:08:21.406 UTC [28819][client backend] [pg_regress/pg_visibility][2/33:0] DETAIL: This operation is not supported for foreign tables. 2024-09-03 19:08:21.406 UTC [28819][client backend] [pg_regress/pg_visibility][2/33:0] STATEMENT: select pg_visibility_map('test_foreign_table'); 2024-09-03 19:08:21.406 UTC [28819][client backend] [pg_regress/pg_visibility][2/34:0] ERROR: relation "test_foreign_table" is of wrong relation kind 2024-09-03 19:08:21.406 UTC [28819][client backend] [pg_regress/pg_visibility][2/34:0] DETAIL: This operation is not supported for foreign tables. 2024-09-03 19:08:21.406 UTC [28819][client backend] [pg_regress/pg_visibility][2/34:0] STATEMENT: select pg_visibility_map_summary('test_foreign_table'); 2024-09-03 19:08:21.406 UTC [28819][client backend] [pg_regress/pg_visibility][2/35:0] ERROR: relation "test_foreign_table" is of wrong relation kind 2024-09-03 19:08:21.406 UTC [28819][client backend] [pg_regress/pg_visibility][2/35:0] DETAIL: This operation is not supported for foreign tables. 2024-09-03 19:08:21.406 UTC [28819][client backend] [pg_regress/pg_visibility][2/35:0] STATEMENT: select pg_check_frozen('test_foreign_table'); 2024-09-03 19:08:21.407 UTC [28819][client backend] [pg_regress/pg_visibility][2/36:756] ERROR: relation "test_foreign_table" is of wrong relation kind 2024-09-03 19:08:21.407 UTC [28819][client backend] [pg_regress/pg_visibility][2/36:756] DETAIL: This operation is not supported for foreign tables. 2024-09-03 19:08:21.407 UTC [28819][client backend] [pg_regress/pg_visibility][2/36:756] STATEMENT: select pg_truncate_visibility_map('test_foreign_table'); ================================================================= ==28819==ERROR: AddressSanitizer: stack-use-after-scope on address 0x7ffe0f94da40 at pc 0x55561a85fec1 bp 0x7ffe0f94d950 sp 0x7ffe0f94d948 READ of size 4 at 0x7ffe0f94da40 thread T0 #0 0x55561a85fec0 in block_range_read_stream_cb /tmp/cirrus-ci-build/src/backend/storage/aio/read_stream.c:177 #1 0x55561a85e806 in read_stream_get_block /tmp/cirrus-ci-build/src/backend/storage/aio/read_stream.c:196 #2 0x55561a85fb9b in read_stream_look_ahead /tmp/cirrus-ci-build/src/backend/storage/aio/read_stream.c:333 #3 0x55561a8609d6 in read_stream_next_buffer /tmp/cirrus-ci-build/src/backend/storage/aio/read_stream.c:691 #4 0x7fca1f619dfe in collect_visibility_data /tmp/cirrus-ci-build/contrib/pg_visibility/pg_visibility.c:545 #5 0x7fca1f61b92a in pg_visibility_rel /tmp/cirrus-ci-build/contrib/pg_visibility/pg_visibility.c:236 #6 0x55561a4356cb in ExecMakeTableFunctionResult /tmp/cirrus-ci-build/src/backend/executor/execSRF.c:234 #7 0x55561a46b2ea in FunctionNext /tmp/cirrus-ci-build/src/backend/executor/nodeFunctionscan.c:94 #8 0x55561a437af5 in ExecScanFetch /tmp/cirrus-ci-build/src/backend/executor/execScan.c:131 #9 0x55561a437bfd in ExecScan /tmp/cirrus-ci-build/src/backend/executor/execScan.c:180 #10 0x55561a46affa in ExecFunctionScan /tmp/cirrus-ci-build/src/backend/executor/nodeFunctionscan.c:269 #11 0x55561a42f461 in ExecProcNodeFirst /tmp/cirrus-ci-build/src/backend/executor/execProcnode.c:469 #12 0x55561a44e032 in ExecProcNode ../../../src/include/executor/executor.h:278 #13 0x55561a44e1d2 in fetch_input_tuple /tmp/cirrus-ci-build/src/backend/executor/nodeAgg.c:561 #14 0x55561a458efa in agg_retrieve_direct /tmp/cirrus-ci-build/src/backend/executor/nodeAgg.c:2364 #15 0x55561a459558 in ExecAgg /tmp/cirrus-ci-build/src/backend/executor/nodeAgg.c:2179 #16 0x55561a42f461 in ExecProcNodeFirst /tmp/cirrus-ci-build/src/backend/executor/execProcnode.c:469 #17 0x55561a418b75 in ExecProcNode ../../../src/include/executor/executor.h:278 #18 0x55561a418cd6 in ExecutePlan /tmp/cirrus-ci-build/src/backend/executor/execMain.c:1641 #19 0x55561a41a9ef in standard_ExecutorRun /tmp/cirrus-ci-build/src/backend/executor/execMain.c:358 #20 0x55561a41ac67 in ExecutorRun /tmp/cirrus-ci-build/src/backend/executor/execMain.c:299 #21 0x55561a9099d0 in PortalRunSelect /tmp/cirrus-ci-build/src/backend/tcop/pquery.c:924 #22 0x55561a90d859 in PortalRun /tmp/cirrus-ci-build/src/backend/tcop/pquery.c:768 #23 0x55561a904d93 in exec_simple_query /tmp/cirrus-ci-build/src/backend/tcop/postgres.c:1284 #24 0x55561a9089a9 in PostgresMain /tmp/cirrus-ci-build/src/backend/tcop/postgres.c:4766 #25 0x55561a8fad74 in BackendMain /tmp/cirrus-ci-build/src/backend/tcop/backend_startup.c:107 #26 0x55561a764d87 in postmaster_child_launch /tmp/cirrus-ci-build/src/backend/postmaster/launch_backend.c:274 #27 0x55561a76be06 in BackendStartup /tmp/cirrus-ci-build/src/backend/postmaster/postmaster.c:3415 #28 0x55561a76c4cf in ServerLoop /tmp/cirrus-ci-build/src/backend/postmaster/postmaster.c:1648 #29 0x55561a76e48a in PostmasterMain /tmp/cirrus-ci-build/src/backend/postmaster/postmaster.c:1346 #30 0x55561a51d9c0 in main /tmp/cirrus-ci-build/src/backend/main/main.c:197 #31 0x7fca22848249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) #32 0x7fca22848304 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x27304) #33 0x555619f234b0 in _start (/tmp/cirrus-ci-build/tmp_install/usr/local/pgsql/bin/postgres+0x4114b0) Address 0x7ffe0f94da40 is located in stack of thread T0 at offset 64 in frame #0 0x7fca1f619af3 in collect_visibility_data /tmp/cirrus-ci-build/contrib/pg_visibility/pg_visibility.c:486 This frame has 2 object(s): [48, 52) 'vmbuffer' (line 491) [64, 72) 'p' (line 508) <== Memory access at offset 64 is inside this variable HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork (longjmp and C++ exceptions *are* supported) SUMMARY: AddressSanitizer: stack-use-after-scope /tmp/cirrus-ci-build/src/backend/storage/aio/read_stream.c:177 in block_range_read_stream_cb Shadow bytes around the buggy address: 0x100041f21af0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100041f21b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100041f21b10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100041f21b20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100041f21b30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x100041f21b40: f1 f1 f1 f1 f1 f1 04 f2[f8]f3 f3 f3 00 00 00 00 0x100041f21b50: 00 00 00 00 00 00 f1 f1 f1 f1 f1 f1 04 f2 00 00 0x100041f21b60: 00 00 f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 0x100041f21b70: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 f2 f2 f2 0x100041f21b80: 00 00 00 f2 f2 f2 f2 f2 00 00 00 00 f2 f2 f2 f2 0x100041f21b90: 00 00 00 00 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb ==28819==ABORTING 2024-09-03 19:08:22.461 UTC [28762][postmaster] LOG: received fast shutdown request 2024-09-03 19:08:22.461 UTC [28762][postmaster] LOG: aborting any active transactions 2024-09-03 19:08:22.481 UTC [28762][postmaster] LOG: background worker "logical replication launcher" (PID 28782) exited with exit code 1 2024-09-03 19:08:23.154 UTC [28762][postmaster] LOG: server process (PID 28819) was terminated by signal 6: Aborted 2024-09-03 19:08:23.154 UTC [28762][postmaster] DETAIL: Failed process was running: select count(*) > 0 from pg_visibility('regular_table'); 2024-09-03 19:08:23.154 UTC [28762][postmaster] LOG: terminating any other active server processes 2024-09-03 19:08:23.159 UTC [28762][postmaster] LOG: abnormal database system shutdown 2024-09-03 19:08:23.208 UTC [28762][postmaster] LOG: database system is shut down