seemingly random "nesting of readline input" warnings

Duncan Temple Lang duncan@research.bell-labs.com
Mon, 4 Nov 2002 15:45:13 -0500


Luke Tierney wrote:
> On 2 Nov 2002, Peter Dalgaard BSA wrote:
> 
> > Argh. Yes, the ReadlineStack.current needs to be reset to zero by
> > something when you break out. A pragmatic temporary fix is to increase
> > the maximum to be large enough that you don't bump into it this
> > easily.
> > 
> > Duuuuncan! Come and fix this!
> > 

Done using a local signal handler that pops the readline stack and
then calls the regular handler. This should work for pretty much all
the cases of interest. There are issues with the very unusual cases.

Fix committed to R-devel. (Do we want it also on R-patches?)

> 
> Looks like another case where our expedient but unfortunately too
> crude approach of handling Control-C on UNIX-likes with longjmp is
> biting us.  We really do need to bite the bullet and fix this properly.
> Maybe Duncan and I can coordinate getting a handle on this.

Yes, indeed.

> 
> luke
> 
> -- 
> Luke Tierney
> University of Iowa                  Phone:             319-335-3386
> Department of Statistics and        Fax:               319-335-3017
>    Actuarial Science
> 241 Schaeffer Hall                  email:      luke@stat.uiowa.edu
> Iowa City, IA 52242                 WWW:  http://www.stat.uiowa.edu
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

-- 
_______________________________________________________________

Duncan Temple Lang                duncan@research.bell-labs.com
Bell Labs, Lucent Technologies    office: (908)582-3217
700 Mountain Avenue, Room 2C-259  fax:    (908)582-3340
Murray Hill, NJ  07974-2070       
         http://cm.bell-labs.com/stat/duncan
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._