From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8724 invoked by alias); 17 Aug 2017 17:42:41 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 5988 invoked by uid 89); 17 Aug 2017 17:42:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=HTo:D*be X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 17 Aug 2017 17:42:38 +0000 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1F582C047B75; Thu, 17 Aug 2017 17:42:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 1F582C047B75 Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=palves@redhat.com Received: from [127.0.0.1] (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id AC8825EDE8; Thu, 17 Aug 2017 17:42:35 +0000 (UTC) Subject: Re: Synthetic symbol leak in in elf_x86_64_get_synthetic_symtab and elf_read_minimal_symbols To: Philippe Waroquiers , Yao Qi References: <20170811092709.GH8039@1170ee0b50d5> <20170811154542.GK8039@1170ee0b50d5> <86d17umpcg.fsf@gmail.com> <1502973107.1766.64.camel@skynet.be> Cc: Alex Lindsay , "H.J. Lu" , GDB From: Pedro Alves Message-ID: Date: Thu, 17 Aug 2017 17:42:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1502973107.1766.64.camel@skynet.be> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2017-08/txt/msg00349.txt.bz2 On 08/17/2017 01:31 PM, Philippe Waroquiers wrote: > My knowledge of c++ is close to 0, so I cannot help much > to find the source of the leak. > I am wondering however who owns the memory allocated > at dwarf2read.c:9362 : > line_header_up lh = dwarf_decode_line_header (line_offset, cu); > when the logic goes later on to line 9389 > gdb_assert (die->tag != DW_TAG_partial_unit); > (for info: in the c version 7.11, this assert was followed by > make_cleanup (free_cu_line_header, cu); > ) That does look like the reason for the leak. I'm taking a look. Thanks, Pedro Alves