From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 912D53858002; Wed, 24 Mar 2021 08:40:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 912D53858002 From: "vries at gcc dot gnu.org" To: dwz@sourceware.org Subject: [Bug default/27643] New: [dwz] more low mem memory leaks Date: Wed, 24 Mar 2021 08:40:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: dwz X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: nobody at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: dwz@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dwz mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2021 08:40:47 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27643 Bug ID: 27643 Summary: [dwz] more low mem memory leaks Product: dwz Version: unspecified Status: NEW Severity: normal Priority: P2 Component: default Assignee: nobody at sourceware dot org Reporter: vries at gcc dot gnu.org CC: dwz at sourceware dot org Target Milestone: --- After applying this patch to make the problem visible: ... diff --git a/testsuite/dwz.tests/twice-multifile.sh b/testsuite/dwz.tests/twice-multifile.s h index 8a66e25..1ff0166 100644 --- a/testsuite/dwz.tests/twice-multifile.sh +++ b/testsuite/dwz.tests/twice-multifile.sh @@ -24,7 +24,10 @@ if [ $(grep -qv "DWARF compression not beneficial" dwz.e= rr \ exit 1 fi -[ $status -eq 0 ] +if [ $status -ne 0 ]; then + cat dwz.err + exit 1 +fi smaller-than.sh 1 1.saved ... we have: ... Running /home/vries/dwz/dwz.git/testsuite/dwz.tests/dwz-tests.exp ... dwz: 1: DWARF compression not beneficial - old size 3372 new size 3372 dwz: 2: DWARF compression not beneficial - old size 3372 new size 3372 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D14974=3D=3DERROR: LeakSanitizer: detected memory leaks Direct leak of 432 byte(s) in 6 object(s) allocated from: #0 0x7fc5a266d6d8 in __interceptor_calloc (/usr/lib64/libasan.so.4+0xdc= 6d8) #1 0x475dc1 in htab_try_create /home/vries/dwz/dwz.git/hashtab.c:164 #2 0x44c610 in build_abbrevs /home/vries/dwz/dwz.git/dwz.c:11230 #3 0x44ee00 in compute_abbrevs /home/vries/dwz/dwz.git/dwz.c:11510 #4 0x46f07c in dwz /home/vries/dwz/dwz.git/dwz.c:15396 #5 0x474e0d in dwz_files_1 /home/vries/dwz/dwz.git/dwz.c:16327 #6 0x475699 in dwz_files /home/vries/dwz/dwz.git/dwz.c:16417 #7 0x4759fc in main /home/vries/dwz/dwz.git/dwz.c:16458 #8 0x7fc5a1fe2349 in __libc_start_main (/lib64/libc.so.6+0x24349) Indirect leak of 2928 byte(s) in 6 object(s) allocated from: #0 0x7fc5a266d6d8 in __interceptor_calloc (/usr/lib64/libasan.so.4+0xdc= 6d8) #1 0x475de7 in htab_try_create /home/vries/dwz/dwz.git/hashtab.c:168 #2 0x44c610 in build_abbrevs /home/vries/dwz/dwz.git/dwz.c:11230 #3 0x44ee00 in compute_abbrevs /home/vries/dwz/dwz.git/dwz.c:11510 #4 0x46f07c in dwz /home/vries/dwz/dwz.git/dwz.c:15396 #5 0x474e0d in dwz_files_1 /home/vries/dwz/dwz.git/dwz.c:16327 #6 0x475699 in dwz_files /home/vries/dwz/dwz.git/dwz.c:16417 #7 0x4759fc in main /home/vries/dwz/dwz.git/dwz.c:16458 #8 0x7fc5a1fe2349 in __libc_start_main (/lib64/libc.so.6+0x24349) SUMMARY: AddressSanitizer: 3360 byte(s) leaked in 12 allocation(s). child process exited abnormally FAIL: /home/vries/dwz/dwz.git/testsuite/dwz.tests/twice-multifile.sh ... --=20 You are receiving this mail because: You are on the CC list for the bug.=