From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 5F69E3857C46 for ; Wed, 14 Oct 2020 14:06:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5F69E3857C46 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark@simark.ca Received: from [172.16.0.95] (192-222-181-218.qc.cable.ebox.net [192.222.181.218]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id D73E91E58C; Wed, 14 Oct 2020 10:06:31 -0400 (EDT) Subject: Re: [PATCH 2/6] Use a std::vector in target_section_table To: Luis Machado , Tom Tromey Cc: Luis Machado via Gdb-patches References: <20201003193735.2532-1-tom@tromey.com> <20201003193735.2532-3-tom@tromey.com> <87ft6hrhhv.fsf@tromey.com> <875z7dq80k.fsf@tromey.com> <871ri1q72v.fsf@tromey.com> From: Simon Marchi Message-ID: <27490fc8-0705-3c45-05c3-d786c02316a4@simark.ca> Date: Wed, 14 Oct 2020 10:06:31 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: tl Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Oct 2020 14:06:33 -0000 On 2020-10-14 9:23 a.m., Luis Machado via Gdb-patches wrote: > On 10/14/20 10:18 AM, Tom Tromey wrote: >>>>>>> "Luis" == Luis Machado writes: >> >> Luis> On 10/14/20 9:58 AM, Tom Tromey wrote: >> Luis> From seeing the before/after log files, I only noticed differences in >> Luis> the values printed. Maybe something is not getting relocated/reloaded >> Luis> properly? >>>> I tried on gcc113 today and couldn't reproduce the bug. >> >> Luis> I have a Ubuntu 18.04 system with the standard GCC 7.5.0. What OS is >> Luis> gcc113 running? >> >> Ubuntu 14.04.6 LTS. >> There doesn't seem to be a newer OS available. > > That's unfortunate. > > It should really be updated. I'll check who is the owner of that machine. > >> But ... did Tom de Vries' patch help? > > I tried Tom's patch this morning and it did not help. It isn't a crash, but rather it appears as if something is stale or not relocated/reloaded properly. > > I'll investigate. The difference between the two might simply be that on 14.04, PIE was not enabled by default (I don't remember on which release they enabled it by default). You might be able to reproduce on 14.04 by passing "pie" to the gdb_compile options, to force the test case to generate PIEs. Simon