# Checking port 58829 # Found port 58829 Name: main Data directory: /tmp/cirrus-ci-build/src/bin/pg_dump/tmp_check/t_002_pg_dump_main_data/pgdata Backup directory: /tmp/cirrus-ci-build/src/bin/pg_dump/tmp_check/t_002_pg_dump_main_data/backup Archive directory: /tmp/cirrus-ci-build/src/bin/pg_dump/tmp_check/t_002_pg_dump_main_data/archives Connection string: port=58829 host=/tmp/UgEKB8u2WT Log file: /tmp/cirrus-ci-build/src/bin/pg_dump/tmp_check/log/002_pg_dump_main.log [20:23:34.566](0.181s) # 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_dump/tmp_check/t_002_pg_dump_main_data/pgdata # Running: /tmp/cirrus-ci-build/src/bin/pg_dump/../../../src/test/regress/pg_regress --config-auth /tmp/cirrus-ci-build/src/bin/pg_dump/tmp_check/t_002_pg_dump_main_data/pgdata ### Starting node "main" # Running: pg_ctl -w -D /tmp/cirrus-ci-build/src/bin/pg_dump/tmp_check/t_002_pg_dump_main_data/pgdata -l /tmp/cirrus-ci-build/src/bin/pg_dump/tmp_check/log/002_pg_dump_main.log -o --cluster-name=main start waiting for server to start.... done server started # Postmaster PID for node "main" is 27506 #### Begin standard error psql::46: NOTICE: merging column "col1" with inherited definition psql::46: NOTICE: merging column "col2" with inherited definition psql::255: NOTICE: return type dump_test.int42 is only a shell psql::271: NOTICE: argument type dump_test.int42 is only a shell psql::340: WARNING: subscription was created, but is not connected HINT: To initiate replication, you must manually create the replication slot, enable the subscription, and refresh the subscription. psql::344: WARNING: subscription was created, but is not connected HINT: To initiate replication, you must manually create the replication slot, enable the subscription, and refresh the subscription. psql::346: WARNING: wal_level is insufficient to publish logical changes HINT: Set wal_level to "logical" before creating subscriptions. psql::348: WARNING: wal_level is insufficient to publish logical changes HINT: Set wal_level to "logical" before creating subscriptions. psql::352: WARNING: subscription was created, but is not connected HINT: To initiate replication, you must manually create the replication slot, enable the subscription, and refresh the subscription. psql::354: WARNING: wal_level is insufficient to publish logical changes HINT: Set wal_level to "logical" before creating subscriptions. psql::358: WARNING: wal_level is insufficient to publish logical changes HINT: Set wal_level to "logical" before creating subscriptions. psql::573: NOTICE: merging column "col1" with inherited definition #### End standard error # Running: pg_dump -p 58829 qqq [20:23:36.279](1.713s) ok 1 - connecting to a non-existent database: exit code not 0 [20:23:36.280](0.000s) ok 2 - connecting to a non-existent database: matches # Running: pg_dump -d regression_invalid [20:23:36.314](0.034s) ok 3 - connecting to an invalid database: exit code not 0 [20:23:36.315](0.000s) ok 4 - connecting to an invalid database: matches # Running: pg_dump -p 58829 --role=regress_dump_test_role [20:23:36.538](0.223s) ok 5 - connecting with an unprivileged user: exit code not 0 [20:23:36.538](0.000s) ok 6 - connecting with an unprivileged user: matches # Running: pg_dump -p 58829 -n nonexistent [20:23:36.569](0.030s) ok 7 - dumping a non-existent schema: exit code not 0 [20:23:36.569](0.000s) ok 8 - dumping a non-existent schema: matches # Running: pg_dump -p 58829 -t nonexistent [20:23:36.602](0.034s) ok 9 - dumping a non-existent table: exit code not 0 [20:23:36.603](0.000s) ok 10 - dumping a non-existent table: matches # Running: pg_dump -p 58829 --strict-names -n nonexistent* [20:23:36.662](0.060s) ok 11 - no matching schemas: exit code not 0 [20:23:36.663](0.000s) ok 12 - no matching schemas: matches # Running: pg_dump -p 58829 --strict-names -t nonexistent* [20:23:36.702](0.039s) ok 13 - no matching tables: exit code not 0 [20:23:36.702](0.000s) ok 14 - no matching tables: matches # Running: pg_dumpall --exclude-database . [20:23:36.766](0.064s) ok 15 - pg_dumpall: option --exclude-database rejects multipart pattern ".": exit code not 0 [20:23:36.767](0.000s) ok 16 - pg_dumpall: option --exclude-database rejects multipart pattern ".": matches # Running: pg_dumpall --exclude-database myhost.mydb [20:23:36.892](0.125s) ok 17 - pg_dumpall: option --exclude-database rejects multipart database names: exit code not 0 [20:23:36.892](0.000s) ok 18 - pg_dumpall: option --exclude-database rejects multipart database names: matches # Running: pg_dump -p 58829 -n pg_catalog ================================================================= ==27684==ERROR: AddressSanitizer: global-buffer-overflow on address 0x55e22b03d67c at pc 0x55e22afccc5b bp 0x7fffad2e2170 sp 0x7fffad2e2168 READ of size 4 at 0x55e22b03d67c thread T0 #0 0x55e22afccc5a in DOTypeNameCompare /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump_sort.c:204 #1 0x55e22b00bb8c in pg_qsort ../../src/include/lib/sort_template.h:364 #2 0x55e22afd1371 in sortDumpableObjectsByTypeName /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump_sort.c:192 #3 0x55e22afc1555 in main /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump.c:993 #4 0x7f4f7c02cd09 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23d09) #5 0x55e22af76ec9 in _start (/tmp/cirrus-ci-build/tmp_install/usr/local/pgsql/bin/pg_dump+0x3aec9) 0x55e22b03d67c is located 0 bytes to the right of global variable 'dbObjectTypePriority' defined in 'pg_dump_sort.c:105:18' (0x55e22b03d5c0) 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: 0x0abcc55ffa70: 00 00 00 00 00 00 00 00 00 00 04 f9 f9 f9 f9 f9 0x0abcc55ffa80: 00 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 0x0abcc55ffa90: 00 00 00 00 00 00 05 f9 f9 f9 f9 f9 00 00 00 00 0x0abcc55ffaa0: 03 f9 f9 f9 f9 f9 f9 f9 00 00 02 f9 f9 f9 f9 f9 0x0abcc55ffab0: 00 00 06 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 =>0x0abcc55ffac0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00[04] 0x0abcc55ffad0: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00 0x0abcc55ffae0: 00 00 00 00 00 00 00 04 f9 f9 f9 f9 00 00 00 00 0x0abcc55ffaf0: 07 f9 f9 f9 f9 f9 f9 f9 07 f9 f9 f9 f9 f9 f9 f9 0x0abcc55ffb00: 00 00 00 00 00 05 f9 f9 f9 f9 f9 f9 00 00 00 06 0x0abcc55ffb10: 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 ==27684==ABORTING [20:23:37.589](0.697s) not ok 19 - pg_dump: option -n pg_catalog [20:23:37.590](0.000s) [20:23:37.590](0.000s) # Failed test 'pg_dump: option -n pg_catalog' # at t/002_pg_dump.pl line 4786. # Running: pg_dumpall -p 58829 --exclude-database "myhost.mydb" -- -- PostgreSQL database cluster dump -- SET default_transaction_read_only = off; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; -- -- Roles -- CREATE ROLE postgres; ALTER ROLE postgres WITH SUPERUSER INHERIT CREATEROLE CREATEDB LOGIN REPLICATION BYPASSRLS; CREATE ROLE regress_dump_test_role; ALTER ROLE regress_dump_test_role WITH NOSUPERUSER INHERIT NOCREATEROLE NOCREATEDB NOLOGIN NOREPLICATION NOBYPASSRLS; CREATE ROLE "regress_quoted \"" role"; ALTER ROLE "regress_quoted \"" role" WITH NOSUPERUSER INHERIT NOCREATEROLE NOCREATEDB NOLOGIN NOREPLICATION NOBYPASSRLS; -- -- User Configurations -- -- -- Tablespaces -- CREATE TABLESPACE regress_dump_tablespace OWNER regress_dump_test_role LOCATION ''; -- -- Databases -- -- -- Database "template1" dump -- \connect template1 -- -- PostgreSQL database dump -- -- Dumped from database version 17devel -- Dumped by pg_dump version 17devel SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET transaction_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row_security = off; -- -- PostgreSQL database dump complete -- -- -- Database "dump_test" dump -- -- -- PostgreSQL database dump -- -- Dumped from database version 17devel -- Dumped by pg_dump version 17devel SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET transaction_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row_security = off; -- -- Name: dump_test; Type: DATABASE; Schema: -; Owner: postgres -- CREATE DATABASE dump_test WITH TEMPLATE = template0 ENCODING = 'UTF8' LOCALE_PROVIDER = libc LOCALE = 'C.UTF-8'; ALTER DATABASE dump_test OWNER TO postgres; \connect dump_test SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET transaction_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row_security = off; -- -- Name: DATABASE dump_test; Type: ACL; Schema: -; Owner: postgres -- REVOKE CONNECT,TEMPORARY ON DATABASE dump_test FROM PUBLIC; GRANT TEMPORARY ON DATABASE dump_test TO PUBLIC; GRANT CREATE ON DATABASE dump_test TO regress_dump_test_role; -- -- PostgreSQL database dump complete -- -- -- Database "dump_test2" dump -- -- -- PostgreSQL database dump -- -- Dumped from database version 17devel -- Dumped by pg_dump version 17devel SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET transaction_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row_security = off; -- -- Name: dump_test2; Type: DATABASE; Schema: -; Owner: postgres -- CREATE DATABASE dump_test2 WITH TEMPLATE = template0 ENCODING = 'UTF8' LOCALE_PROVIDER = libc LOCALE = 'C'; ALTER DATABASE dump_test2 OWNER TO postgres; \connect dump_test2 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET transaction_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row_security = off; -- -- PostgreSQL database dump complete -- -- -- Database "postgres" dump -- \connect postgres ================================================================= ==27940==ERROR: AddressSanitizer: global-buffer-overflow on address 0x55aa70e0f67c at pc 0x55aa70d9ec5b bp 0x7ffea9995290 sp 0x7ffea9995288 READ of size 4 at 0x55aa70e0f67c thread T0 #0 0x55aa70d9ec5a in DOTypeNameCompare /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump_sort.c:204 #1 0x55aa70dddb8c in pg_qsort ../../src/include/lib/sort_template.h:364 #2 0x55aa70da3371 in sortDumpableObjectsByTypeName /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump_sort.c:192 #3 0x55aa70d93555 in main /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump.c:993 #4 0x7f7f26474d09 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23d09) #5 0x55aa70d48ec9 in _start (/tmp/cirrus-ci-build/tmp_install/usr/local/pgsql/bin/pg_dump+0x3aec9) 0x55aa70e0f67c is located 0 bytes to the right of global variable 'dbObjectTypePriority' defined in 'pg_dump_sort.c:105:18' (0x55aa70e0f5c0) 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: 0x0ab5ce1b9e70: 00 00 00 00 00 00 00 00 00 00 04 f9 f9 f9 f9 f9 0x0ab5ce1b9e80: 00 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 0x0ab5ce1b9e90: 00 00 00 00 00 00 05 f9 f9 f9 f9 f9 00 00 00 00 0x0ab5ce1b9ea0: 03 f9 f9 f9 f9 f9 f9 f9 00 00 02 f9 f9 f9 f9 f9 0x0ab5ce1b9eb0: 00 00 06 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 =>0x0ab5ce1b9ec0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00[04] 0x0ab5ce1b9ed0: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00 0x0ab5ce1b9ee0: 00 00 00 00 00 00 00 04 f9 f9 f9 f9 00 00 00 00 0x0ab5ce1b9ef0: 07 f9 f9 f9 f9 f9 f9 f9 07 f9 f9 f9 f9 f9 f9 f9 0x0ab5ce1b9f00: 00 00 00 00 00 05 f9 f9 f9 f9 f9 f9 00 00 00 06 0x0ab5ce1b9f10: 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 ==27940==ABORTING Aborted (core dumped) pg_dumpall: error: pg_dump failed on database "postgres", exiting [20:23:39.206](1.616s) not ok 20 - pg_dumpall: option --exclude-database handles database names with embedded dots [20:23:39.206](0.000s) [20:23:39.206](0.000s) # Failed test 'pg_dumpall: option --exclude-database handles database names with embedded dots' # at t/002_pg_dump.pl line 4794. # Running: pg_dump --schema myhost.mydb.myschema [20:23:39.260](0.054s) ok 21 - pg_dump: option --schema rejects three-part schema names: exit code not 0 [20:23:39.260](0.000s) ok 22 - pg_dump: option --schema rejects three-part schema names: matches # Running: pg_dump --schema otherdb.myschema [20:23:39.339](0.079s) ok 23 - pg_dump: option --schema rejects cross-database multipart schema names: exit code not 0 [20:23:39.340](0.000s) ok 24 - pg_dump: option --schema rejects cross-database multipart schema names: matches # Running: pg_dump --schema . [20:23:39.361](0.022s) ok 25 - pg_dump: option --schema rejects degenerate two-part schema name: ".": exit code not 0 [20:23:39.362](0.000s) ok 26 - pg_dump: option --schema rejects degenerate two-part schema name: ".": matches # Running: pg_dump --schema "some.other.db".myschema [20:23:39.412](0.050s) ok 27 - pg_dump: option --schema rejects cross-database multipart schema names with embedded dots: exit code not 0 [20:23:39.412](0.000s) ok 28 - pg_dump: option --schema rejects cross-database multipart schema names with embedded dots: matches # Running: pg_dump --schema .. [20:23:39.451](0.039s) ok 29 - pg_dump: option --schema rejects degenerate three-part schema name: "..": exit code not 0 [20:23:39.452](0.000s) ok 30 - pg_dump: option --schema rejects degenerate three-part schema name: "..": matches # Running: pg_dump --table myhost.mydb.myschema.mytable [20:23:39.481](0.029s) ok 31 - pg_dump: option --table rejects four-part table names: exit code not 0 [20:23:39.481](0.000s) ok 32 - pg_dump: option --table rejects four-part table names: matches # Running: pg_dump --table otherdb.pg_catalog.pg_class [20:23:39.500](0.019s) ok 33 - pg_dump: option --table rejects cross-database three part table names: exit code not 0 [20:23:39.500](0.000s) ok 34 - pg_dump: option --table rejects cross-database three part table names: matches # Running: pg_dump -p 58829 --table "some.other.db".pg_catalog.pg_class [20:23:39.542](0.042s) ok 35 - pg_dump: option --table rejects cross-database three part table names with embedded dots: exit code not 0 [20:23:39.542](0.000s) ok 36 - pg_dump: option --table rejects cross-database three part table names with embedded dots: matches # Running: pg_dump --no-sync --format=custom --file=/tmp/cirrus-ci-build/src/bin/pg_dump/tmp_check/tmp_test_tYff/binary_upgrade.dump -w --schema-only --binary-upgrade -d postgres ================================================================= ==28055==ERROR: AddressSanitizer: global-buffer-overflow on address 0x5576efe2267c at pc 0x5576efdb1c5b bp 0x7fffe488f540 sp 0x7fffe488f538 READ of size 4 at 0x5576efe2267c thread T0 #0 0x5576efdb1c5a in DOTypeNameCompare /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump_sort.c:204 #1 0x5576efdf0b8c in pg_qsort ../../src/include/lib/sort_template.h:364 #2 0x5576efdb6371 in sortDumpableObjectsByTypeName /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump_sort.c:192 #3 0x5576efda6555 in main /tmp/cirrus-ci-build/src/bin/pg_dump/pg_dump.c:993 #4 0x7fbbc1bf8d09 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23d09) #5 0x5576efd5bec9 in _start (/tmp/cirrus-ci-build/tmp_install/usr/local/pgsql/bin/pg_dump+0x3aec9) 0x5576efe2267c is located 0 bytes to the right of global variable 'dbObjectTypePriority' defined in 'pg_dump_sort.c:105:18' (0x5576efe225c0) 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: 0x0aaf5dfbc470: 00 00 00 00 00 00 00 00 00 00 04 f9 f9 f9 f9 f9 0x0aaf5dfbc480: 00 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 0x0aaf5dfbc490: 00 00 00 00 00 00 05 f9 f9 f9 f9 f9 00 00 00 00 0x0aaf5dfbc4a0: 03 f9 f9 f9 f9 f9 f9 f9 00 00 02 f9 f9 f9 f9 f9 0x0aaf5dfbc4b0: 00 00 06 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 =>0x0aaf5dfbc4c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00[04] 0x0aaf5dfbc4d0: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00 0x0aaf5dfbc4e0: 00 00 00 00 00 00 00 04 f9 f9 f9 f9 00 00 00 00 0x0aaf5dfbc4f0: 07 f9 f9 f9 f9 f9 f9 f9 07 f9 f9 f9 f9 f9 f9 f9 0x0aaf5dfbc500: 00 00 00 00 00 05 f9 f9 f9 f9 f9 f9 00 00 00 06 0x0aaf5dfbc510: 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 ==28055==ABORTING [20:23:39.984](0.441s) not ok 37 - binary_upgrade: pg_dump runs [20:23:39.984](0.000s) [20:23:39.984](0.000s) # Failed test 'binary_upgrade: pg_dump runs' # at t/002_pg_dump.pl line 4873. # Running: pg_restore -Fc --verbose --file=/tmp/cirrus-ci-build/src/bin/pg_dump/tmp_check/tmp_test_tYff/binary_upgrade.sql /tmp/cirrus-ci-build/src/bin/pg_dump/tmp_check/tmp_test_tYff/binary_upgrade.dump pg_restore: error: could not read from input file: end of file [20:23:40.001](0.017s) not ok 38 - binary_upgrade: pg_restore runs [20:23:40.001](0.000s) [20:23:40.001](0.000s) # Failed test 'binary_upgrade: pg_restore runs' # at t/002_pg_dump.pl line 4915. could not read "/tmp/cirrus-ci-build/src/bin/pg_dump/tmp_check/tmp_test_tYff/binary_upgrade.sql": No such file or directory at t/002_pg_dump.pl line 4926. # Postmaster PID for node "main" is 27506 ### Stopping node "main" using mode immediate # Running: pg_ctl -D /tmp/cirrus-ci-build/src/bin/pg_dump/tmp_check/t_002_pg_dump_main_data/pgdata -m immediate stop waiting for server to shut down.... done server stopped # No postmaster PID for node "main" [20:23:40.114](0.113s) # Tests were run but no plan was declared and done_testing() was not seen. [20:23:40.114](0.000s) # Looks like your test exited with 2 just after 38.