X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=ywEczban4qWPPkv1 FkKtI5oJ96ov3djheHdoq5Cq5LC3lzGegBFPHbGXZ7easEW68s4BBzVAA6760MtB Wo1FTcjtAJmiM1sYJpcTIxWxcslcBxCfHoS5oT1OK+JAbGjoxXrqpq01av7BFW4W V/KvLyK5lqvqj1k6XqF/kzjAqpg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=pQuOgqR1kzHz7AvY5xkwnE Umk/8=; b=cZKYMWTk+syIWLvzAogvCrXQ+nqHe+iWzF7kAh6amAm2xwvXoXl66p qxd1/0JlHfY4O6r5+oNim8t9Nvz1pagHzz0RIPVxKRm/u9i3svNXKWX35aqH24UL syIFXkximZ/HalS+xwGeBW9r+RKMND7WHMLv8c94jpCkTcd7lWDBk= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE,SPF_FAIL,SPF_HELO_PASS autolearn=no version=3.3.1 spammy=Jose, jose, habiel, cabrera X-HELO: gateway22.websitewelcome.com Subject: Re: Bug report. Clang sqrtl(-1) causes access violation To: "cygwin AT cygwin DOT com" References: From: Agner Fog Message-ID: <03f2a425-2f3f-4230-c4c5-3265f511d4f5@agner.org> Date: Fri, 10 May 2019 21:44:51 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes On 10/05/2019 15.50, Jose Isaias Cabrera wrote: > It works for me. Now it turns out that all the long double math functions cause access violations. If you can't reproduce the error, what can I do to trace it? Exception: STATUS_ACCESS_VIOLATION at rip=00180173164 Sam Habiel wrote: > Wow I can't believe that The Agner Fog posted on the Cygwin mailing list! This is the place to post bug reports, right? On 10/05/2019 15.50, Jose Isaias Cabrera wrote: > 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 AT HOR711318E /cygdrive/c/source/c++/cygwin > $ clang sqrt.cpp > > e608313 AT HOR711318E /cygdrive/c/source/c++/cygwin > $ ls > a.exe  a.exe.stackdump  ATT00001.txt  cygcheck.out  sqrt.cpp > > e608313 AT HOR711318E /cygdrive/c/source/c++/cygwin > $ ./a.exe > -1.000000 > > e608313 AT 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 AT 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 AT HOR711318E /cygdrive/c/source/c++/cygwin > $ cat sqrt.cpp > > > #include > #include > float a = -1.f; > > int main() { >     float b = 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