Interrupts (was Re: [Rd] X11 protocol errors ...)
Thomas Lumley
tlumley@u.washington.edu
Thu, 23 Aug 2001 08:50:31 -0700 (PDT)
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._