Skip to content
Prev 15971 / 63433 Next

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

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