Clang Address Sanitizer (Postgres14) Detected Memory Leaks

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Clang Address Sanitizer (Postgres14) Detected Memory Leaks
Date: 2020-08-27 03:44:30
Message-ID: CAEudQAr_QfBLa7ShmMASQNa+dJ8dkJdRnZY6aP+o_FhrcB0Rpg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Is this something to worry about, or is it another problem with the
analysis tool, that nobody cares about?
clang 10 (64 bits)
postgres 14 (latest)

31422==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 4560 byte(s) in 1 object(s) allocated from:
#0 0x50e33d in malloc
(/usr/src/postgres/tmp_install/usr/local/pgsql/bin/postgres+0x50e33d)
#1 0x186d52f in ConvertTimeZoneAbbrevs
/usr/src/postgres/src/backend/utils/adt/datetime.c:4511:8
#2 0x1d9b5e9 in load_tzoffsets
/usr/src/postgres/src/backend/utils/misc/tzparser.c:465:12
#3 0x1d8ca3f in check_timezone_abbreviations
/usr/src/postgres/src/backend/utils/misc/guc.c:11389:11
#4 0x1d6a398 in call_string_check_hook
/usr/src/postgres/src/backend/utils/misc/guc.c:11056:7
#5 0x1d68f29 in parse_and_validate_value
/usr/src/postgres/src/backend/utils/misc/guc.c:6870:10
#6 0x1d6567d in set_config_option
/usr/src/postgres/src/backend/utils/misc/guc.c:7473:11
#7 0x1d7f8f4 in ProcessGUCArray
/usr/src/postgres/src/backend/utils/misc/guc.c:10608:10
#8 0x9d0c8d in ApplySetting
/usr/src/postgres/src/backend/catalog/pg_db_role_setting.c:256:4
#9 0x1d4ad93 in process_settings
/usr/src/postgres/src/backend/utils/init/postinit.c:1174:2
#10 0x1d48e39 in InitPostgres
/usr/src/postgres/src/backend/utils/init/postinit.c:1059:2
#11 0x14a2c1a in BackgroundWorkerInitializeConnectionByOid
/usr/src/postgres/src/backend/postmaster/postmaster.c:5758:2
#12 0x853feb in ParallelWorkerMain
/usr/src/postgres/src/backend/access/transam/parallel.c:1373:2
#13 0x146e5fb in StartBackgroundWorker
/usr/src/postgres/src/backend/postmaster/bgworker.c:813:2
#14 0x14af69b in do_start_bgworker
/usr/src/postgres/src/backend/postmaster/postmaster.c:5879:4
#15 0x14a1487 in maybe_start_bgworkers
/usr/src/postgres/src/backend/postmaster/postmaster.c:6104:9
#16 0x149e5aa in sigusr1_handler
/usr/src/postgres/src/backend/postmaster/postmaster.c:5269:3
#17 0x7fcffa75a3bf (/lib/x86_64-linux-gnu/libpthread.so.0+0x153bf)
#18 0x149d655 in PostmasterMain
/usr/src/postgres/src/backend/postmaster/postmaster.c:1414:11
#19 0x108402e in main /usr/src/postgres/src/backend/main/main.c:209:3
#20 0x7fcffa54e0b2 in __libc_start_main
/build/glibc-YYA7BZ/glibc-2.31/csu/../csu/libc-start.c:308:16

Direct leak of 1020 byte(s) in 15 object(s) allocated from:
#0 0x4fa6e4 in strdup
(/usr/src/postgres/tmp_install/usr/local/pgsql/bin/postgres+0x4fa6e4)
#1 0x1d6a1c7 in guc_strdup
/usr/src/postgres/src/backend/utils/misc/guc.c:4889:9
#2 0x1d7efc7 in set_config_sourcefile
/usr/src/postgres/src/backend/utils/misc/guc.c:7696:15
#3 0x1d7c95e in ProcessConfigFileInternal
/usr/src/postgres/src/backend/utils/misc/guc-file.l:478:4
#4 0x1d5b33f in ProcessConfigFile
/usr/src/postgres/src/backend/utils/misc/guc-file.l:156:9
#5 0x1d5ae7d in SelectConfigFiles
/usr/src/postgres/src/backend/utils/misc/guc.c:5674:2
#6 0x149b6ce in PostmasterMain
/usr/src/postgres/src/backend/postmaster/postmaster.c:884:7

Ranier Vilela

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2020-08-27 04:10:15 Re: Implement UNLOGGED clause for COPY FROM
Previous Message Michael Paquier 2020-08-27 02:57:21 pg_index.indisreplident and invalid indexes