# Checking port 54660 # Found port 54660 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=54660 host=/tmp/IEh3f1Sjzh Log file: /tmp/cirrus-ci-build/src/test/recovery/tmp_check/log/027_stream_regress_primary.log [17:40:13.120](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 44322 (standby_1,) [17:40:13.330](0.210s) 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/IEh3f1Sjzh -p 54660 --checkpoint fast --no-sync # Backup finished # Checking port 54661 # Found port 54661 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=54661 host=/tmp/IEh3f1Sjzh 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 44356 # using postmaster on /tmp/IEh3f1Sjzh, port 54660 ok 1 - test_setup 357 ms # parallel group (20 tests): varchar char oid regproc text name int2 txid pg_lsn money int4 float4 uuid int8 float8 enum boolean bit numeric rangetypes ok 2 + boolean 541 ms ok 3 + char 144 ms ok 4 + name 176 ms ok 5 + varchar 141 ms ok 6 + text 171 ms ok 7 + int2 183 ms ok 8 + int4 239 ms ok 9 + int8 291 ms ok 10 + oid 147 ms ok 11 + float4 257 ms ok 12 + float8 339 ms ok 13 + bit 540 ms ok 14 + numeric 978 ms ok 15 + txid 188 ms ok 16 + uuid 279 ms ok 17 + enum 369 ms ok 18 + money 222 ms ok 19 + rangetypes 1105 ms ok 20 + pg_lsn 215 ms ok 21 + regproc 162 ms # parallel group (20 tests): md5 lseg path line time circle timetz macaddr numerology macaddr8 date inet interval timestamp strings point timestamptz polygon multirangetypes box ok 22 + strings 557 ms ok 23 + md5 57 ms ok 24 + numerology 219 ms ok 25 + point 632 ms ok 26 + lseg 110 ms ok 27 + line 132 ms ok 28 + box 1261 ms ok 29 + path 119 ms ok 30 + polygon 962 ms ok 31 + circle 131 ms ok 32 + date 250 ms ok 33 + time 130 ms ok 34 + timetz 170 ms ok 35 + timestamp 533 ms ok 36 + timestamptz 634 ms ok 37 + interval 476 ms ok 38 + inet 268 ms ok 39 + macaddr 195 ms ok 40 + macaddr8 228 ms ok 41 + multirangetypes 1161 ms # parallel group (13 tests): comments unicode misc_sanity xid tstypes mvcc expressions stats_export_import geometry type_sanity regex horology opr_sanity ok 42 + geometry 323 ms ok 43 + horology 564 ms ok 44 + tstypes 212 ms ok 45 + regex 495 ms ok 46 + type_sanity 326 ms ok 47 + opr_sanity 772 ms ok 48 + misc_sanity 94 ms ok 49 + comments 51 ms ok 50 + expressions 249 ms ok 51 + unicode 71 ms ok 52 + xid 157 ms ok 53 + mvcc 238 ms ok 54 + stats_export_import 258 ms # parallel group (5 tests): copydml copyselect copy insert_conflict insert ok 55 + copy 201 ms ok 56 + copyselect 75 ms ok 57 + copydml 72 ms ok 58 + insert 614 ms ok 59 + insert_conflict 302 ms # parallel group (7 tests): create_function_c create_operator create_procedure create_type create_schema create_misc create_table ok 60 + create_function_c 45 ms ok 61 + create_misc 162 ms ok 62 + create_operator 77 ms ok 63 + create_procedure 118 ms ok 64 + create_table 717 ms ok 65 + create_type 144 ms ok 66 + create_schema 153 ms # parallel group (5 tests): index_including index_including_gist create_view create_index_spgist create_index ok 67 + create_index 1917 ms ok 68 + create_index_spgist 1683 ms ok 69 + create_view 922 ms ok 70 + index_including 537 ms ok 71 + index_including_gist 587 ms # parallel group (16 tests): errors roleattributes create_cast hash_func create_aggregate drop_if_exists typed_table select create_function_sql infinite_recurse create_am vacuum constraints updatable_views inherit triggers ok 72 + create_aggregate 238 ms ok 73 + create_function_sql 580 ms ok 74 + create_cast 208 ms ok 75 + constraints 1518 ms ok 76 + triggers 2836 ms ok 77 + select 556 ms ok 78 + inherit 2290 ms ok 79 + typed_table 508 ms ok 80 + vacuum 1167 ms ok 81 + drop_if_exists 382 ms ok 82 + updatable_views 1976 ms ok 83 + roleattributes 190 ms ok 84 + create_am 671 ms ok 85 + hash_func 224 ms ok 86 + errors 112 ms ok 87 + infinite_recurse 645 ms ok 88 - sanity_check 189 ms # parallel group (20 tests): select_distinct_on select_having delete select_implicit case namespace select_into prepared_xacts random transactions portals select_distinct union arrays subselect hash_index update aggregates join btree_index ok 89 + select_into 503 ms ok 90 + select_distinct 918 ms ok 91 + select_distinct_on 163 ms ok 92 + select_implicit 257 ms ok 93 + select_having 227 ms ok 94 + subselect 1319 ms ok 95 + union 947 ms ok 96 + case 336 ms ok 97 + join 2961 ms ok 98 + aggregates 2835 ms ok 99 + transactions 674 ms ok 100 + random 560 ms ok 101 + portals 704 ms ok 102 + arrays 1052 ms ok 103 + btree_index 3376 ms ok 104 + hash_index 1743 ms ok 105 + update 1890 ms ok 106 + delete 246 ms ok 107 + namespace 422 ms ok 108 + prepared_xacts 513 ms # parallel group (20 tests): init_privs security_label drop_operator password lock tablesample object_address replica_identity collate matview identity generated spgist rowsecurity gist groupingsets gin join_hash brin privileges ok 109 + brin 8667 ms ok 110 + gin 3423 ms ok 111 + gist 3158 ms ok 112 + spgist 3032 ms ok 113 + privileges 9113 ms ok 114 + init_privs 125 ms ok 115 + security_label 174 ms ok 116 + collate 1913 ms ok 117 + matview 2072 ms ok 118 + lock 388 ms ok 119 + replica_identity 1088 ms ok 120 + rowsecurity 3056 ms ok 121 + object_address 612 ms ok 122 + tablesample 576 ms ok 123 + groupingsets 3181 ms ok 124 + drop_operator 172 ms ok 125 + password 323 ms ok 126 + identity 2089 ms ok 127 + generated 2956 ms ok 128 + join_hash 8655 ms # parallel group (2 tests): brin_bloom brin_multi ok 129 + brin_bloom 153 ms ok 130 + brin_multi 932 ms # parallel group (18 tests): async dbsize collate.utf8 tsrf tid tidscan alter_operator create_role sysviews misc_functions alter_generic tidrangescan incremental_sort merge create_table_like without_overlaps misc collate.icu.utf8 ok 131 + create_table_like 1235 ms ok 132 + alter_generic 504 ms ok 133 + alter_operator 271 ms ok 134 + misc 1497 ms ok 135 + async 69 ms ok 136 + dbsize 111 ms ok 137 + merge 1208 ms ok 138 + misc_functions 451 ms ok 139 + sysviews 402 ms ok 140 + tsrf 212 ms ok 141 + tid 212 ms ok 142 + tidscan 261 ms ok 143 + tidrangescan 744 ms ok 144 + collate.utf8 123 ms ok 145 + collate.icu.utf8 1610 ms ok 146 + incremental_sort 997 ms ok 147 + create_role 353 ms ok 148 + without_overlaps 1431 ms # parallel group (7 tests): collate.windows.win1252 amutils psql_crosstab collate.linux.utf8 rules psql stats_ext ok 149 + rules 946 ms ok 150 + psql 1093 ms ok 151 + psql_crosstab 108 ms ok 152 + amutils 64 ms ok 153 + stats_ext 2371 ms ok 154 + collate.linux.utf8 628 ms ok 155 + collate.windows.win1252 45 ms ok 156 - select_parallel 3575 ms ok 157 - write_parallel 178 ms ok 158 - vacuum_parallel 186 ms # parallel group (2 tests): subscription publication ok 159 + publication 2712 ms ok 160 + subscription 85 ms # parallel group (17 tests): advisory_lock portals_p2 xmlmap combocid functional_deps equivclass tsdicts guc dependency select_views bitmapops indirect_toast window cluster foreign_data foreign_key tsearch ok 161 + select_views 635 ms ok 162 + portals_p2 188 ms ok 163 + foreign_key 2399 ms ok 164 + cluster 1130 ms ok 165 + dependency 493 ms ok 166 + guc 441 ms ok 167 + bitmapops 1000 ms ok 168 + combocid 259 ms ok 169 + tsearch 2444 ms ok 170 + tsdicts 369 ms ok 171 + foreign_data 1614 ms ok 172 + window 1124 ms ok 173 + xmlmap 243 ms ok 174 + functional_deps 363 ms ok 175 + advisory_lock 158 ms ok 176 + indirect_toast 999 ms ok 177 + equivclass 363 ms # parallel group (9 tests): jsonpath_encoding json_encoding jsonpath sqljson sqljson_jsontable sqljson_queryfuncs json jsonb_jsonpath jsonb ok 178 + json 269 ms ok 179 + jsonb 596 ms ok 180 + json_encoding 56 ms ok 181 + jsonpath 104 ms ok 182 + jsonpath_encoding 35 ms ok 183 + jsonb_jsonpath 278 ms ok 184 + sqljson 175 ms ok 185 + sqljson_queryfuncs 230 ms ok 186 + sqljson_jsontable 208 ms # parallel group (18 tests): prepare returning plancache limit conversion temp sequence copy2 largeobject polymorphism rowtypes truncate with domain rangefuncs plpgsql xml alter_table ok 187 + plancache 500 ms ok 188 + limit 583 ms ok 189 + plpgsql 2349 ms ok 190 + copy2 886 ms ok 191 + temp 736 ms ok 192 + domain 1373 ms ok 193 + rangefuncs 1418 ms ok 194 + prepare 199 ms ok 195 + conversion 681 ms ok 196 + truncate 1098 ms ok 197 + alter_table 3174 ms ok 198 + sequence 859 ms ok 199 + polymorphism 996 ms ok 200 + rowtypes 1015 ms ok 201 + returning 372 ms ok 202 + largeobject 985 ms ok 203 + with 1330 ms ok 204 + xml 3022 ms # parallel group (15 tests): hash_part reloptions explain partition_info predicate compression memoize partition_merge partition_split stats partition_aggregate partition_join tuplesort indexing partition_prune ok 205 + partition_merge 1550 ms ok 206 + partition_split 1801 ms ok 207 + partition_join 2431 ms ok 208 + partition_prune 3258 ms ok 209 + reloptions 276 ms ok 210 + hash_part 159 ms ok 211 + indexing 2640 ms ok 212 + partition_aggregate 2341 ms ok 213 + partition_info 385 ms ok 214 + tuplesort 2621 ms ok 215 + explain 333 ms ok 216 + compression 714 ms ok 217 + memoize 1273 ms ok 218 + stats 1938 ms ok 219 + predicate 393 ms # parallel group (2 tests): oidjoins event_trigger ok 220 + oidjoins 431 ms ok 221 + event_trigger 493 ms ok 222 - event_trigger_login 53 ms ok 223 - fast_default 299 ms ok 224 - tablespace 596 ms 1..224 # All 224 tests passed. [17:40:58.772](45.442s) ok 2 - regression tests pass 1 1 1 2 1 1 1 5 9 5 1 3 4 3 4 4 1 32 1 1 1 6 104 2 1 5 1006 4001 1 2 41 5 17 -2 1 1 33 34 9 1 1 1 1 1 -1 1 1 -1 -32768 32767 46 Waiting for replication conn standby_1's replay_lsn to pass 0/14CFB318 on primary done # Running: pg_dumpall -f /tmp/cirrus-ci-build/src/test/recovery/tmp_check/primary.dump --no-sync -p 54660 --no-unlogged-table-data ================================================================= ==47789==ERROR: AddressSanitizer: global-buffer-overflow on address 0x55ed0ddf567c at pc 0x55ed0dd84ce0 bp 0x7ffc2f5cf9e0 sp 0x7ffc2f5cf9d8 READ of size 4 at 0x55ed0ddf567c thread T0 #0 0x55ed0dd84cdf in DOTypeNameCompare /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump_sort.c:205 #1 0x55ed0ddc388e in pg_qsort_med3 ../../src/include/lib/sort_template.h:267 #2 0x55ed0ddc3a45 in pg_qsort ../../src/include/lib/sort_template.h:343 #3 0x55ed0dd893e9 in sortDumpableObjectsByTypeName /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump_sort.c:192 #4 0x55ed0dd79555 in main /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump.c:993 #5 0x7ff2ab23dd09 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23d09) #6 0x55ed0dd2eec9 in _start (/tmp/cirrus-ci-build/tmp_install/usr/local/pgsql/bin/pg_dump+0x3aec9) 0x55ed0ddf567c is located 0 bytes to the right of global variable 'dbObjectTypePriority' defined in 'pg_dump_sort.c:105:18' (0x55ed0ddf55c0) of size 188 SUMMARY: AddressSanitizer: global-buffer-overflow /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump_sort.c:205 in DOTypeNameCompare Shadow bytes around the buggy address: 0x0abe21bb6a70: 00 00 00 00 00 00 00 00 00 00 04 f9 f9 f9 f9 f9 0x0abe21bb6a80: 00 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 0x0abe21bb6a90: 00 00 00 00 00 00 05 f9 f9 f9 f9 f9 00 00 00 00 0x0abe21bb6aa0: 03 f9 f9 f9 f9 f9 f9 f9 00 00 02 f9 f9 f9 f9 f9 0x0abe21bb6ab0: 00 00 06 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 =>0x0abe21bb6ac0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00[04] 0x0abe21bb6ad0: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00 0x0abe21bb6ae0: 00 00 00 00 00 00 00 04 f9 f9 f9 f9 00 00 00 00 0x0abe21bb6af0: 07 f9 f9 f9 f9 f9 f9 f9 07 f9 f9 f9 f9 f9 f9 f9 0x0abe21bb6b00: 00 00 00 00 00 05 f9 f9 f9 f9 f9 f9 00 00 00 06 0x0abe21bb6b10: 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 ==47789==ABORTING Aborted (core dumped) pg_dumpall: error: pg_dump failed on database "regression", exiting [17:40:59.723](0.951s) not ok 3 - dump primary server [17:40:59.723](0.000s) [17:40:59.724](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 54661 ================================================================= ==47802==ERROR: AddressSanitizer: global-buffer-overflow on address 0x5573f24e267c at pc 0x5573f2471ce0 bp 0x7fff935fabc0 sp 0x7fff935fabb8 READ of size 4 at 0x5573f24e267c thread T0 #0 0x5573f2471cdf in DOTypeNameCompare /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump_sort.c:205 #1 0x5573f24b088e in pg_qsort_med3 ../../src/include/lib/sort_template.h:267 #2 0x5573f24b0a45 in pg_qsort ../../src/include/lib/sort_template.h:343 #3 0x5573f24763e9 in sortDumpableObjectsByTypeName /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump_sort.c:192 #4 0x5573f2466555 in main /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump.c:993 #5 0x7fc5d55c4d09 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23d09) #6 0x5573f241bec9 in _start (/tmp/cirrus-ci-build/tmp_install/usr/local/pgsql/bin/pg_dump+0x3aec9) 0x5573f24e267c is located 0 bytes to the right of global variable 'dbObjectTypePriority' defined in 'pg_dump_sort.c:105:18' (0x5573f24e25c0) of size 188 SUMMARY: AddressSanitizer: global-buffer-overflow /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump_sort.c:205 in DOTypeNameCompare Shadow bytes around the buggy address: 0x0aaefe494470: 00 00 00 00 00 00 00 00 00 00 04 f9 f9 f9 f9 f9 0x0aaefe494480: 00 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 0x0aaefe494490: 00 00 00 00 00 00 05 f9 f9 f9 f9 f9 00 00 00 00 0x0aaefe4944a0: 03 f9 f9 f9 f9 f9 f9 f9 00 00 02 f9 f9 f9 f9 f9 0x0aaefe4944b0: 00 00 06 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 =>0x0aaefe4944c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00[04] 0x0aaefe4944d0: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00 0x0aaefe4944e0: 00 00 00 00 00 00 00 04 f9 f9 f9 f9 00 00 00 00 0x0aaefe4944f0: 07 f9 f9 f9 f9 f9 f9 f9 07 f9 f9 f9 f9 f9 f9 f9 0x0aaefe494500: 00 00 00 00 00 05 f9 f9 f9 f9 f9 f9 00 00 00 06 0x0aaefe494510: 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 ==47802==ABORTING Aborted (core dumped) pg_dumpall: error: pg_dump failed on database "regression", exiting [17:41:00.546](0.822s) not ok 4 - dump standby server [17:41:00.546](0.000s) [17:41:00.546](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 [17:41:00.549](0.002s) ok 5 - compare primary and standby dumps [17:41:00.751](0.202s) 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" [17:41:00.960](0.209s) 1..6 [17:41:00.961](0.001s) # Looks like you failed 2 tests of 6.