From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18028 invoked by alias); 10 May 2019 13:50:23 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 17829 invoked by uid 89); 10 May 2019 13:50:23 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=H*c:alternative, H*c:HHH X-HELO: EUR02-VE1-obe.outbound.protection.outlook.com Received: from mail-oln040092069074.outbound.protection.outlook.com (HELO EUR02-VE1-obe.outbound.protection.outlook.com) (40.92.69.74) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 10 May 2019 13:50:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Fl/xZigbRWGuM4Ft6UlSw4jEg+OsPbzxM0UAaODMN/A=; b=lPbfLWSMxxnzdE/3fge0muBKCjB+wyvnuJZjYUhi1Z5Uyv+WrGF37ghHo2Vt4lhP5onlub6GsQ3p1KgrgQPv/IFEs1lcxmWAlTYQXRTqDn4Vpe5snDyBe9aZq2gvlDSode2YhmkisGxmJPuTinTzDfWqpCqftHsR7nc5wu+7M2JIYMFiP+WZZC/1F71oHmbqKhA53AGnz3/iz9ftu6QYPHbIfruxyAD0D3Uvkgppo5SUYdXdj/Kb+71cn6GsuazNnth1Rgiu5RfbvJg9d7tSPxhf/s5MUqnqMJQ2tVuhi7OE8Izeo0bnDy9kQfQvDyUfPWQEQFSXQTgBaSciR1Qthg== Received: from HE1EUR02FT052.eop-EUR02.prod.protection.outlook.com (10.152.10.51) by HE1EUR02HT179.eop-EUR02.prod.protection.outlook.com (10.152.11.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1856.11; Fri, 10 May 2019 13:50:17 +0000 Received: from DB7PR01MB5386.eurprd01.prod.exchangelabs.com (10.152.10.55) by HE1EUR02FT052.mail.protection.outlook.com (10.152.11.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1856.11 via Frontend Transport; Fri, 10 May 2019 13:50:17 +0000 Received: from DB7PR01MB5386.eurprd01.prod.exchangelabs.com ([fe80::856e:7ca7:1162:c34f]) by DB7PR01MB5386.eurprd01.prod.exchangelabs.com ([fe80::856e:7ca7:1162:c34f%4]) with mapi id 15.20.1878.022; Fri, 10 May 2019 13:50:16 +0000 From: Jose Isaias Cabrera To: Agner Fog , "cygwin@cygwin.com" Subject: Re: Bug report. Clang sqrtl(-1) causes access violation Date: Fri, 10 May 2019 13:50:00 -0000 Message-ID: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2019-05/txt/msg00084.txt.bz2 Agner Fog, on Friday, May 10, 2019 08:57 AM, wrote... > >Bug description: > >The sqrtl function under Clang causes an access violation when the >argument is negative. > >This error occurs only under Cygwin. > >This error occurs only with the sqrtl function, not with sqrt or sqrtf > It works for me. e608313@HOR711318E /cygdrive/c/source/c++/cygwin $ clang sqrt.cpp e608313@HOR711318E /cygdrive/c/source/c++/cygwin $ ls a.exe a.exe.stackdump ATT00001.txt cygcheck.out sqrt.cpp e608313@HOR711318E /cygdrive/c/source/c++/cygwin $ ./a.exe -1.000000 e608313@HOR711318E /cygdrive/c/source/c++/cygwin $ uname -a CYGWIN_NT-6.1 HOR711318E 3.0.7(0.338/5/3) 2019-04-30 18:04 i686 Cygwin e608313@HOR711318E /cygdrive/c/source/c++/cygwin $ clang --version clang version 5.0.1 (tags/RELEASE_501/final) Target: i686-pc-windows-cygnus Thread model: posix InstalledDir: /usr/bin e608313@HOR711318E /cygdrive/c/source/c++/cygwin $ cat sqrt.cpp #include #include float a =3D -1.f; int main() { float b =3D sqrtl(a); printf("%f\n", b); return 0; } -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple