Package: emacs23-nox Version: 23.2+1-7 Severity: normal Steps to reproduce: 1) sudo emacs -nw -q --no-splash -f kill-emacs
Expected results: 1) emacs starts as root and quits immediately Actual results: 1) emacs is immediately stopped and won't continue even with fg: lindi@debian:~$ sudo emacs -nw -q --no-splash -f kill-emacs [sudo] password for lindi: [1]+ Stopped sudo emacs -nw -q --no-splash -f kill-emacs lindi@debian:~$ fg sudo emacs -nw -q --no-splash -f kill-emacs [1]+ Stopped sudo emacs -nw -q --no-splash -f kill-emacs More info: 1) "emacs -nw -q --no-splash -f kill-emacs" without "sudo" works. 2) "sudo bash" and then "emacs -nw -q --no-splash -f kill-emacs" works. 3) this used to work a few months ago 4) process list shows: lindi@debian:~$ ps --forest -eo pid,user,state,cmd | grep -B1 -A2 sud[o] 1367 lindi S \_ /bin/bash 1383 root T \_ sudo emacs -nw -q --no-splash -f kill-emacs 1385 root T | \_ emacs -nw -q --no-splash -f kill-emacs 1414 lindi R \_ grep -B1 -A2 sud[o] 5) I tried to save the syscalls with lindi@debian:~$ sudo ktrace -f ktrace.out -d -p $$ lindi@debian:~$ sudo emacs -nw -q --no-splash -f kill-emacs [1]+ Stopped sudo emacs -nw -q --no-splash -f kill-emacs lindi@debian:~$ sudo ktrace -c -p $$ lindi@debian:~$ sudo kdump -f ktrace.out > sudo-emacs1.ktrace and attached "sudo-emacs1.ktrace.xz" but it unfortunately does not seem to be following forks fully despite "-d". 6) "sudo vi" works 7) "sudo top" works -- System Information: Debian Release: 6.0 APT prefers stable APT policy: (500, 'stable') Architecture: kfreebsd-i386 (i686) Kernel: kFreeBSD 8.1-1-686 Locale: LANG=C, LC_CTYPE=fi_FI (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/dash Versions of packages emacs23-nox depends on: ii emacs23-bin-common 23.2+1-7 The GNU Emacs editor's shared, arc ii libc0.1 2.11.2-10+b1 Embedded GNU C Library: Shared lib ii libdbus-1-3 1.2.24-4 simple interprocess messaging syst ii libncurses5 5.7+20100313-5 shared libraries for terminal hand emacs23-nox recommends no packages. Versions of packages emacs23-nox suggests: pn emacs23-common-non-dfsg <none> (no description available) -- no debconf information
sudo-emacs1.ktrace.xz
Description: Binary data

