From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rock.gnat.com (rock.gnat.com [205.232.38.15]) by sourceware.org (Postfix) with ESMTP id 95C183858023 for ; Wed, 18 Nov 2020 03:47:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 95C183858023 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=brobecker@adacore.com Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 75492116304; Tue, 17 Nov 2020 22:47:32 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at gnat.com Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zpKDmYq6ZmWH; Tue, 17 Nov 2020 22:47:32 -0500 (EST) Received: from float.home (localhost.localdomain [127.0.0.1]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by rock.gnat.com (Postfix) with ESMTPS id 229FE1161CF; Tue, 17 Nov 2020 22:47:32 -0500 (EST) Received: by float.home (Postfix, from userid 1000) id 2ED30A1871; Wed, 18 Nov 2020 07:47:27 +0400 (+04) Date: Wed, 18 Nov 2020 07:47:27 +0400 From: Joel Brobecker To: Simon Marchi Cc: Pedro Alves , gdb-patches@sourceware.org Subject: Re: pushed: Add support for DWARF-based fixed point types Message-ID: <20201118034727.GF617116@adacore.com> References: <1604817017-25807-1-git-send-email-brobecker@adacore.com> <1605429345-78384-1-git-send-email-brobecker@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no 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, 18 Nov 2020 03:47:33 -0000 > > $ ./gdb -ex "maint selftest gdb_mpq_write_fixed_point" > > GNU gdb (GDB) 11.0.50.20201116-git > > ... > > Running selftest gdb_mpq_write_fixed_point. > > *** stack smashing detected ***: terminated > > Aborted (core dumped) > > $ > > > > I've built a clean gdb from scratch to confirm. > > > > The test passes on Fedora 27, which has libgmp.so.10.3.2: > > > > $ ./gdb -ex "maint selftest gdb_mpq_write_fixed_point" > > GNU gdb (GDB) 11.0.50.20201116-git > > Running selftest gdb_mpq_write_fixed_point. > > Ran 1 unit tests, 0 failed > > > > Anyone else seeing this? > > > > I didn't see it in my -O0 compiled GDB, but I do see it in my -O2 compiled GDB. Hmmm, I'm wondering if this might be indicative of a bug in GDB, rather than in GMP. I will take a look at it this weekend. Thanks Pedro and Simon. -- Joel