# Checking port 62519 # Found port 62519 Name: primary Data directory: /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_primary_data/pgdata Backup directory: /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_primary_data/backup Archive directory: /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_primary_data/archives Connection string: port=62519 host=/tmp/yy5W3LdNPO Log file: /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/log/002_compare_backups_primary.log [15:36:12.859](0.047s) # initializing database system by copying initdb template # Running: cp -RPp /tmp/cirrus-ci-build/tmp_install/initdb-template /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_primary_data/pgdata # Running: /tmp/cirrus-ci-build/src/bin/pg_combinebackup/../../../src/test/regress/pg_regress --config-auth /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_primary_data/pgdata ### Enabling WAL archiving for node "primary" ### Starting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_primary_data/pgdata -l /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/log/002_compare_backups_primary.log -o --cluster-name=primary start waiting for server to start.... done server started # Postmaster PID for node "primary" is 18542 # Running: pg_basebackup -D /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_primary_data/backup/backup1 --no-sync -cfast [15:36:13.487](0.628s) ok 1 - full backup # Running: pg_basebackup -D /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_primary_data/backup/backup2 --no-sync -cfast --incremental /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_primary_data/backup/backup1/backup_manifest [15:36:14.032](0.545s) ok 2 - incremental backup # Checking port 62520 # Found port 62520 Name: pitr1 Data directory: /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_pitr1_data/pgdata Backup directory: /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_pitr1_data/backup Archive directory: /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_pitr1_data/archives Connection string: port=62520 host=/tmp/yy5W3LdNPO Log file: /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/log/002_compare_backups_pitr1.log # Initializing node "pitr1" from backup "backup1" of node "primary" ### Enabling WAL restore for node "pitr1" ### Starting node "pitr1" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_pitr1_data/pgdata -l /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/log/002_compare_backups_pitr1.log -o --cluster-name=pitr1 start waiting for server to start.... done server started # Postmaster PID for node "pitr1" is 18963 # Checking port 62521 # Found port 62521 Name: pitr2 Data directory: /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_pitr2_data/pgdata Backup directory: /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_pitr2_data/backup Archive directory: /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_pitr2_data/archives Connection string: port=62521 host=/tmp/yy5W3LdNPO Log file: /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/log/002_compare_backups_pitr2.log # Initializing node "pitr2" from backup "backup2" of node "primary" # Running: pg_combinebackup -d /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_primary_data/backup/backup1 /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_primary_data/backup/backup2 -o /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_pitr2_data/pgdata pg_combinebackup: read server version 17 from "/tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_primary_data/backup/backup2/PG_VERSION" pg_combinebackup: reading "/tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_primary_data/backup/backup2/global/pg_control" pg_combinebackup: reading "/tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_primary_data/backup/backup1/global/pg_control" pg_combinebackup: system identifier is 7343645694467894657 pg_combinebackup: reading "/tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_primary_data/backup/backup2/backup_label" pg_combinebackup: reading "/tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_primary_data/backup/backup1/backup_label" ================================================================= ==19000==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000000098 at pc 0x5638007191b1 bp 0x7ffe12c94070 sp 0x7ffe12c94068 READ of size 8 at 0x602000000098 thread T0 #0 0x5638007191b0 in fasthash_accum_cstring_aligned ../../../src/include/common/hashfn_unstable.h:243 #1 0x5638007191b0 in fasthash_accum_cstring ../../../src/include/common/hashfn_unstable.h:311 #2 0x5638007191b0 in hash_string_pointer /tmp/cirrus-ci-build/src/bin/pg_combinebackup/load_manifest.c:248 #3 0x56380071a5e8 in manifest_files_insert ../../../src/include/lib/simplehash.h:779 #4 0x56380071a6b8 in combinebackup_per_file_cb /tmp/cirrus-ci-build/src/bin/pg_combinebackup/load_manifest.c:198 #5 0x56380072278d in json_manifest_finalize_file /tmp/cirrus-ci-build/src/common/parse_manifest.c:548 #6 0x563800723245 in json_manifest_object_end /tmp/cirrus-ci-build/src/common/parse_manifest.c:219 #7 0x56380072d71c in parse_object /tmp/cirrus-ci-build/src/common/jsonapi.c:470 #8 0x56380072cdad in parse_array_element /tmp/cirrus-ci-build/src/common/jsonapi.c:500 #9 0x56380072d031 in parse_array /tmp/cirrus-ci-build/src/common/jsonapi.c:555 #10 0x56380072d3dd in parse_object_field /tmp/cirrus-ci-build/src/common/jsonapi.c:386 #11 0x56380072d677 in parse_object /tmp/cirrus-ci-build/src/common/jsonapi.c:450 #12 0x56380072dac1 in pg_parse_json /tmp/cirrus-ci-build/src/common/jsonapi.c:221 #13 0x5638007239dc in json_parse_manifest /tmp/cirrus-ci-build/src/common/parse_manifest.c:148 #14 0x56380071b9fe in load_backup_manifest /tmp/cirrus-ci-build/src/bin/pg_combinebackup/load_manifest.c:159 #15 0x56380071baa3 in load_backup_manifests /tmp/cirrus-ci-build/src/bin/pg_combinebackup/load_manifest.c:81 #16 0x5638007167bc in main /tmp/cirrus-ci-build/src/bin/pg_combinebackup/pg_combinebackup.c:232 #17 0x7f1b46ee2d09 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23d09) #18 0x563800712779 in _start (/tmp/cirrus-ci-build/tmp_install/usr/local/pgsql/bin/pg_combinebackup+0xf779) 0x60200000009d is located 0 bytes to the right of 13-byte region [0x602000000090,0x60200000009d) allocated by thread T0 here: #0 0x7f1b47400817 in __interceptor_strdup ../../../../src/libsanitizer/asan/asan_interceptors.cpp:452 #1 0x563800729682 in pg_strdup /tmp/cirrus-ci-build/src/common/fe_memutils.c:95 #2 0x563800721a51 in json_manifest_array_start /tmp/cirrus-ci-build/src/common/parse_manifest.c:256 SUMMARY: AddressSanitizer: heap-buffer-overflow ../../../src/include/common/hashfn_unstable.h:243 in fasthash_accum_cstring_aligned Shadow bytes around the buggy address: 0x0c047fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c047fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c047fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c047fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c047fff8000: fa fa 00 00 fa fa 02 fa fa fa 06 fa fa fa 05 fa =>0x0c047fff8010: fa fa 00[05]fa fa 05 fa fa fa 04 fa fa fa 00 06 0x0c047fff8020: fa fa 07 fa fa fa 00 01 fa fa 00 01 fa fa 04 fa 0x0c047fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff8060: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 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 ==19000==ABORTING [15:36:15.615](1.583s) Bail out! command "pg_combinebackup -d /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_primary_data/backup/backup1 /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_primary_data/backup/backup2 -o /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_pitr2_data/pgdata" died with signal 6 # Postmaster PID for node "primary" is 18542 ### Stopping node "primary" using mode immediate # Running: pg_ctl -D /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_primary_data/pgdata -m immediate stop waiting for server to shut down.... done server stopped # No postmaster PID for node "primary" # Postmaster PID for node "pitr1" is 18963 ### Stopping node "pitr1" using mode immediate # Running: pg_ctl -D /tmp/cirrus-ci-build/src/bin/pg_combinebackup/tmp_check/t_002_compare_backups_pitr1_data/pgdata -m immediate stop waiting for server to shut down.... done server stopped # No postmaster PID for node "pitr1" # No postmaster PID for node "pitr2"