From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#25364: etags malloc problems Date: Thu, 05 Jan 2017 16:52:47 +0100 Message-ID: <87r34h33n4.fsf@linux-m68k.org> References: <91a665173f0064eaaf432cb1d52f3dd57635@sharklasers.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1483631634 2963 195.159.176.226 (5 Jan 2017 15:53:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 5 Jan 2017 15:53:54 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.91 (gnu/linux) Cc: 25364@debbugs.gnu.org To: <5upnzm+87w9w470225qs@sharklasers.com> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 05 16:53:47 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cPAMJ-0007pa-NO for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Jan 2017 16:53:43 +0100 Original-Received: from localhost ([::1]:47130 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPAMN-000234-Sb for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Jan 2017 10:53:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPALi-0001iw-07 for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2017 10:53:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPALe-0005aU-1y for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2017 10:53:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56833) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cPALd-0005aN-Ub for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2017 10:53:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cPALd-0000pA-Nz for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2017 10:53:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Jan 2017 15:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25364 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25364-submit@debbugs.gnu.org id=B25364.14836315723150 (code B ref 25364); Thu, 05 Jan 2017 15:53:01 +0000 Original-Received: (at 25364) by debbugs.gnu.org; 5 Jan 2017 15:52:52 +0000 Original-Received: from localhost ([127.0.0.1]:43999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cPALU-0000ok-4n for submit@debbugs.gnu.org; Thu, 05 Jan 2017 10:52:52 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.9]:44311) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cPALS-0000oc-Jd for 25364@debbugs.gnu.org; Thu, 05 Jan 2017 10:52:51 -0500 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3tvXJK2bYKz3hjNF; Thu, 5 Jan 2017 16:52:49 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3tvXJK11bjzvk8h; Thu, 5 Jan 2017 16:52:49 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id AAAj9Ep07EIU; Thu, 5 Jan 2017 16:52:48 +0100 (CET) X-Auth-Info: l9GnNZgB8SdbyQKBS6Ksl4oB2C1Ow0FMbNsAfukWIspPhG2m5+va76OwDY9V9nO6 Original-Received: from igel.home (ppp-88-217-26-238.dynamic.mnet-online.de [88.217.26.238]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 5 Jan 2017 16:52:48 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 1000) id 7CBB22C46A1; Thu, 5 Jan 2017 16:52:47 +0100 (CET) X-Yow: My EARS are GONE!! In-Reply-To: <91a665173f0064eaaf432cb1d52f3dd57635@sharklasers.com> (5upnzm+87w9w470225qs@sharklasers.com's message of "Thu, 05 Jan 2017 03:07:13 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:127787 Archived-At: On Jan 05 2017, <5upnzm+87w9w470225qs@sharklasers.com> wrote: > ==5176==ERROR: LeakSanitizer: detected memory leaks > > Direct leak of 120 byte(s) in 1 object(s) allocated from: > #0 0x4cba68 in __interceptor_malloc (/tmp/etags/etags+0x4cba68) > #1 0x5043f8 in xmalloc /tmp/etags/etags.c:7238:18 > #2 0x5036c5 in main /tmp/etags/etags.c:1097:15 > #3 0x7fb31bc332b0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202b0) > > Direct leak of 40 byte(s) in 1 object(s) allocated from: > #0 0x4cba68 in __interceptor_malloc (/tmp/etags/etags+0x4cba68) > #1 0x5043f8 in xmalloc /tmp/etags/etags.c:7238:18 > #2 0x5036b8 in main /tmp/etags/etags.c:1091:20 > #3 0x7fb31bc332b0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202b0) > > Direct leak of 24 byte(s) in 1 object(s) allocated from: > #0 0x4cba68 in __interceptor_malloc (/tmp/etags/etags+0x4cba68) > #1 0x5043f8 in xmalloc /tmp/etags/etags.c:7238:18 > #2 0x50447c in concat /tmp/etags/etags.c:6958:18 > #3 0x503706 in main /tmp/etags/etags.c:1109:15 > #4 0x7fb31bc332b0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202b0) These are all allocations in main, no point in freeing them if the process is exiting anyway. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."