From tlumley@u.washington.edu  Thu Aug 23 16:50:31 2001
From: tlumley@u.washington.edu (Thomas Lumley)
Date: Thu, 23 Aug 2001 08:50:31 -0700 (PDT)
Subject: Interrupts (was Re: [Rd] X11 protocol errors ...)
In-Reply-To: <20010823093937.A12583@nokomis.stat.umn.edu>
Message-ID: <Pine.A41.4.33.0108230843490.135314-100000@homer05.u.washington.edu>

On Thu, 23 Aug 2001, Luke Tierney wrote:

> On Thu, Aug 23, 2001 at 08:16:09AM -0400, Duncan Murdoch wrote:
> > On Wed, 22 Aug 2001 19:32:51 -0500, you wrote:
> > >I'm surprised we don't get more of these sorts of things on UNIX.  Our
> > >current UNIX interrupt handling approach takes an immediate LONGJMP
> > >out of the signal handler no matter where the signal occurs (except
> > >for two places where signals are suspended).  Any place where an
> > >invariant is temporarily broken, any place where an assignment is not
> > >yet complete, is a potential trouble spot.

This is what is happening in the segfault caused by interrupting
Sys.sleep under Linux.  Presumably the fix is to wait and take the
interrupt after restoring the InputHandler.  It would be nice if someone
who understood this sort of thing could fix it before 1.3.1

	-thomas


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


Interrupts (was Re: [Rd] X11 protocol errors ...)
Thomas Lumley