# Checking port 54218 # Found port 54218 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=54218 host=/tmp/R8gM2je6s9 Log file: /tmp/cirrus-ci-build/src/test/recovery/tmp_check/log/027_stream_regress_primary.log [10:42:37.790](0.015s) # 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 45936 (standby_1,) [10:42:38.006](0.216s) 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/R8gM2je6s9 -p 54218 --checkpoint fast --no-sync # Backup finished # Checking port 54219 # Found port 54219 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=54219 host=/tmp/R8gM2je6s9 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 45970 # using postmaster on /tmp/R8gM2je6s9, port 54218 ok 1 - test_setup 372 ms # parallel group (20 tests): int2 text varchar regproc name oid txid pg_lsn int4 money char uuid float4 enum int8 float8 boolean bit numeric rangetypes ok 2 + boolean 461 ms ok 3 + char 250 ms ok 4 + name 206 ms ok 5 + varchar 180 ms ok 6 + text 160 ms ok 7 + int2 144 ms ok 8 + int4 213 ms ok 9 + int8 300 ms ok 10 + oid 203 ms ok 11 + float4 281 ms ok 12 + float8 310 ms ok 13 + bit 556 ms ok 14 + numeric 860 ms ok 15 + txid 203 ms ok 16 + uuid 275 ms ok 17 + enum 282 ms ok 18 + money 227 ms ok 19 + rangetypes 1090 ms ok 20 + pg_lsn 201 ms ok 21 + regproc 188 ms # parallel group (20 tests): md5 lseg macaddr path line time circle timetz macaddr8 numerology date inet point interval timestamp strings timestamptz polygon multirangetypes box ok 22 + strings 601 ms ok 23 + md5 66 ms ok 24 + numerology 274 ms ok 25 + point 463 ms ok 26 + lseg 134 ms ok 27 + line 145 ms ok 28 + box 1330 ms ok 29 + path 141 ms ok 30 + polygon 1023 ms ok 31 + circle 161 ms ok 32 + date 275 ms ok 33 + time 146 ms ok 34 + timetz 207 ms ok 35 + timestamp 539 ms ok 36 + timestamptz 607 ms ok 37 + interval 487 ms ok 38 + inet 287 ms ok 39 + macaddr 135 ms ok 40 + macaddr8 256 ms ok 41 + multirangetypes 1305 ms # parallel group (13 tests): comments unicode misc_sanity mvcc tstypes xid expressions stats_export_import geometry type_sanity regex horology opr_sanity ok 42 + geometry 387 ms ok 43 + horology 638 ms ok 44 + tstypes 241 ms ok 45 + regex 598 ms ok 46 + type_sanity 406 ms ok 47 + opr_sanity 825 ms ok 48 + misc_sanity 112 ms ok 49 + comments 55 ms ok 50 + expressions 273 ms ok 51 + unicode 105 ms ok 52 + xid 250 ms ok 53 + mvcc 233 ms ok 54 + stats_export_import 296 ms # parallel group (5 tests): copyselect copydml copy insert_conflict insert ok 55 + copy 247 ms ok 56 + copyselect 64 ms ok 57 + copydml 122 ms ok 58 + insert 726 ms ok 59 + insert_conflict 281 ms # parallel group (7 tests): create_function_c create_operator create_schema create_misc create_procedure create_type create_table ok 60 + create_function_c 35 ms ok 61 + create_misc 130 ms ok 62 + create_operator 84 ms ok 63 + create_procedure 143 ms ok 64 + create_table 772 ms ok 65 + create_type 152 ms ok 66 + create_schema 121 ms # parallel group (5 tests): index_including index_including_gist create_view create_index_spgist create_index ok 67 + create_index 1912 ms ok 68 + create_index_spgist 1699 ms ok 69 + create_view 935 ms ok 70 + index_including 560 ms ok 71 + index_including_gist 602 ms # parallel group (16 tests): create_cast errors create_aggregate hash_func roleattributes drop_if_exists typed_table create_function_sql infinite_recurse create_am select vacuum constraints updatable_views inherit triggers ok 72 + create_aggregate 206 ms ok 73 + create_function_sql 517 ms ok 74 + create_cast 179 ms ok 75 + constraints 1476 ms ok 76 + triggers 2934 ms ok 77 + select 689 ms ok 78 + inherit 2364 ms ok 79 + typed_table 500 ms ok 80 + vacuum 1057 ms ok 81 + drop_if_exists 348 ms ok 82 + updatable_views 1885 ms ok 83 + roleattributes 265 ms ok 84 + create_am 667 ms ok 85 + hash_func 264 ms ok 86 + errors 174 ms ok 87 + infinite_recurse 589 ms ok 88 - sanity_check 190 ms # parallel group (20 tests): select_distinct_on select_having delete select_implicit case select_into namespace prepared_xacts random portals transactions select_distinct union arrays subselect hash_index update aggregates join btree_index ok 89 + select_into 432 ms ok 90 + select_distinct 1024 ms ok 91 + select_distinct_on 189 ms ok 92 + select_implicit 284 ms ok 93 + select_having 230 ms ok 94 + subselect 1326 ms ok 95 + union 1111 ms ok 96 + case 307 ms ok 97 + join 3056 ms ok 98 + aggregates 3018 ms ok 99 + transactions 882 ms ok 100 + random 468 ms ok 101 + portals 864 ms ok 102 + arrays 1210 ms ok 103 + btree_index 3457 ms ok 104 + hash_index 1857 ms ok 105 + update 2002 ms ok 106 + delete 266 ms ok 107 + namespace 430 ms ok 108 + prepared_xacts 453 ms # parallel group (20 tests): init_privs drop_operator security_label password lock tablesample object_address replica_identity collate matview identity spgist rowsecurity generated groupingsets gist gin brin join_hash privileges ok 109 + brin 8967 ms ok 110 + gin 3506 ms ok 111 + gist 3361 ms ok 112 + spgist 2958 ms ok 113 + privileges 9526 ms ok 114 + init_privs 106 ms ok 115 + security_label 246 ms ok 116 + collate 1979 ms ok 117 + matview 2215 ms ok 118 + lock 577 ms ok 119 + replica_identity 1358 ms ok 120 + rowsecurity 3067 ms ok 121 + object_address 813 ms ok 122 + tablesample 575 ms ok 123 + groupingsets 3218 ms ok 124 + drop_operator 192 ms ok 125 + password 414 ms ok 126 + identity 2298 ms ok 127 + generated 3094 ms ok 128 + join_hash 8974 ms # parallel group (2 tests): brin_bloom brin_multi ok 129 + brin_bloom 166 ms ok 130 + brin_multi 966 ms # parallel group (18 tests): async dbsize collate.utf8 tid tsrf alter_operator tidscan create_role sysviews alter_generic misc_functions tidrangescan incremental_sort create_table_like merge without_overlaps misc collate.icu.utf8 ok 131 + create_table_like 1360 ms ok 132 + alter_generic 499 ms ok 133 + alter_operator 245 ms ok 134 + misc 1654 ms ok 135 + async 70 ms ok 136 + dbsize 102 ms ok 137 + merge 1394 ms ok 138 + misc_functions 498 ms ok 139 + sysviews 425 ms ok 140 + tsrf 241 ms ok 141 + tid 219 ms ok 142 + tidscan 263 ms ok 143 + tidrangescan 754 ms ok 144 + collate.utf8 128 ms ok 145 + collate.icu.utf8 1698 ms ok 146 + incremental_sort 1102 ms ok 147 + create_role 349 ms ok 148 + without_overlaps 1579 ms # parallel group (7 tests): collate.windows.win1252 amutils psql_crosstab collate.linux.utf8 rules psql stats_ext ok 149 + rules 1065 ms ok 150 + psql 1130 ms ok 151 + psql_crosstab 108 ms ok 152 + amutils 74 ms ok 153 + stats_ext 2418 ms ok 154 + collate.linux.utf8 758 ms ok 155 + collate.windows.win1252 31 ms ok 156 - select_parallel 3961 ms ok 157 - write_parallel 181 ms ok 158 - vacuum_parallel 189 ms # parallel group (2 tests): subscription publication ok 159 + publication 2891 ms ok 160 + subscription 103 ms # parallel group (17 tests): portals_p2 advisory_lock combocid xmlmap dependency tsdicts equivclass functional_deps guc select_views indirect_toast bitmapops cluster window foreign_data foreign_key tsearch ok 161 + select_views 759 ms ok 162 + portals_p2 162 ms ok 163 + foreign_key 2627 ms ok 164 + cluster 1261 ms ok 165 + dependency 409 ms ok 166 + guc 511 ms ok 167 + bitmapops 1154 ms ok 168 + combocid 223 ms ok 169 + tsearch 2635 ms ok 170 + tsdicts 426 ms ok 171 + foreign_data 1923 ms ok 172 + window 1256 ms ok 173 + xmlmap 308 ms ok 174 + functional_deps 475 ms ok 175 + advisory_lock 207 ms ok 176 + indirect_toast 1025 ms ok 177 + equivclass 444 ms # parallel group (9 tests): json_encoding jsonpath_encoding jsonpath sqljson_jsontable sqljson json jsonb_jsonpath sqljson_queryfuncs jsonb ok 178 + json 325 ms ok 179 + jsonb 728 ms ok 180 + json_encoding 44 ms ok 181 + jsonpath 114 ms ok 182 + jsonpath_encoding 54 ms ok 183 + jsonb_jsonpath 363 ms ok 184 + sqljson 255 ms ok 185 + sqljson_queryfuncs 373 ms ok 186 + sqljson_jsontable 239 ms # parallel group (18 tests): prepare returning plancache limit sequence conversion temp rowtypes copy2 largeobject polymorphism truncate with domain rangefuncs plpgsql xml alter_table ok 187 + plancache 471 ms ok 188 + limit 615 ms ok 189 + plpgsql 2617 ms ok 190 + copy2 1002 ms ok 191 + temp 928 ms ok 192 + domain 1493 ms ok 193 + rangefuncs 1820 ms ok 194 + prepare 160 ms ok 195 + conversion 824 ms ok 196 + truncate 1345 ms ok 197 + alter_table 3763 ms ok 198 + sequence 747 ms ok 199 + polymorphism 1223 ms ok 200 + rowtypes 949 ms ok 201 + returning 343 ms ok 202 + largeobject 1127 ms ok 203 + with 1481 ms ok 204 + xml 3431 ms # parallel group (15 tests): hash_part predicate reloptions partition_info explain compression partition_merge memoize partition_split stats partition_aggregate partition_join indexing tuplesort partition_prune ok 205 + partition_merge 1425 ms ok 206 + partition_split 1975 ms ok 207 + partition_join 2770 ms ok 208 + partition_prune 3653 ms ok 209 + reloptions 323 ms ok 210 + hash_part 182 ms ok 211 + indexing 2923 ms ok 212 + partition_aggregate 2418 ms ok 213 + partition_info 352 ms ok 214 + tuplesort 2987 ms ok 215 + explain 395 ms ok 216 + compression 1014 ms ok 217 + memoize 1919 ms ok 218 + stats 2266 ms ok 219 + predicate 278 ms # parallel group (2 tests): oidjoins event_trigger ok 220 + oidjoins 446 ms ok 221 + event_trigger 512 ms ok 222 - event_trigger_login 56 ms ok 223 - fast_default 311 ms ok 224 - tablespace 621 ms 1..224 # All 224 tests passed. [10:43:26.479](48.473s) 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 4001 5 1006 1 2 41 5 17 -2 1 33 34 9 1 1 1 1 1 1 -1 1 1 -1 -32768 32767 46 Waiting for replication conn standby_1's replay_lsn to pass 0/14B43B48 on primary done # Running: pg_dumpall -f /tmp/cirrus-ci-build/src/test/recovery/tmp_check/primary.dump --no-sync -p 54218 --no-unlogged-table-data ================================================================= ==50065==ERROR: AddressSanitizer: global-buffer-overflow on address 0x55784c58667c at pc 0x55784c515bb2 bp 0x7ffc616ba320 sp 0x7ffc616ba318 READ of size 4 at 0x55784c58667c thread T0 #0 0x55784c515bb1 in DOTypeNameCompare /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump_sort.c:205 #1 0x55784c554760 in pg_qsort_med3 ../../src/include/lib/sort_template.h:267 #2 0x55784c554960 in pg_qsort ../../src/include/lib/sort_template.h:345 #3 0x55784c51a2bb in sortDumpableObjectsByTypeName /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump_sort.c:192 #4 0x55784c50a49f in main /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump.c:993 #5 0x7fdc3cc47d09 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23d09) #6 0x55784c4bfec9 in _start (/tmp/cirrus-ci-build/tmp_install/usr/local/pgsql/bin/pg_dump+0x3aec9) 0x55784c58667c is located 0 bytes to the right of global variable 'dbObjectTypePriority' defined in 'pg_dump_sort.c:105:18' (0x55784c5865c0) 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: 0x0aaf898a8c70: 00 00 00 00 00 00 00 00 00 00 04 f9 f9 f9 f9 f9 0x0aaf898a8c80: 00 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 0x0aaf898a8c90: 00 00 00 00 00 00 05 f9 f9 f9 f9 f9 00 00 00 00 0x0aaf898a8ca0: 03 f9 f9 f9 f9 f9 f9 f9 00 00 02 f9 f9 f9 f9 f9 0x0aaf898a8cb0: 00 00 06 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 =>0x0aaf898a8cc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00[04] 0x0aaf898a8cd0: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00 0x0aaf898a8ce0: 00 00 00 00 00 00 00 04 f9 f9 f9 f9 00 00 00 00 0x0aaf898a8cf0: 07 f9 f9 f9 f9 f9 f9 f9 07 f9 f9 f9 f9 f9 f9 f9 0x0aaf898a8d00: 00 00 00 00 00 05 f9 f9 f9 f9 f9 f9 00 00 00 06 0x0aaf898a8d10: 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 ==50065==ABORTING Aborted (core dumped) pg_dumpall: error: pg_dump failed on database "regression", exiting [10:43:27.377](0.898s) not ok 3 - dump primary server [10:43:27.377](0.000s) [10:43:27.377](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 54219 ================================================================= ==50078==ERROR: AddressSanitizer: global-buffer-overflow on address 0x55804c50067c at pc 0x55804c48fbb2 bp 0x7fff56d98a10 sp 0x7fff56d98a08 READ of size 4 at 0x55804c50067c thread T0 #0 0x55804c48fbb1 in DOTypeNameCompare /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump_sort.c:205 #1 0x55804c4ce760 in pg_qsort_med3 ../../src/include/lib/sort_template.h:267 #2 0x55804c4ce960 in pg_qsort ../../src/include/lib/sort_template.h:345 #3 0x55804c4942bb in sortDumpableObjectsByTypeName /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump_sort.c:192 #4 0x55804c48449f in main /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump.c:993 #5 0x7f3414847d09 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23d09) #6 0x55804c439ec9 in _start (/tmp/cirrus-ci-build/tmp_install/usr/local/pgsql/bin/pg_dump+0x3aec9) 0x55804c50067c is located 0 bytes to the right of global variable 'dbObjectTypePriority' defined in 'pg_dump_sort.c:105:18' (0x55804c5005c0) 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: 0x0ab089898070: 00 00 00 00 00 00 00 00 00 00 04 f9 f9 f9 f9 f9 0x0ab089898080: 00 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 0x0ab089898090: 00 00 00 00 00 00 05 f9 f9 f9 f9 f9 00 00 00 00 0x0ab0898980a0: 03 f9 f9 f9 f9 f9 f9 f9 00 00 02 f9 f9 f9 f9 f9 0x0ab0898980b0: 00 00 06 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 =>0x0ab0898980c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00[04] 0x0ab0898980d0: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00 0x0ab0898980e0: 00 00 00 00 00 00 00 04 f9 f9 f9 f9 00 00 00 00 0x0ab0898980f0: 07 f9 f9 f9 f9 f9 f9 f9 07 f9 f9 f9 f9 f9 f9 f9 0x0ab089898100: 00 00 00 00 00 05 f9 f9 f9 f9 f9 f9 00 00 00 06 0x0ab089898110: 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 ==50078==ABORTING Aborted (core dumped) pg_dumpall: error: pg_dump failed on database "regression", exiting [10:43:28.215](0.838s) not ok 4 - dump standby server [10:43:28.215](0.000s) [10:43:28.215](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 [10:43:28.218](0.002s) ok 5 - compare primary and standby dumps [10:43:28.418](0.201s) 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" [10:43:28.627](0.209s) 1..6 [10:43:28.629](0.001s) # Looks like you failed 2 tests of 6.