2024-09-03 19:47:28.574 UTC [34800][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:47:28.574 UTC [34800][postmaster] LOG: listening on Unix socket "/tmp/pg_regress-WOOtjs/.s.PGSQL.65312" 2024-09-03 19:47:28.628 UTC [34812][startup] LOG: database system was shut down at 2024-09-03 19:44:58 UTC 2024-09-03 19:47:28.643 UTC [34815][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-09-03 19:47:28.643 UTC [34815][client backend] [[unknown]][:0] FATAL: the database system is starting up 2024-09-03 19:47:28.665 UTC [34800][postmaster] LOG: database system is ready to accept connections 2024-09-03 19:47:28.709 UTC [34825][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-09-03 19:47:28.710 UTC [34825][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:47:28.710 UTC [34825][client backend] [[unknown]][0/1:0] LOG: connection authorized: user=postgres database=postgres application_name=pg_regress 2024-09-03 19:47:28.763 UTC [34825][client backend] [pg_regress][:0] LOG: disconnection: session time: 0:00:00.058 user=postgres database=postgres host=[local] 2024-09-03 19:47:28.818 UTC [34840][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-09-03 19:47:28.819 UTC [34840][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:47:28.819 UTC [34840][client backend] [[unknown]][1/1:0] LOG: connection authorized: user=postgres database=postgres application_name=pg_regress 2024-09-03 19:47:28.951 UTC [34840][client backend] [pg_regress][:0] LOG: disconnection: session time: 0:00:00.140 user=postgres database=postgres host=[local] 2024-09-03 19:47:29.001 UTC [34853][not initialized] [[unknown]][:0] LOG: connection received: host=[local] 2024-09-03 19:47:29.002 UTC [34853][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:47:29.002 UTC [34853][client backend] [[unknown]][2/1:0] LOG: connection authorized: user=postgres database=contrib_regression application_name=pg_regress/pg_visibility 2024-09-03 19:47:29.078 UTC [34853][client backend] [pg_regress/pg_visibility][2/3:742] ERROR: could not open relation with OID 16394 2024-09-03 19:47:29.078 UTC [34853][client backend] [pg_regress/pg_visibility][2/3:742] STATEMENT: SELECT * FROM pg_visibility_map(16394); 2024-09-03 19:47:29.082 UTC [34853][client backend] [pg_regress/pg_visibility][2/3:742] ERROR: could not open relation with OID 16394 2024-09-03 19:47:29.082 UTC [34853][client backend] [pg_regress/pg_visibility][2/3:742] STATEMENT: SELECT * FROM pg_visibility_map(16394); 2024-09-03 19:47:29.096 UTC [34853][client backend] [pg_regress/pg_visibility][2/5:0] ERROR: relation "test_partitioned" is of wrong relation kind 2024-09-03 19:47:29.096 UTC [34853][client backend] [pg_regress/pg_visibility][2/5:0] DETAIL: This operation is not supported for partitioned tables. 2024-09-03 19:47:29.096 UTC [34853][client backend] [pg_regress/pg_visibility][2/5:0] STATEMENT: select pg_visibility('test_partitioned', 0); 2024-09-03 19:47:29.096 UTC [34853][client backend] [pg_regress/pg_visibility][2/6:0] ERROR: relation "test_partitioned" is of wrong relation kind 2024-09-03 19:47:29.096 UTC [34853][client backend] [pg_regress/pg_visibility][2/6:0] DETAIL: This operation is not supported for partitioned tables. 2024-09-03 19:47:29.096 UTC [34853][client backend] [pg_regress/pg_visibility][2/6:0] STATEMENT: select pg_visibility_map('test_partitioned'); 2024-09-03 19:47:29.096 UTC [34853][client backend] [pg_regress/pg_visibility][2/7:0] ERROR: relation "test_partitioned" is of wrong relation kind 2024-09-03 19:47:29.096 UTC [34853][client backend] [pg_regress/pg_visibility][2/7:0] DETAIL: This operation is not supported for partitioned tables. 2024-09-03 19:47:29.096 UTC [34853][client backend] [pg_regress/pg_visibility][2/7:0] STATEMENT: select pg_visibility_map_summary('test_partitioned'); 2024-09-03 19:47:29.097 UTC [34853][client backend] [pg_regress/pg_visibility][2/8:0] ERROR: relation "test_partitioned" is of wrong relation kind 2024-09-03 19:47:29.097 UTC [34853][client backend] [pg_regress/pg_visibility][2/8:0] DETAIL: This operation is not supported for partitioned tables. 2024-09-03 19:47:29.097 UTC [34853][client backend] [pg_regress/pg_visibility][2/8:0] STATEMENT: select pg_check_frozen('test_partitioned'); 2024-09-03 19:47:29.097 UTC [34853][client backend] [pg_regress/pg_visibility][2/9:745] ERROR: relation "test_partitioned" is of wrong relation kind 2024-09-03 19:47:29.097 UTC [34853][client backend] [pg_regress/pg_visibility][2/9:745] DETAIL: This operation is not supported for partitioned tables. 2024-09-03 19:47:29.097 UTC [34853][client backend] [pg_regress/pg_visibility][2/9:745] STATEMENT: select pg_truncate_visibility_map('test_partitioned'); 2024-09-03 19:47:29.102 UTC [34853][client backend] [pg_regress/pg_visibility][2/12:0] ERROR: relation "test_index" is of wrong relation kind 2024-09-03 19:47:29.102 UTC [34853][client backend] [pg_regress/pg_visibility][2/12:0] DETAIL: This operation is not supported for indexes. 2024-09-03 19:47:29.102 UTC [34853][client backend] [pg_regress/pg_visibility][2/12:0] STATEMENT: select pg_visibility('test_index', 0); 2024-09-03 19:47:29.102 UTC [34853][client backend] [pg_regress/pg_visibility][2/13:0] ERROR: relation "test_index" is of wrong relation kind 2024-09-03 19:47:29.102 UTC [34853][client backend] [pg_regress/pg_visibility][2/13:0] DETAIL: This operation is not supported for indexes. 2024-09-03 19:47:29.102 UTC [34853][client backend] [pg_regress/pg_visibility][2/13:0] STATEMENT: select pg_visibility_map('test_index'); 2024-09-03 19:47:29.102 UTC [34853][client backend] [pg_regress/pg_visibility][2/14:0] ERROR: relation "test_index" is of wrong relation kind 2024-09-03 19:47:29.102 UTC [34853][client backend] [pg_regress/pg_visibility][2/14:0] DETAIL: This operation is not supported for indexes. 2024-09-03 19:47:29.102 UTC [34853][client backend] [pg_regress/pg_visibility][2/14:0] STATEMENT: select pg_visibility_map_summary('test_index'); 2024-09-03 19:47:29.103 UTC [34853][client backend] [pg_regress/pg_visibility][2/15:0] ERROR: relation "test_index" is of wrong relation kind 2024-09-03 19:47:29.103 UTC [34853][client backend] [pg_regress/pg_visibility][2/15:0] DETAIL: This operation is not supported for indexes. 2024-09-03 19:47:29.103 UTC [34853][client backend] [pg_regress/pg_visibility][2/15:0] STATEMENT: select pg_check_frozen('test_index'); 2024-09-03 19:47:29.103 UTC [34853][client backend] [pg_regress/pg_visibility][2/16:748] ERROR: relation "test_index" is of wrong relation kind 2024-09-03 19:47:29.103 UTC [34853][client backend] [pg_regress/pg_visibility][2/16:748] DETAIL: This operation is not supported for indexes. 2024-09-03 19:47:29.103 UTC [34853][client backend] [pg_regress/pg_visibility][2/16:748] STATEMENT: select pg_truncate_visibility_map('test_index'); 2024-09-03 19:47:29.105 UTC [34853][client backend] [pg_regress/pg_visibility][2/18:0] ERROR: relation "test_view" is of wrong relation kind 2024-09-03 19:47:29.105 UTC [34853][client backend] [pg_regress/pg_visibility][2/18:0] DETAIL: This operation is not supported for views. 2024-09-03 19:47:29.105 UTC [34853][client backend] [pg_regress/pg_visibility][2/18:0] STATEMENT: select pg_visibility('test_view', 0); 2024-09-03 19:47:29.106 UTC [34853][client backend] [pg_regress/pg_visibility][2/19:0] ERROR: relation "test_view" is of wrong relation kind 2024-09-03 19:47:29.106 UTC [34853][client backend] [pg_regress/pg_visibility][2/19:0] DETAIL: This operation is not supported for views. 2024-09-03 19:47:29.106 UTC [34853][client backend] [pg_regress/pg_visibility][2/19:0] STATEMENT: select pg_visibility_map('test_view'); 2024-09-03 19:47:29.106 UTC [34853][client backend] [pg_regress/pg_visibility][2/20:0] ERROR: relation "test_view" is of wrong relation kind 2024-09-03 19:47:29.106 UTC [34853][client backend] [pg_regress/pg_visibility][2/20:0] DETAIL: This operation is not supported for views. 2024-09-03 19:47:29.106 UTC [34853][client backend] [pg_regress/pg_visibility][2/20:0] STATEMENT: select pg_visibility_map_summary('test_view'); 2024-09-03 19:47:29.107 UTC [34853][client backend] [pg_regress/pg_visibility][2/21:0] ERROR: relation "test_view" is of wrong relation kind 2024-09-03 19:47:29.107 UTC [34853][client backend] [pg_regress/pg_visibility][2/21:0] DETAIL: This operation is not supported for views. 2024-09-03 19:47:29.107 UTC [34853][client backend] [pg_regress/pg_visibility][2/21:0] STATEMENT: select pg_check_frozen('test_view'); 2024-09-03 19:47:29.107 UTC [34853][client backend] [pg_regress/pg_visibility][2/22:750] ERROR: relation "test_view" is of wrong relation kind 2024-09-03 19:47:29.107 UTC [34853][client backend] [pg_regress/pg_visibility][2/22:750] DETAIL: This operation is not supported for views. 2024-09-03 19:47:29.107 UTC [34853][client backend] [pg_regress/pg_visibility][2/22:750] STATEMENT: select pg_truncate_visibility_map('test_view'); 2024-09-03 19:47:29.110 UTC [34853][client backend] [pg_regress/pg_visibility][2/24:0] ERROR: relation "test_sequence" is of wrong relation kind 2024-09-03 19:47:29.110 UTC [34853][client backend] [pg_regress/pg_visibility][2/24:0] DETAIL: This operation is not supported for sequences. 2024-09-03 19:47:29.110 UTC [34853][client backend] [pg_regress/pg_visibility][2/24:0] STATEMENT: select pg_visibility('test_sequence', 0); 2024-09-03 19:47:29.111 UTC [34853][client backend] [pg_regress/pg_visibility][2/25:0] ERROR: relation "test_sequence" is of wrong relation kind 2024-09-03 19:47:29.111 UTC [34853][client backend] [pg_regress/pg_visibility][2/25:0] DETAIL: This operation is not supported for sequences. 2024-09-03 19:47:29.111 UTC [34853][client backend] [pg_regress/pg_visibility][2/25:0] STATEMENT: select pg_visibility_map('test_sequence'); 2024-09-03 19:47:29.112 UTC [34853][client backend] [pg_regress/pg_visibility][2/26:0] ERROR: relation "test_sequence" is of wrong relation kind 2024-09-03 19:47:29.112 UTC [34853][client backend] [pg_regress/pg_visibility][2/26:0] DETAIL: This operation is not supported for sequences. 2024-09-03 19:47:29.112 UTC [34853][client backend] [pg_regress/pg_visibility][2/26:0] STATEMENT: select pg_visibility_map_summary('test_sequence'); 2024-09-03 19:47:29.112 UTC [34853][client backend] [pg_regress/pg_visibility][2/27:0] ERROR: relation "test_sequence" is of wrong relation kind 2024-09-03 19:47:29.112 UTC [34853][client backend] [pg_regress/pg_visibility][2/27:0] DETAIL: This operation is not supported for sequences. 2024-09-03 19:47:29.112 UTC [34853][client backend] [pg_regress/pg_visibility][2/27:0] STATEMENT: select pg_check_frozen('test_sequence'); 2024-09-03 19:47:29.112 UTC [34853][client backend] [pg_regress/pg_visibility][2/28:752] ERROR: relation "test_sequence" is of wrong relation kind 2024-09-03 19:47:29.112 UTC [34853][client backend] [pg_regress/pg_visibility][2/28:752] DETAIL: This operation is not supported for sequences. 2024-09-03 19:47:29.112 UTC [34853][client backend] [pg_regress/pg_visibility][2/28:752] STATEMENT: select pg_truncate_visibility_map('test_sequence'); 2024-09-03 19:47:29.121 UTC [34853][client backend] [pg_regress/pg_visibility][2/32:0] ERROR: relation "test_foreign_table" is of wrong relation kind 2024-09-03 19:47:29.121 UTC [34853][client backend] [pg_regress/pg_visibility][2/32:0] DETAIL: This operation is not supported for foreign tables. 2024-09-03 19:47:29.121 UTC [34853][client backend] [pg_regress/pg_visibility][2/32:0] STATEMENT: select pg_visibility('test_foreign_table', 0); 2024-09-03 19:47:29.121 UTC [34853][client backend] [pg_regress/pg_visibility][2/33:0] ERROR: relation "test_foreign_table" is of wrong relation kind 2024-09-03 19:47:29.121 UTC [34853][client backend] [pg_regress/pg_visibility][2/33:0] DETAIL: This operation is not supported for foreign tables. 2024-09-03 19:47:29.121 UTC [34853][client backend] [pg_regress/pg_visibility][2/33:0] STATEMENT: select pg_visibility_map('test_foreign_table'); 2024-09-03 19:47:29.122 UTC [34853][client backend] [pg_regress/pg_visibility][2/34:0] ERROR: relation "test_foreign_table" is of wrong relation kind 2024-09-03 19:47:29.122 UTC [34853][client backend] [pg_regress/pg_visibility][2/34:0] DETAIL: This operation is not supported for foreign tables. 2024-09-03 19:47:29.122 UTC [34853][client backend] [pg_regress/pg_visibility][2/34:0] STATEMENT: select pg_visibility_map_summary('test_foreign_table'); 2024-09-03 19:47:29.122 UTC [34853][client backend] [pg_regress/pg_visibility][2/35:0] ERROR: relation "test_foreign_table" is of wrong relation kind 2024-09-03 19:47:29.122 UTC [34853][client backend] [pg_regress/pg_visibility][2/35:0] DETAIL: This operation is not supported for foreign tables. 2024-09-03 19:47:29.122 UTC [34853][client backend] [pg_regress/pg_visibility][2/35:0] STATEMENT: select pg_check_frozen('test_foreign_table'); 2024-09-03 19:47:29.122 UTC [34853][client backend] [pg_regress/pg_visibility][2/36:756] ERROR: relation "test_foreign_table" is of wrong relation kind 2024-09-03 19:47:29.122 UTC [34853][client backend] [pg_regress/pg_visibility][2/36:756] DETAIL: This operation is not supported for foreign tables. 2024-09-03 19:47:29.122 UTC [34853][client backend] [pg_regress/pg_visibility][2/36:756] STATEMENT: select pg_truncate_visibility_map('test_foreign_table'); ================================================================= ==34853==ERROR: AddressSanitizer: stack-use-after-scope on address 0x7ffd6ecc3260 at pc 0x558d030e0ec1 bp 0x7ffd6ecc3170 sp 0x7ffd6ecc3168 READ of size 4 at 0x7ffd6ecc3260 thread T0 #0 0x558d030e0ec0 in block_range_read_stream_cb /tmp/cirrus-ci-build/src/backend/storage/aio/read_stream.c:177 #1 0x558d030df806 in read_stream_get_block /tmp/cirrus-ci-build/src/backend/storage/aio/read_stream.c:196 #2 0x558d030e0b9b in read_stream_look_ahead /tmp/cirrus-ci-build/src/backend/storage/aio/read_stream.c:333 #3 0x558d030e19d6 in read_stream_next_buffer /tmp/cirrus-ci-build/src/backend/storage/aio/read_stream.c:691 #4 0x7f106bd11dfe in collect_visibility_data /tmp/cirrus-ci-build/contrib/pg_visibility/pg_visibility.c:545 #5 0x7f106bd1392a in pg_visibility_rel /tmp/cirrus-ci-build/contrib/pg_visibility/pg_visibility.c:236 #6 0x558d02cb66cb in ExecMakeTableFunctionResult /tmp/cirrus-ci-build/src/backend/executor/execSRF.c:234 #7 0x558d02cec2ea in FunctionNext /tmp/cirrus-ci-build/src/backend/executor/nodeFunctionscan.c:94 #8 0x558d02cb8af5 in ExecScanFetch /tmp/cirrus-ci-build/src/backend/executor/execScan.c:131 #9 0x558d02cb8bfd in ExecScan /tmp/cirrus-ci-build/src/backend/executor/execScan.c:180 #10 0x558d02cebffa in ExecFunctionScan /tmp/cirrus-ci-build/src/backend/executor/nodeFunctionscan.c:269 #11 0x558d02cb0461 in ExecProcNodeFirst /tmp/cirrus-ci-build/src/backend/executor/execProcnode.c:469 #12 0x558d02ccf032 in ExecProcNode ../../../src/include/executor/executor.h:278 #13 0x558d02ccf1d2 in fetch_input_tuple /tmp/cirrus-ci-build/src/backend/executor/nodeAgg.c:561 #14 0x558d02cd9efa in agg_retrieve_direct /tmp/cirrus-ci-build/src/backend/executor/nodeAgg.c:2364 #15 0x558d02cda558 in ExecAgg /tmp/cirrus-ci-build/src/backend/executor/nodeAgg.c:2179 #16 0x558d02cb0461 in ExecProcNodeFirst /tmp/cirrus-ci-build/src/backend/executor/execProcnode.c:469 #17 0x558d02c99b75 in ExecProcNode ../../../src/include/executor/executor.h:278 #18 0x558d02c99cd6 in ExecutePlan /tmp/cirrus-ci-build/src/backend/executor/execMain.c:1641 #19 0x558d02c9b9ef in standard_ExecutorRun /tmp/cirrus-ci-build/src/backend/executor/execMain.c:358 #20 0x558d02c9bc67 in ExecutorRun /tmp/cirrus-ci-build/src/backend/executor/execMain.c:299 #21 0x558d0318a9d0 in PortalRunSelect /tmp/cirrus-ci-build/src/backend/tcop/pquery.c:924 #22 0x558d0318e859 in PortalRun /tmp/cirrus-ci-build/src/backend/tcop/pquery.c:768 #23 0x558d03185d93 in exec_simple_query /tmp/cirrus-ci-build/src/backend/tcop/postgres.c:1284 #24 0x558d031899a9 in PostgresMain /tmp/cirrus-ci-build/src/backend/tcop/postgres.c:4766 #25 0x558d0317bd74 in BackendMain /tmp/cirrus-ci-build/src/backend/tcop/backend_startup.c:107 #26 0x558d02fe5d87 in postmaster_child_launch /tmp/cirrus-ci-build/src/backend/postmaster/launch_backend.c:274 #27 0x558d02fece06 in BackendStartup /tmp/cirrus-ci-build/src/backend/postmaster/postmaster.c:3415 #28 0x558d02fed4cf in ServerLoop /tmp/cirrus-ci-build/src/backend/postmaster/postmaster.c:1648 #29 0x558d02fef48a in PostmasterMain /tmp/cirrus-ci-build/src/backend/postmaster/postmaster.c:1346 #30 0x558d02d9e9c0 in main /tmp/cirrus-ci-build/src/backend/main/main.c:197 #31 0x7f106f048249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) #32 0x7f106f048304 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x27304) #33 0x558d027a44b0 in _start (/tmp/cirrus-ci-build/tmp_install/usr/local/pgsql/bin/postgres+0x4114b0) Address 0x7ffd6ecc3260 is located in stack of thread T0 at offset 64 in frame #0 0x7f106bd11af3 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: 0x10002dd905f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10002dd90600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10002dd90610: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10002dd90620: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10002dd90630: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x10002dd90640: 00 00 00 00 f1 f1 f1 f1 f1 f1 04 f2[f8]f3 f3 f3 0x10002dd90650: 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 f1 f1 0x10002dd90660: 04 f2 00 00 00 00 f3 f3 f3 f3 00 00 00 00 00 00 0x10002dd90670: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 0x10002dd90680: 00 f2 f2 f2 00 00 00 f2 f2 f2 f2 f2 00 00 00 00 0x10002dd90690: f2 f2 f2 f2 00 00 00 00 00 00 00 f3 f3 f3 f3 f3 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 ==34853==ABORTING 2024-09-03 19:47:30.067 UTC [34800][postmaster] LOG: received fast shutdown request 2024-09-03 19:47:30.067 UTC [34800][postmaster] LOG: aborting any active transactions 2024-09-03 19:47:30.083 UTC [34800][postmaster] LOG: background worker "logical replication launcher" (PID 34822) exited with exit code 1 2024-09-03 19:47:30.703 UTC [34800][postmaster] LOG: server process (PID 34853) was terminated by signal 6: Aborted 2024-09-03 19:47:30.703 UTC [34800][postmaster] DETAIL: Failed process was running: select count(*) > 0 from pg_visibility('regular_table'); 2024-09-03 19:47:30.703 UTC [34800][postmaster] LOG: terminating any other active server processes 2024-09-03 19:47:30.706 UTC [34800][postmaster] LOG: abnormal database system shutdown 2024-09-03 19:47:30.753 UTC [34800][postmaster] LOG: database system is shut down