From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 898EB3861004; Wed, 24 Mar 2021 09:06:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 898EB3861004 From: "vries at gcc dot gnu.org" To: dwz@sourceware.org Subject: [Bug default/27643] [dwz] build_abbrevs memory leak Date: Wed, 24 Mar 2021 09:06:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: short_desc Message-ID: In-Reply-To: References: 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 09:06:15 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27643 Tom de Vries changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[dwz] more low mem memory |[dwz] build_abbrevs memory |leaks |leak --- Comment #2 from Tom de Vries --- OK, the test run was on top of a few proposed patches, which moves the dwz_with_low_mem call into a separate process, such that we only see the problem later, which explains why we don't see dwz_with_low_mem in comment = 0. On trunk, we do get dwz_with_low_mem instead of dwz: ... Direct leak of 432 byte(s) in 6 object(s) allocated from: #0 0x7f8d6a37d6d8 in __interceptor_calloc (/usr/lib64/libasan.so.4+0xdc= 6d8) #1 0x475e34 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 0x4748f5 in dwz_with_low_mem /home/vries/dwz/dwz.git/dwz.c:16274 #6 0x474eb5 in dwz_files_1 /home/vries/dwz/dwz.git/dwz.c:16343 #7 0x47570c in dwz_files /home/vries/dwz/dwz.git/dwz.c:16427 #8 0x475a6f in main /home/vries/dwz/dwz.git/dwz.c:16468 #9 0x7f8d69cf2349 in __libc_start_main (/lib64/libc.so.6+0x24349) ... Anyway, looks like the problem is not specific to low-mem, adapting summary. --=20 You are receiving this mail because: You are on the CC list for the bug.=