From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from moene.org (moene.org [80.101.130.238]) by sourceware.org (Postfix) with ESMTPS id 9BD633858039 for ; Wed, 2 Feb 2022 08:57:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9BD633858039 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=moene.org Authentication-Results: sourceware.org; spf=none smtp.mailfrom=moene.org Received: from localhost ([127.0.0.1]) by moene.org with esmtp (Exim 4.95) (envelope-from ) id 1nFBSE-00GmLJ-NQ for gcc@gcc.gnu.org; Wed, 02 Feb 2022 09:57:31 +0100 Message-ID: Date: Wed, 2 Feb 2022 09:57:30 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: gcd_1.c:188:13: runtime error: shift exponent 64 is too large for 64-bit type 'long unsigned int' Content-Language: en-US To: gcc mailing list References: <5e40b118-5868-e5e6-999c-9955433d5d02@moene.org> From: Toon Moene Organization: Moene Computational Physics, Maartensdijk, The Netherlands In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Feb 2022 08:57:35 -0000 On 2/1/22 22:44, Marc Glisse wrote: > On Tue, 1 Feb 2022, Toon Moene wrote: > >> I just ran a "ubsan" build on my x86_64-linux-gnu system. > Maybe try with a more recent version of GMP first? gcd_1.c has only 103 > lines in release 6.2.1. > > A stack trace (UBSAN_OPTIONS=print_stacktrace=1) would make it easier to > guess where this is coming from. Fascinating. My gcc directory had both gmp-6.2.1 and -6.1.0, but the symbolic link 'gmp' pointed to the old one. A similar problem for mpc, mpfr and isl ... I will retest. Thanks ! -- Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290 Saturnushof 14, 3738 XG Maartensdijk, The Netherlands