# Checking port 53417 # Found port 53417 Name: primary Data directory: /tmp/cirrus-ci-build/src/test/recovery/tmp_check/t_027_stream_regress_primary_data/pgdata Backup directory: /tmp/cirrus-ci-build/src/test/recovery/tmp_check/t_027_stream_regress_primary_data/backup Archive directory: /tmp/cirrus-ci-build/src/test/recovery/tmp_check/t_027_stream_regress_primary_data/archives Connection string: port=53417 host=/tmp/kQqYJM9nuU Log file: /tmp/cirrus-ci-build/src/test/recovery/tmp_check/log/027_stream_regress_primary.log [22:27:28.018](0.014s) # initializing database system by copying initdb template # Running: cp -RPp /tmp/cirrus-ci-build/tmp_install/initdb-template /tmp/cirrus-ci-build/src/test/recovery/tmp_check/t_027_stream_regress_primary_data/pgdata # Running: /tmp/cirrus-ci-build/src/test/recovery/../../../src/test/regress/pg_regress --config-auth /tmp/cirrus-ci-build/src/test/recovery/tmp_check/t_027_stream_regress_primary_data/pgdata ### Starting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/recovery/tmp_check/t_027_stream_regress_primary_data/pgdata -l /tmp/cirrus-ci-build/src/test/recovery/tmp_check/log/027_stream_regress_primary.log -o --cluster-name=primary start waiting for server to start.... done server started # Postmaster PID for node "primary" is 42606 (standby_1,) [22:27:28.231](0.213s) ok 1 - physical slot created on primary # Taking pg_basebackup my_backup from node "primary" # Running: pg_basebackup -D /tmp/cirrus-ci-build/src/test/recovery/tmp_check/t_027_stream_regress_primary_data/backup/my_backup -h /tmp/kQqYJM9nuU -p 53417 --checkpoint fast --no-sync # Backup finished # Checking port 53418 # Found port 53418 Name: standby_1 Data directory: /tmp/cirrus-ci-build/src/test/recovery/tmp_check/t_027_stream_regress_standby_1_data/pgdata Backup directory: /tmp/cirrus-ci-build/src/test/recovery/tmp_check/t_027_stream_regress_standby_1_data/backup Archive directory: /tmp/cirrus-ci-build/src/test/recovery/tmp_check/t_027_stream_regress_standby_1_data/archives Connection string: port=53418 host=/tmp/kQqYJM9nuU Log file: /tmp/cirrus-ci-build/src/test/recovery/tmp_check/log/027_stream_regress_standby_1.log # Initializing node "standby_1" from backup "my_backup" of node "primary" ### Enabling streaming replication for node "standby_1" ### Starting node "standby_1" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/test/recovery/tmp_check/t_027_stream_regress_standby_1_data/pgdata -l /tmp/cirrus-ci-build/src/test/recovery/tmp_check/log/027_stream_regress_standby_1.log -o --cluster-name=standby_1 start waiting for server to start.... done server started # Postmaster PID for node "standby_1" is 42640 # using postmaster on /tmp/kQqYJM9nuU, port 53417 ok 1 - test_setup 381 ms # parallel group (20 tests): char oid varchar text txid int2 pg_lsn name int4 money float4 regproc int8 uuid float8 enum boolean bit numeric rangetypes ok 2 + boolean 503 ms ok 3 + char 130 ms ok 4 + name 230 ms ok 5 + varchar 189 ms ok 6 + text 189 ms ok 7 + int2 209 ms ok 8 + int4 241 ms ok 9 + int8 283 ms ok 10 + oid 181 ms ok 11 + float4 245 ms ok 12 + float8 321 ms ok 13 + bit 533 ms ok 14 + numeric 923 ms ok 15 + txid 191 ms ok 16 + uuid 308 ms ok 17 + enum 389 ms ok 18 + money 235 ms ok 19 + rangetypes 1142 ms ok 20 + pg_lsn 216 ms ok 21 + regproc 267 ms # parallel group (20 tests): md5 lseg line circle path time macaddr timetz macaddr8 date numerology inet point strings timestamp interval timestamptz polygon box multirangetypes ok 22 + strings 482 ms ok 23 + md5 65 ms ok 24 + numerology 287 ms ok 25 + point 466 ms ok 26 + lseg 98 ms ok 27 + line 99 ms ok 28 + box 1291 ms ok 29 + path 156 ms ok 30 + polygon 1003 ms ok 31 + circle 135 ms ok 32 + date 270 ms ok 33 + time 165 ms ok 34 + timetz 201 ms ok 35 + timestamp 518 ms ok 36 + timestamptz 640 ms ok 37 + interval 519 ms ok 38 + inet 284 ms ok 39 + macaddr 196 ms ok 40 + macaddr8 247 ms ok 41 + multirangetypes 1296 ms # parallel group (13 tests): comments unicode misc_sanity xid tstypes expressions mvcc stats_export_import type_sanity geometry regex horology opr_sanity ok 42 + geometry 404 ms ok 43 + horology 613 ms ok 44 + tstypes 225 ms ok 45 + regex 543 ms ok 46 + type_sanity 389 ms ok 47 + opr_sanity 815 ms ok 48 + misc_sanity 133 ms ok 49 + comments 83 ms ok 50 + expressions 262 ms ok 51 + unicode 106 ms ok 52 + xid 190 ms ok 53 + mvcc 296 ms ok 54 + stats_export_import 302 ms # parallel group (5 tests): copyselect copydml copy insert_conflict insert ok 55 + copy 279 ms ok 56 + copyselect 83 ms ok 57 + copydml 107 ms ok 58 + insert 736 ms ok 59 + insert_conflict 330 ms # parallel group (7 tests): create_function_c create_operator create_misc create_schema create_type create_procedure create_table ok 60 + create_function_c 75 ms ok 61 + create_misc 128 ms ok 62 + create_operator 98 ms ok 63 + create_procedure 179 ms ok 64 + create_table 719 ms ok 65 + create_type 153 ms ok 66 + create_schema 144 ms # parallel group (5 tests): index_including_gist index_including create_view create_index_spgist create_index ok 67 + create_index 2122 ms ok 68 + create_index_spgist 1888 ms ok 69 + create_view 891 ms ok 70 + index_including 618 ms ok 71 + index_including_gist 597 ms # parallel group (16 tests): errors create_cast roleattributes create_aggregate hash_func drop_if_exists typed_table create_function_sql select infinite_recurse create_am vacuum constraints updatable_views inherit triggers ok 72 + create_aggregate 213 ms ok 73 + create_function_sql 531 ms ok 74 + create_cast 166 ms ok 75 + constraints 1551 ms ok 76 + triggers 3036 ms ok 77 + select 590 ms ok 78 + inherit 2485 ms ok 79 + typed_table 450 ms ok 80 + vacuum 1235 ms ok 81 + drop_if_exists 300 ms ok 82 + updatable_views 1820 ms ok 83 + roleattributes 201 ms ok 84 + create_am 725 ms ok 85 + hash_func 249 ms ok 86 + errors 124 ms ok 87 + infinite_recurse 615 ms ok 88 - sanity_check 189 ms # parallel group (20 tests): select_distinct_on delete select_having case namespace select_implicit select_into prepared_xacts random transactions select_distinct portals union arrays subselect hash_index update aggregates join btree_index ok 89 + select_into 415 ms ok 90 + select_distinct 962 ms ok 91 + select_distinct_on 177 ms ok 92 + select_implicit 385 ms ok 93 + select_having 267 ms ok 94 + subselect 1247 ms ok 95 + union 1039 ms ok 96 + case 282 ms ok 97 + join 3021 ms ok 98 + aggregates 2796 ms ok 99 + transactions 796 ms ok 100 + random 525 ms ok 101 + portals 961 ms ok 102 + arrays 1191 ms ok 103 + btree_index 3458 ms ok 104 + hash_index 1808 ms ok 105 + update 1959 ms ok 106 + delete 190 ms ok 107 + namespace 358 ms ok 108 + prepared_xacts 509 ms # parallel group (20 tests): init_privs security_label drop_operator password tablesample lock object_address replica_identity collate matview identity groupingsets spgist generated gist rowsecurity gin join_hash brin privileges ok 109 + brin 8905 ms ok 110 + gin 3712 ms ok 111 + gist 3251 ms ok 112 + spgist 3049 ms ok 113 + privileges 9364 ms ok 114 + init_privs 71 ms ok 115 + security_label 174 ms ok 116 + collate 1973 ms ok 117 + matview 2178 ms ok 118 + lock 522 ms ok 119 + replica_identity 1287 ms ok 120 + rowsecurity 3323 ms ok 121 + object_address 557 ms ok 122 + tablesample 496 ms ok 123 + groupingsets 3009 ms ok 124 + drop_operator 284 ms ok 125 + password 377 ms ok 126 + identity 2359 ms ok 127 + generated 3197 ms ok 128 + join_hash 8889 ms # parallel group (2 tests): brin_bloom brin_multi ok 129 + brin_bloom 154 ms ok 130 + brin_multi 938 ms # parallel group (18 tests): async dbsize collate.utf8 tidscan tid tsrf alter_operator create_role sysviews misc_functions alter_generic tidrangescan incremental_sort merge create_table_like misc without_overlaps collate.icu.utf8 ok 131 + create_table_like 1301 ms ok 132 + alter_generic 583 ms ok 133 + alter_operator 284 ms ok 134 + misc 1372 ms ok 135 + async 67 ms ok 136 + dbsize 94 ms ok 137 + merge 1277 ms ok 138 + misc_functions 462 ms ok 139 + sysviews 421 ms ok 140 + tsrf 270 ms ok 141 + tid 267 ms ok 142 + tidscan 246 ms ok 143 + tidrangescan 608 ms ok 144 + collate.utf8 148 ms ok 145 + collate.icu.utf8 1567 ms ok 146 + incremental_sort 1117 ms ok 147 + create_role 407 ms ok 148 + without_overlaps 1455 ms # parallel group (7 tests): collate.windows.win1252 amutils psql_crosstab collate.linux.utf8 rules psql stats_ext ok 149 + rules 1010 ms ok 150 + psql 1116 ms ok 151 + psql_crosstab 66 ms ok 152 + amutils 45 ms ok 153 + stats_ext 2250 ms ok 154 + collate.linux.utf8 710 ms ok 155 + collate.windows.win1252 21 ms ok 156 - select_parallel 3672 ms ok 157 - write_parallel 170 ms ok 158 - vacuum_parallel 177 ms # parallel group (2 tests): subscription publication ok 159 + publication 2731 ms ok 160 + subscription 90 ms # parallel group (17 tests): advisory_lock portals_p2 combocid xmlmap tsdicts guc functional_deps equivclass dependency select_views indirect_toast bitmapops window cluster foreign_data foreign_key tsearch ok 161 + select_views 791 ms ok 162 + portals_p2 218 ms ok 163 + foreign_key 2489 ms ok 164 + cluster 1288 ms ok 165 + dependency 488 ms ok 166 + guc 438 ms ok 167 + bitmapops 1158 ms ok 168 + combocid 306 ms ok 169 + tsearch 2595 ms ok 170 + tsdicts 396 ms ok 171 + foreign_data 1785 ms ok 172 + window 1185 ms ok 173 + xmlmap 312 ms ok 174 + functional_deps 437 ms ok 175 + advisory_lock 195 ms ok 176 + indirect_toast 1132 ms ok 177 + equivclass 454 ms # parallel group (9 tests): jsonpath_encoding json_encoding jsonpath sqljson sqljson_jsontable sqljson_queryfuncs json jsonb_jsonpath jsonb ok 178 + json 333 ms ok 179 + jsonb 632 ms ok 180 + json_encoding 59 ms ok 181 + jsonpath 106 ms ok 182 + jsonpath_encoding 48 ms ok 183 + jsonb_jsonpath 330 ms ok 184 + sqljson 161 ms ok 185 + sqljson_queryfuncs 263 ms ok 186 + sqljson_jsontable 245 ms # parallel group (18 tests): prepare returning plancache limit conversion temp sequence copy2 polymorphism largeobject rowtypes truncate with domain rangefuncs plpgsql alter_table xml ok 187 + plancache 560 ms ok 188 + limit 578 ms ok 189 + plpgsql 2432 ms ok 190 + copy2 979 ms ok 191 + temp 939 ms ok 192 + domain 1499 ms ok 193 + rangefuncs 1633 ms ok 194 + prepare 204 ms ok 195 + conversion 700 ms ok 196 + truncate 1361 ms ok 197 + alter_table 3352 ms ok 198 + sequence 974 ms ok 199 + polymorphism 1086 ms ok 200 + rowtypes 1182 ms ok 201 + returning 356 ms ok 202 + largeobject 1176 ms ok 203 + with 1384 ms ok 204 + xml 3380 ms # parallel group (15 tests): reloptions hash_part predicate explain partition_info compression partition_merge memoize partition_split stats partition_aggregate partition_join indexing tuplesort partition_prune ok 205 + partition_merge 1423 ms ok 206 + partition_split 1983 ms ok 207 + partition_join 2893 ms ok 208 + partition_prune 3567 ms ok 209 + reloptions 250 ms ok 210 + hash_part 251 ms ok 211 + indexing 2979 ms ok 212 + partition_aggregate 2575 ms ok 213 + partition_info 384 ms ok 214 + tuplesort 3078 ms ok 215 + explain 329 ms ok 216 + compression 1133 ms ok 217 + memoize 1471 ms ok 218 + stats 2157 ms ok 219 + predicate 281 ms # parallel group (2 tests): oidjoins event_trigger ok 220 + oidjoins 428 ms ok 221 + event_trigger 492 ms ok 222 - event_trigger_login 53 ms ok 223 - fast_default 284 ms ok 224 - tablespace 600 ms 1..224 # All 224 tests passed. [22:28:15.361](47.130s) ok 2 - regression tests pass 1 1 1 1 2 1 1 9 5 1 5 3 4 3 4 4 1 32 1 1 1 6 104 2 1 4001 5 1006 1 2 41 5 17 -2 33 34 9 1 1 1 1 1 -1 1 1 -1 -32768 32767 46 1 1 Waiting for replication conn standby_1's replay_lsn to pass 0/14C92EA8 on primary done # Running: pg_dumpall -f /tmp/cirrus-ci-build/src/test/recovery/tmp_check/primary.dump --no-sync -p 53417 --no-unlogged-table-data ================================================================= ==46742==ERROR: AddressSanitizer: global-buffer-overflow on address 0x560f18fa667c at pc 0x560f18f35c5b bp 0x7fff0467f420 sp 0x7fff0467f418 READ of size 4 at 0x560f18fa667c thread T0 #0 0x560f18f35c5a in DOTypeNameCompare /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump_sort.c:204 #1 0x560f18f74c25 in pg_qsort ../../src/include/lib/sort_template.h:354 #2 0x560f18f3a371 in sortDumpableObjectsByTypeName /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump_sort.c:192 #3 0x560f18f2a555 in main /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump.c:993 #4 0x7fae44852d09 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23d09) #5 0x560f18edfec9 in _start (/tmp/cirrus-ci-build/tmp_install/usr/local/pgsql/bin/pg_dump+0x3aec9) 0x560f18fa667c is located 0 bytes to the right of global variable 'dbObjectTypePriority' defined in 'pg_dump_sort.c:105:18' (0x560f18fa65c0) of size 188 SUMMARY: AddressSanitizer: global-buffer-overflow /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump_sort.c:204 in DOTypeNameCompare Shadow bytes around the buggy address: 0x0ac2631ecc70: 00 00 00 00 00 00 00 00 00 00 04 f9 f9 f9 f9 f9 0x0ac2631ecc80: 00 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 0x0ac2631ecc90: 00 00 00 00 00 00 05 f9 f9 f9 f9 f9 00 00 00 00 0x0ac2631ecca0: 03 f9 f9 f9 f9 f9 f9 f9 00 00 02 f9 f9 f9 f9 f9 0x0ac2631eccb0: 00 00 06 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 =>0x0ac2631eccc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00[04] 0x0ac2631eccd0: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00 0x0ac2631ecce0: 00 00 00 00 00 00 00 04 f9 f9 f9 f9 00 00 00 00 0x0ac2631eccf0: 07 f9 f9 f9 f9 f9 f9 f9 07 f9 f9 f9 f9 f9 f9 f9 0x0ac2631ecd00: 00 00 00 00 00 05 f9 f9 f9 f9 f9 f9 00 00 00 06 0x0ac2631ecd10: f9 f9 f9 f9 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 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 Shadow gap: cc ==46742==ABORTING Aborted (core dumped) pg_dumpall: error: pg_dump failed on database "regression", exiting [22:28:16.298](0.936s) not ok 3 - dump primary server [22:28:16.298](0.000s) [22:28:16.298](0.000s) # Failed test 'dump primary server' # at t/027_stream_regress.pl line 106. # Running: pg_dumpall -f /tmp/cirrus-ci-build/src/test/recovery/tmp_check/standby.dump --no-sync -p 53418 ================================================================= ==46755==ERROR: AddressSanitizer: global-buffer-overflow on address 0x55944f0a967c at pc 0x55944f038c5b bp 0x7ffd0dfe4e30 sp 0x7ffd0dfe4e28 READ of size 4 at 0x55944f0a967c thread T0 #0 0x55944f038c5a in DOTypeNameCompare /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump_sort.c:204 #1 0x55944f077c25 in pg_qsort ../../src/include/lib/sort_template.h:354 #2 0x55944f03d371 in sortDumpableObjectsByTypeName /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump_sort.c:192 #3 0x55944f02d555 in main /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump.c:993 #4 0x7fc153331d09 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23d09) #5 0x55944efe2ec9 in _start (/tmp/cirrus-ci-build/tmp_install/usr/local/pgsql/bin/pg_dump+0x3aec9) 0x55944f0a967c is located 0 bytes to the right of global variable 'dbObjectTypePriority' defined in 'pg_dump_sort.c:105:18' (0x55944f0a95c0) of size 188 SUMMARY: AddressSanitizer: global-buffer-overflow /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump_sort.c:204 in DOTypeNameCompare Shadow bytes around the buggy address: 0x0ab309e0d270: 00 00 00 00 00 00 00 00 00 00 04 f9 f9 f9 f9 f9 0x0ab309e0d280: 00 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 0x0ab309e0d290: 00 00 00 00 00 00 05 f9 f9 f9 f9 f9 00 00 00 00 0x0ab309e0d2a0: 03 f9 f9 f9 f9 f9 f9 f9 00 00 02 f9 f9 f9 f9 f9 0x0ab309e0d2b0: 00 00 06 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 =>0x0ab309e0d2c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00[04] 0x0ab309e0d2d0: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00 0x0ab309e0d2e0: 00 00 00 00 00 00 00 04 f9 f9 f9 f9 00 00 00 00 0x0ab309e0d2f0: 07 f9 f9 f9 f9 f9 f9 f9 07 f9 f9 f9 f9 f9 f9 f9 0x0ab309e0d300: 00 00 00 00 00 05 f9 f9 f9 f9 f9 f9 00 00 00 06 0x0ab309e0d310: f9 f9 f9 f9 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 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 Shadow gap: cc ==46755==ABORTING Aborted (core dumped) pg_dumpall: error: pg_dump failed on database "regression", exiting [22:28:17.097](0.799s) not ok 4 - dump standby server [22:28:17.098](0.000s) [22:28:17.098](0.000s) # Failed test 'dump standby server' # at t/027_stream_regress.pl line 113. # Running: diff /tmp/cirrus-ci-build/src/test/recovery/tmp_check/primary.dump /tmp/cirrus-ci-build/src/test/recovery/tmp_check/standby.dump [22:28:17.100](0.002s) ok 5 - compare primary and standby dumps [22:28:17.300](0.200s) ok 6 - check contents of pg_stat_statements on regression database ### Stopping node "standby_1" using mode fast # Running: pg_ctl -D /tmp/cirrus-ci-build/src/test/recovery/tmp_check/t_027_stream_regress_standby_1_data/pgdata -m fast stop waiting for server to shut down.... done server stopped # No postmaster PID for node "standby_1" ### Stopping node "primary" using mode fast # Running: pg_ctl -D /tmp/cirrus-ci-build/src/test/recovery/tmp_check/t_027_stream_regress_primary_data/pgdata -m fast stop waiting for server to shut down.... done server stopped # No postmaster PID for node "primary" [22:28:17.509](0.210s) 1..6 [22:28:17.511](0.001s) # Looks like you failed 2 tests of 6.