This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Bug: Synchronous signals broken on Cygwin 64
- From: Thomas Zimmermann <tdz at users dot sourceforge dot net>
- To: cygwin at cygwin dot com
- Date: Thu, 26 Apr 2018 12:52:54 +0200
- Subject: Re: Bug: Synchronous signals broken on Cygwin 64
- Autocrypt: addr=tdz at users dot sourceforge dot net; prefer-encrypt=mutual; keydata= xsDiBEQ8FzARBAD9199cx5bJZ7nvSuaGA6ZLv1WyPtIeKWXj8mOfpn/tfmKUlzFijUChGBGP 1/FGssV/KnR+1zWdxsgtYuE8bbslJEGRP/fgaOgxisCKjkU8/SKXKKYoxS568m2TwBO512so PTj2mC3yWz4nU7ZTmgoJzf8r8TDZ3GBbHCoO21tUjwCgkjiAm08Kh72NtbMysXW88eOcFfUE ANvt1VrkyDjLD/viv7MHYUMLKLaFdNZUnJi4Rx6NwIqNxLDeGyPPp17/X2ls397Wl9PAZRJB 96/3E5WAOCyaKJc605luoyvv0CJ5+VuAQDVXKGdX/jr7EnhkyXmcm8ChKR/1Lct6jn5Wp922 utdklQcYEkSNMJbRsKReluxXaD6kBAC2qI/mOyRtJLxoszYG2hLf1BAOopJb13J1TCRQv3Df El2zmbPyYOfMQzbnFBrZ5yMve6I5/9hWksMMUWrdtgGDEsBFMa8iFb9FPsbKrDBmR66wpNFf s7GPEcWpIueBGu+vmXtUN8zE4mvUxFixc7iiPx46TCctKFqujGf6ubhlpc0tVGhvbWFzIFpp bW1lcm1hbm4gPHRkekB1c2Vycy5zb3VyY2Vmb3JnZS5uZXQ+wl0EExECAB0FAkQ8FzAGCwkI BwMCBBUCCAMEFgIDAQIeAQIXgAAKCRDZ2tfUTvHfCIydAJ4ndgH+dGp131Bx0su0VkWIiCfg iwCdHB339NSWt0kXY4+/Zhfpenzj9EXOwE0ERDwXMRAEAKcJyo9UpIp4Z4Mer58CL+ErcgwU xWdH5yhRV0++D70R6N5e+Yoa20V5trrNhpCEeAvjLW77VRqCYPO3hn0mmN2jSO8qMdBn7rXS ND9WFrlnSSCGsYQeoKj0z2KlQ8Waxg+r3b23azbMinF30x9303S3ZhrWvSf8wxIgd+u3HeXj AAMGA/9s/AWniacRR8T2ABN0ASjXp1SCSYmezL9Jp8MfSWvLcNrB/0Oi/o3+1HfJiTHg7o8l H6tpqScWsKpPZbYxmo9vb9sVjAOLzGpeV8S6Pe1pcXfiOuZLMJ5OTga6GxWimmP7rrWKTIlP x57wXD+v6c4A4VYW973YXNh1mVXwON3ydMJGBBgRAgAGBQJEPBcxAAoJENna19RO8d8IASEA niQqMp4Yd00/t47D09opsugE9GBHAJ9sJZgtyq9lLB3xCFm16nooejR/XA==
- Openpgp: preference=signencrypt
- References: <bc993d03-a9ac-d1c9-c33a-03cfc810edbe@users.sourceforge.net> <d76cfa4797d30702799a93892d454d95@smtp-cloud9.xs4all.net>
Hi
Am 26.04.2018 um 12:45 schrieb Houder:
>> The expected behavior is that an installed signal handler runs exactly
>> once for a signal and the OS terminates the program if the handler
>> returns. This works on 32-bit Cygwin. From my observation, Cygwin 64
>> differs in the follow ways:
>
> .. uhm, unless SA_RESETHAND (sa_flags) has been specified, I expect the
> handler to be invoked again and again ...
What I mean is that the installed signal handler is re-called constantly
for the same HW exception (div-by-zero in this case). It is as if
there's an endless loop around the signal-handler function.
Best regards
Thomas
--
Implement thread-safe and fault-tolerant software in C: visit picotm.org
--
GnuPG: http://tdz.users.sourceforge.net/tdz.asc
Fingerprint: 16FF F599 82F8 E5AA 18C6 5220 D9DA D7D4 4EF1 DF08
Website: tzimmermann.org
Attachment:
signature.asc
Description: OpenPGP digital signature