From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id B00D6387742A for ; Mon, 29 Nov 2021 12:26:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B00D6387742A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1638188800; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=wC4p8AUQojf0yry1EFGUuv7qZ3N8uIFAubqiNVYyOng=; b=Aqtg7sP3AZtlX0XjLy9Kmh1W0yfRATiJoFvtFZcjDwXrQQ4JUVKKyS7tGsmJRZg/DiF3N5 1EjDmudWj6oztNzRGskALX/WRzAmINNSALrAbP6BDXxEL5OUeIKhfW/Dz9vQwQzgBQT8/u xm+QTm6LjU6HIl3h86V7LV4fxJWGSQ8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-18-VMscCpnqO4aQtZN-QqXOoA-1; Mon, 29 Nov 2021 07:26:39 -0500 X-MC-Unique: VMscCpnqO4aQtZN-QqXOoA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 58072839A57 for ; Mon, 29 Nov 2021 12:26:38 +0000 (UTC) Received: from calimero.vinschen.de (ovpn-112-13.ams2.redhat.com [10.36.112.13]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 29D6460622 for ; Mon, 29 Nov 2021 12:26:38 +0000 (UTC) Received: by calimero.vinschen.de (Postfix, from userid 500) id A81A0A8109C; Mon, 29 Nov 2021 13:26:36 +0100 (CET) Date: Mon, 29 Nov 2021 13:26:36 +0100 From: Corinna Vinschen To: newlib@sourceware.org Subject: Re: printf("%La\n", 1e1000L) crashes with segv. Message-ID: Reply-To: newlib@sourceware.org Mail-Followup-To: newlib@sourceware.org References: <20211128164953.98a7291b46c4de3d43c67bb3@nifty.ne.jp> <20211129200122.ff3d2697d9791541fb58c60a@nifty.ne.jp> MIME-Version: 1.0 In-Reply-To: <20211129200122.ff3d2697d9791541fb58c60a@nifty.ne.jp> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=vinschen@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Nov 2021 12:26:42 -0000 On Nov 29 20:01, Takashi Yano wrote: > On Sun, 28 Nov 2021 16:49:53 +0900 > Takashi Yano wrote: > > I noticed that printf("%La\n", 1e1000L) crashes with segv. > > I confirmed this in 32bit cygwin, however, I guess this is > > newlib issue. > > > > Is this the known issue? > > I found that the main cause of this issue is lack of frexpl() > function. This is not implemented yet in newlib. > > I have made a patch which implements frexpl() to fix this issue. > > Please see attachd patch. This is great, please push. Thanks, Corinna