This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Bug: Synchronous signals broken on Cygwin 64
On Thu, 26 Apr 2018 13:12:53, Thomas Zimmermann wrote:
> > > After the invocation of the handler, the program continues with the code
> > > that attempts 'to divide by zero'.
> > >=20
> > > As result of that, the handler is invoked again.
> >
> > This means that the behavior of the test case is incorrect when running
> > in 32-bit mode. There, the signal-handler function runs exactly *once*
> > and then the program terminates.
> >
> I just saw that the result after returning from a synchronous signal is
> undefined. So any behavior seems be OK. I'd still encourage to unify the
> behavior of 32-bit and 64-bit code. (See my other mail.)
You are correct.
For those who like a textbook reference, see:
Chapter 22, section 4 (Hardware-Generated Signals) of The Linux Programming
Interface by Michael Kerrisk.
Henri
> Best regards
> Thomas
--
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