From p.dalgaard at biostat.ku.dk  Tue Apr 26 19:59:45 2005
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Tue Apr 26 19:59:53 2005
Subject: [Rd] Ctrl-c crashes R when run as sudo (PR#7819)
In-Reply-To: <20050426172552.72B76A1D9@slim.kubism.ku.dk>
References: <20050426172552.72B76A1D9@slim.kubism.ku.dk>
Message-ID: <x2acnls9ke.fsf@turmalin.kubism.ku.dk>

MSchwartz@medanalytics.com writes:

> > Thanks you, however Marc omitted to mention that you need to type
> > signal SIGINT
> > before running the backtrace (bt), because gdb will catch the INT  
> > signal thus not leading to the desired crash and the backtrace just  
> > shows when you hit Ctrl-C, not what happens after. Only after the  
> > signal SIGINT you should get the crash (if at all).
...
> Manuel, I should have asked earlier, but I presume that you installed
> from source as I don't see RPMs for 2.1.0 yet?
> 
> Marc

The effect seem to have been neatly backported to 2.0.1 though...

Gdb doesn't seem to help. If you run a ps while "sudo R" is running,
you'll see something like this:

root     30416  0.0  0.1  2356  252 pts/5    S+   19:48   0:00 sesh /usr/bin/R
root     30417 10.0  7.2 18016 13860 pts/5   S+   19:48   0:01 /usr/lib/R/bin/exec/R

What I suspect is happening is that the ^C kills the sesh process, but
that in turn does not manage to kill R.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907


[Rd] Ctrl-c crashes R when run as sudo (PR#7819)
Peter Dalgaard