Interrupts (was Re: [Rd] X11 protocol errors ...)
Prof Brian D Ripley
ripley@stats.ox.ac.uk
Thu, 23 Aug 2001 18:05:43 +0100 (BST)
On Thu, 23 Aug 2001, Thomas Lumley wrote:
> 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
Well, I don't know if I will have time, but I do think I know how to do it.
I suspect I always knew this could happen, but forgot to secure against it,
and it hadn't (hasn't) come up in earnest yet .
--
Brian D. Ripley, ripley@stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._