DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 49DFST4M2952860
Authentication-Results: delorie.com;
	dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=EPOmXAY6
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D01E5385AE71
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1728833308;
	bh=ogfoqYV2tcNdjtCR0GVT+XP4aEPGO9Fs6DL4fo/w7EY=;
	h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=EPOmXAY6hLtMfJb+uwMMofC3ciupHSSfKvMOUCShHifx/NwBi0n+HqZVjS4nOa8oT
	 kwJ/sg0qJeZvglz6HgraoLC0wUxxePPFlKpNWIlXaa5oJ8vDhS0wNh/dJIPxkUx1AG
	 lGzcfOMbt0HJ7emwcjm6DDVtrxIOBOdq75Cp3dsU=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 63747385842D
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 63747385842D
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728833255; cv=none;
 b=g402ls4Sl/aegQdz02RUAT5H7GCd2LjKzhQ7sPLeLpN8P4q9xAugmyeQKKFM7GBoqJ8JQs1nGy8I3fDmQH2dI0pF4xqFdxuwW0GQkcFgzPVPTCQxc9jcWZk33vx1ruy91nu08YV4RmcGhYG7ADOr9QSMqCsVEWvWhTL3rQBGkXA=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1728833255; c=relaxed/simple;
 bh=8iKYM3ZhHwqmxOmzXCgOGCv2mcbV1ebLYTajWq6IUJY=;
 h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;
 b=CPHUE4O4i6qa800ZztRYHeV8VH9Wq4d7n3s4HeICpDlUfkQcxZ+WgILR3M1N/0BA6b0gGAysjv57Ls8jbjw9boKpt+EYnTsNaYOUVMYKpTNatKlKZNhpKcPEmHeXT+nvYqlb5/XUKfbXoZ6k44B0HeRwhWG5SioSAxflu5GGy3U=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1728833252; x=1729438052;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:newsgroups:to:subject:user-agent:mime-version:date
 :message-id:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=diuk7IqaumsF1W2O+jQ3Ci2en/XaipQsWFLr8PYnnYo=;
 b=QpaCvsfb+1LmuBiI2TAggWsMjkf9YzSwRvt0N4gdFNPkuwJfNh5YaWmWkSg6TqGfcL
 kORl1PPpmhEhhO7P3W9mkVa8DZB5R6VECeBqr2E5BNtoCl9sgrE0rdVXplLMscX/fEsv
 czNy0lkLloU9o0AU8/M+nNJINHIcox01HQydaVJ2HDB4PvLX0JHAsbJPHrsL822gFTfm
 v1AIKJ5pi9usp1MEMhp8ZT2kjBPF3BWPeaGJqm82Ga1DdoSqCax5S7E7vIoB2GW38QGL
 ASPsNCoW9FhVXs80lPrxMFomemfXTLAd5uBdr3m2BDnOC0ZNVQa3JKyxu4FgXZzvsoWP
 XBvg==
X-Gm-Message-State: AOJu0YyKwqayCQHJmzuA3UirSv0MxiZ1QpZOmbSsjKLosC/BvTJAIfdq
 Kciog9yKUH1MDD6UsGyItSfpBb5ZL2F/EP7sBw7hAqVvJczJ31VxAWdEzQ==
X-Google-Smtp-Source: AGHT+IGDdpDTTAv2yYeam5QNzlgjPeEWCtqWr6nK2nrKLLkdV0xzDcNOoF3Uxq8F9zv8aRvw2LAE5w==
X-Received: by 2002:a17:903:22cb:b0:20b:ab4b:544a with SMTP id
 d9443c01a7336-20ca16c8dc6mr131932615ad.43.1728833252314; 
 Sun, 13 Oct 2024 08:27:32 -0700 (PDT)
Message-ID: <d2d2c7b2-1c01-452f-b23b-eeb6eaac9ddf@gmail.com>
Date: Mon, 14 Oct 2024 00:27:25 +0900
MIME-Version: 1.0
User-Agent: Thunderbird Daily
Subject: Re: cygwin 3.5.4-1: signal handling destroys 'long double' values
To: cygwin@cygwin.com
Newsgroups: gmane.os.cygwin
References: <922a6d7e-3ee1-9bb7-dfd7-b94c53a7b9d4@t-online.de>
Content-Language: en-US
X-No-Archive: Yes
In-Reply-To: <922a6d7e-3ee1-9bb7-dfd7-b94c53a7b9d4@t-online.de>
X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00, BODY_8BITS,
 DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM,
 RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: jojelino via Cygwin <cygwin@cygwin.com>
Reply-To: jojelino <jojelino@gmail.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces~archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 49DFST4M2952860

On 10/7/2024 10:11 PM, Christian Franke via Cygwin wrote:
> $ cat sigtest.c
> #include <signal.h>
> #include <stdio.h>
> 
> static volatile sig_atomic_t sigcnt;
> 
> static void sigint_handler(int sig)
> {
>    (void)sig;
>    sigcnt++;
> }
> 
> #ifndef WORKS
> typedef long double float_type;
> #define FMT "La"
> #else
> typedef double float_type;
> #define FMT "a"
> #endif
> 
> int main()
> {
>    signal(SIGINT, sigint_handler);
>    volatile float_type x = 0x1.23456789p+0;
>    while (sigcnt < 42) {
>      volatile float_type y = x;
>      volatile float_type d = y - x;
>      if (d != 0.0)
>        printf("x = %" FMT ", y = %" FMT ", d = %" FMT "\n", x, y, d);
>    }
> }
> 
> $ gcc -o sigtest -O2 sigtest.c
> 
> $ ./sigtest > out.txt
> (press ^C 42x 🙂

Reproduced same as you did.

I have a installed memory in DIMMs of laptop that is not in a list of 
supported memory of DDR4. although result of dmidecode on smbios is said 
that maximum of 64GB is allowed. So memory read error is commonplace in 
heavy load.

I suggest you to try below command line as I don't experience it anymore.

Please try it out.

$ sed -E '25a usleep(100000);' sigtest.c|gcc -x c -O2 -msse3 
-mfpmath=sse -;./a.exe
<stdin>: In function ‘main’:
<stdin>:26:1: warning: implicit declaration of function ‘usleep’ 
[-Wimplicit-function-declaration]
(press ^C 42x 🙂

$ ^C


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

