Skip to content

Ctrl-c crashes R when run as sudo (PR#7819)

3 messages · Manuel Morales, Simon Urbanek

#
On Tue, 2005-04-26 at 11:30 -0500, Marc Schwartz wrote:
Program received signal SIGINT, Interrupt.
0x006547a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
(gdb) bt
#0  0x006547a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x0072da1d in ___newselect_nocancel () from /lib/tls/libc.so.6
#2  0x0813e060 in R_SelectEx (n=1, readfds=0x825dde0, writefds=0x0,
    exceptfds=0x0, timeout=0x0, intr=0x813e5a8 <handleInterrupt>)
    at sys-std.c:138
#3  0x0813e281 in R_checkActivityEx (usec=-1, ignore_stdin=0,
    intr=0x813e5a8 <handleInterrupt>) at sys-std.c:302
#4  0x0813e6f0 in Rstd_ReadConsole (prompt=0x0, buf=0xbfffb33c "",
len=1024,
    addtohistory=-514) at sys-std.c:642
#5  0x080cac4a in Rf_ReplIteration (rho=0x9522cb8, savestack=-514,
    browselevel=0, state=0xbfffb330) at main.c:208
#6  0x080cadef in R_ReplConsole (rho=0x9522cb8, savestack=0,
browselevel=0)
    at main.c:306
#7  0x080cb03d in run_Rmainloop () at main.c:685
#8  0x0805d948 in main (ac=1, av=0xbfffb844) at Rmain.c:31

The relevant line in my /etc/sudoers:
mmorales        ALL=(ALL) ALL
#
On 26.04.2005, at 12:52, Manuel.A.Morales@williams.edu wrote:

            
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).

Cheers,
Simon
#
I get no crash after typing signal SIGINT - it just returns me to the R
prompt.
On Tue, 2005-04-26 at 13:14 -0400, Simon Urbanek wrote: