# Checking port 49340 # Found port 49340 Name: primary Data directory: /tmp/cirrus-ci-build/contrib/basebackup_to_shell/tmp_check/t_001_basic_primary_data/pgdata Backup directory: /tmp/cirrus-ci-build/contrib/basebackup_to_shell/tmp_check/t_001_basic_primary_data/backup Archive directory: /tmp/cirrus-ci-build/contrib/basebackup_to_shell/tmp_check/t_001_basic_primary_data/archives Connection string: port=49340 host=/tmp/OxuYWsfYFh Log file: /tmp/cirrus-ci-build/contrib/basebackup_to_shell/tmp_check/log/001_basic_primary.log [16:49:32.475](0.065s) # initializing database system by copying initdb template # Running: cp -RPp /tmp/cirrus-ci-build/tmp_install/initdb-template /tmp/cirrus-ci-build/contrib/basebackup_to_shell/tmp_check/t_001_basic_primary_data/pgdata # Running: /tmp/cirrus-ci-build/contrib/basebackup_to_shell/../../src/test/regress/pg_regress --config-auth /tmp/cirrus-ci-build/contrib/basebackup_to_shell/tmp_check/t_001_basic_primary_data/pgdata --create-role backupuser ### Starting node "primary" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/contrib/basebackup_to_shell/tmp_check/t_001_basic_primary_data/pgdata -l /tmp/cirrus-ci-build/contrib/basebackup_to_shell/tmp_check/log/001_basic_primary.log -o --cluster-name=primary start waiting for server to start.... done server started # Postmaster PID for node "primary" is 18281 # Running: pg_basebackup --no-sync -cfast -U backupuser -Xfetch --target shell [16:49:33.394](0.919s) ok 1 - fails if basebackup_to_shell.command is not set: exit code not 0 [16:49:33.394](0.000s) ok 2 - fails if basebackup_to_shell.command is not set: matches ### Reloading node "primary" # Running: pg_ctl -D /tmp/cirrus-ci-build/contrib/basebackup_to_shell/tmp_check/t_001_basic_primary_data/pgdata reload server signaled # Running: pg_basebackup --no-sync -cfast -U backupuser -Xfetch --target shell [16:49:35.070](1.676s) ok 3 - backup with no detail: pg_basebackup [16:49:35.071](0.000s) ok 4 - backup with no detail: backup_manifest.gz was created [16:49:35.071](0.000s) ok 5 - backup with no detail: base.tar.gz was created # Running: gzip -d /tmp/cirrus-ci-build/contrib/basebackup_to_shell/tmp_check/tmp_test_aQYS/backup_manifest.gz # Running: gzip -d /tmp/cirrus-ci-build/contrib/basebackup_to_shell/tmp_check/tmp_test_aQYS/base.tar.gz # Running: /usr/bin/tar xf /tmp/cirrus-ci-build/contrib/basebackup_to_shell/tmp_check/tmp_test_aQYS/base.tar -C /tmp/cirrus-ci-build/contrib/basebackup_to_shell/tmp_check/tmp_test_eVH6 # Running: pg_verifybackup -n -m /tmp/cirrus-ci-build/contrib/basebackup_to_shell/tmp_check/tmp_test_aQYS/backup_manifest -e /tmp/cirrus-ci-build/contrib/basebackup_to_shell/tmp_check/tmp_test_eVH6 ================================================================= ==18632==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000000658 at pc 0x557ba79a9505 bp 0x7fff03c53f60 sp 0x7fff03c53f58 READ of size 8 at 0x602000000658 thread T0 #0 0x557ba79a9504 in fasthash_accum_cstring_aligned ../../../src/include/common/hashfn_unstable.h:243 #1 0x557ba79a9504 in fasthash_accum_cstring ../../../src/include/common/hashfn_unstable.h:311 #2 0x557ba79a9504 in hash_string_pointer /tmp/cirrus-ci-build/src/bin/pg_verifybackup/pg_verifybackup.c:925 #3 0x557ba79ab4ab in manifest_files_insert ../../../src/include/lib/simplehash.h:779 #4 0x557ba79ab4ab in verifybackup_per_file_cb /tmp/cirrus-ci-build/src/bin/pg_verifybackup/pg_verifybackup.c:479 #5 0x557ba79ae816 in json_manifest_finalize_file /tmp/cirrus-ci-build/src/common/parse_manifest.c:548 #6 0x557ba79af2ce in json_manifest_object_end /tmp/cirrus-ci-build/src/common/parse_manifest.c:219 #7 0x557ba79b5e53 in parse_object /tmp/cirrus-ci-build/src/common/jsonapi.c:470 #8 0x557ba79b54e4 in parse_array_element /tmp/cirrus-ci-build/src/common/jsonapi.c:500 #9 0x557ba79b5768 in parse_array /tmp/cirrus-ci-build/src/common/jsonapi.c:555 #10 0x557ba79b5b14 in parse_object_field /tmp/cirrus-ci-build/src/common/jsonapi.c:386 #11 0x557ba79b5dae in parse_object /tmp/cirrus-ci-build/src/common/jsonapi.c:450 #12 0x557ba79b61f8 in pg_parse_json /tmp/cirrus-ci-build/src/common/jsonapi.c:221 #13 0x557ba79afa65 in json_parse_manifest /tmp/cirrus-ci-build/src/common/parse_manifest.c:148 #14 0x557ba79aa63b in parse_manifest_file /tmp/cirrus-ci-build/src/bin/pg_verifybackup/pg_verifybackup.c:438 #15 0x557ba79abb6c in main /tmp/cirrus-ci-build/src/bin/pg_verifybackup/pg_verifybackup.c:336 #16 0x7f4b662c8d09 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23d09) #17 0x557ba79a7719 in _start (/tmp/cirrus-ci-build/tmp_install/usr/local/pgsql/bin/pg_verifybackup+0xc719) 0x60200000065d is located 0 bytes to the right of 13-byte region [0x602000000650,0x60200000065d) allocated by thread T0 here: #0 0x7f4b667e6817 in __interceptor_strdup ../../../../src/libsanitizer/asan/asan_interceptors.cpp:452 #1 0x557ba79b1db9 in pg_strdup /tmp/cirrus-ci-build/src/common/fe_memutils.c:95 #2 0x557ba79adada 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: 0x0c047fff8070: fa fa 00 fa fa fa fd fa fa fa fd fa fa fa 00 fa 0x0c047fff8080: fa fa 00 fa fa fa fd fa fa fa fd fa fa fa 00 fa 0x0c047fff8090: fa fa 00 fa fa fa fd fa fa fa fd fa fa fa 00 fa 0x0c047fff80a0: fa fa 00 fa fa fa fd fa fa fa fd fa fa fa 00 fa 0x0c047fff80b0: fa fa 00 fa fa fa 00 00 fa fa 00 00 fa fa 02 fa =>0x0c047fff80c0: fa fa 06 fa fa fa 05 fa fa fa 00[05]fa fa 05 fa 0x0c047fff80d0: fa fa 04 fa fa fa 00 06 fa fa 07 fa fa fa 00 01 0x0c047fff80e0: fa fa 00 01 fa fa 04 fa fa fa fa fa fa fa fa fa 0x0c047fff80f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff8100: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff8110: 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 ==18632==ABORTING [16:49:35.850](0.780s) not ok 6 - backup with no detail: backup verifies ok [16:49:35.851](0.000s) [16:49:35.851](0.000s) # Failed test 'backup with no detail: backup verifies ok' # at t/001_basic.pl line 134. # Running: pg_basebackup --no-sync -cfast -U backupuser -Xfetch --target shell:foo [16:49:35.894](0.044s) ok 7 - fails if detail provided without %d: exit code not 0 [16:49:35.894](0.000s) ok 8 - fails if detail provided without %d: matches ### Reloading node "primary" # Running: pg_ctl -D /tmp/cirrus-ci-build/contrib/basebackup_to_shell/tmp_check/t_001_basic_primary_data/pgdata reload server signaled # Running: pg_basebackup --no-sync -cfast -U backupuser -Xfetch --target shell [16:49:35.963](0.068s) ok 9 - fails if required_role not granted: exit code not 0 [16:49:35.963](0.000s) ok 10 - fails if required_role not granted: matches # Running: pg_basebackup --no-sync -cfast -U backupuser -Xfetch --target shell [16:49:36.081](0.118s) ok 11 - fails if %d is present and detail not given: exit code not 0 [16:49:36.081](0.000s) ok 12 - fails if %d is present and detail not given: matches # Running: pg_basebackup --no-sync -cfast -U backupuser -Xfetch --target shell:bar [16:49:37.235](1.154s) ok 13 - backup with detail: pg_basebackup [16:49:37.236](0.000s) ok 14 - backup with detail: backup_manifest.gz was created [16:49:37.236](0.000s) ok 15 - backup with detail: base.tar.gz was created # Running: gzip -d /tmp/cirrus-ci-build/contrib/basebackup_to_shell/tmp_check/tmp_test_aQYS/bar.backup_manifest.gz # Running: gzip -d /tmp/cirrus-ci-build/contrib/basebackup_to_shell/tmp_check/tmp_test_aQYS/bar.base.tar.gz # Running: /usr/bin/tar xf /tmp/cirrus-ci-build/contrib/basebackup_to_shell/tmp_check/tmp_test_aQYS/bar.base.tar -C /tmp/cirrus-ci-build/contrib/basebackup_to_shell/tmp_check/tmp_test_gXTC # Running: pg_verifybackup -n -m /tmp/cirrus-ci-build/contrib/basebackup_to_shell/tmp_check/tmp_test_aQYS/bar.backup_manifest -e /tmp/cirrus-ci-build/contrib/basebackup_to_shell/tmp_check/tmp_test_gXTC ================================================================= ==18980==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000000658 at pc 0x559096301505 bp 0x7fff6fcd5e20 sp 0x7fff6fcd5e18 READ of size 8 at 0x602000000658 thread T0 #0 0x559096301504 in fasthash_accum_cstring_aligned ../../../src/include/common/hashfn_unstable.h:243 #1 0x559096301504 in fasthash_accum_cstring ../../../src/include/common/hashfn_unstable.h:311 #2 0x559096301504 in hash_string_pointer /tmp/cirrus-ci-build/src/bin/pg_verifybackup/pg_verifybackup.c:925 #3 0x5590963034ab in manifest_files_insert ../../../src/include/lib/simplehash.h:779 #4 0x5590963034ab in verifybackup_per_file_cb /tmp/cirrus-ci-build/src/bin/pg_verifybackup/pg_verifybackup.c:479 #5 0x559096306816 in json_manifest_finalize_file /tmp/cirrus-ci-build/src/common/parse_manifest.c:548 #6 0x5590963072ce in json_manifest_object_end /tmp/cirrus-ci-build/src/common/parse_manifest.c:219 #7 0x55909630de53 in parse_object /tmp/cirrus-ci-build/src/common/jsonapi.c:470 #8 0x55909630d4e4 in parse_array_element /tmp/cirrus-ci-build/src/common/jsonapi.c:500 #9 0x55909630d768 in parse_array /tmp/cirrus-ci-build/src/common/jsonapi.c:555 #10 0x55909630db14 in parse_object_field /tmp/cirrus-ci-build/src/common/jsonapi.c:386 #11 0x55909630ddae in parse_object /tmp/cirrus-ci-build/src/common/jsonapi.c:450 #12 0x55909630e1f8 in pg_parse_json /tmp/cirrus-ci-build/src/common/jsonapi.c:221 #13 0x559096307a65 in json_parse_manifest /tmp/cirrus-ci-build/src/common/parse_manifest.c:148 #14 0x55909630263b in parse_manifest_file /tmp/cirrus-ci-build/src/bin/pg_verifybackup/pg_verifybackup.c:438 #15 0x559096303b6c in main /tmp/cirrus-ci-build/src/bin/pg_verifybackup/pg_verifybackup.c:336 #16 0x7fab70d3fd09 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23d09) #17 0x5590962ff719 in _start (/tmp/cirrus-ci-build/tmp_install/usr/local/pgsql/bin/pg_verifybackup+0xc719) 0x60200000065d is located 0 bytes to the right of 13-byte region [0x602000000650,0x60200000065d) allocated by thread T0 here: #0 0x7fab7125d817 in __interceptor_strdup ../../../../src/libsanitizer/asan/asan_interceptors.cpp:452 #1 0x559096309db9 in pg_strdup /tmp/cirrus-ci-build/src/common/fe_memutils.c:95 #2 0x559096305ada 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: 0x0c047fff8070: fa fa 00 fa fa fa fd fa fa fa fd fa fa fa 00 fa 0x0c047fff8080: fa fa 00 fa fa fa fd fa fa fa fd fa fa fa 00 fa 0x0c047fff8090: fa fa 00 fa fa fa fd fa fa fa fd fa fa fa 00 fa 0x0c047fff80a0: fa fa 00 fa fa fa fd fa fa fa fd fa fa fa 00 fa 0x0c047fff80b0: fa fa 00 fa fa fa 00 00 fa fa 00 00 fa fa 02 fa =>0x0c047fff80c0: fa fa 06 fa fa fa 05 fa fa fa 00[05]fa fa 05 fa 0x0c047fff80d0: fa fa 04 fa fa fa 00 06 fa fa 07 fa fa fa 00 01 0x0c047fff80e0: fa fa 00 01 fa fa 04 fa fa fa fa fa fa fa fa fa 0x0c047fff80f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff8100: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fff8110: 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 ==18980==ABORTING [16:49:38.185](0.950s) not ok 16 - backup with detail: backup verifies ok [16:49:38.186](0.000s) [16:49:38.186](0.000s) # Failed test 'backup with detail: backup verifies ok' # at t/001_basic.pl line 134. [16:49:38.186](0.000s) 1..16 ### Stopping node "primary" using mode immediate # Running: pg_ctl -D /tmp/cirrus-ci-build/contrib/basebackup_to_shell/tmp_check/t_001_basic_primary_data/pgdata -m immediate stop waiting for server to shut down.... done server stopped # No postmaster PID for node "primary" [16:49:38.292](0.106s) # Looks like you failed 2 tests of 16.