Hello,
something odd just happened.
I tend to keep an emacs -nw session running in a ssh session on a
remote server (yeah, sorry, haven't got my head round 'screen'
yet..;-)
And that is all fine until just now.
I had been doing various stuff inside the emacs , including running
emacs shell windows. Then wanted to set up a cron job.
Now I know better than to try a 'crontab -e' from within an emacs
shell window (since $EDITOR is "emacs -nw"), so I went to another
terminal, did another ssh to that server, and said crontab -e at the
shell prompt. And that shell just stuck; and meanwhile so did my emacs
session. Eventually needed a 3rd shell window to do ps and kill on the
emacs sessions (actually two emacsen, the original one and one for the
crontab edit).
And now, since then whenever I try to run emacs, the shell session
just locks up.
I tried doing a 'strace emacs -nw', and see continuous output of these
lines: (sorry, I don't know what the format should look like. This was
all over my screen with no CR/linefeeds)
--- SIGIO (I/O possible) @ 0 (0) ---
ioctl(0, FIONREAD, [0]) = 0
sigreturn() = ? (mask now [WINCH])
--- SIGIO (I/O possible) @ 0 (0) ---
ioctl(0, FIONREAD, [0]) = 0
sigreturn() = ? (mask now [WINCH])
.. and so on indefinitely, the same lines repeating - until I kill
the emacs and strace commands from another terminal, when some other
stuff comes up:
fstat64(3, {st_mode=S_IFREG|0644, st_size=3032, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f26000
_llseek(3, 0, [0], SEEK_CUR) = 0
readlink("/usr", 0x85b5b58, 100) = -1 EINVAL (Invalid argument)
readlink("/usr/share", 0x85b5b58, 100) = -1 EINVAL (Invalid argument)
readlink("/usr/share/emacs", 0x85b5b58, 100) = -1 EINVAL (Invalid argument)
readlink("/usr/share/emacs/22.1", 0x85b5b58, 100) = -1 EINVAL (Invalid argument)
readlink("/usr/share/emacs/22.1/site-lisp", "../../emacs22/site-lisp", 100) = 23
brk(0x85b7000) = 0x85b7000
readlink("/usr/share/emacs22", 0x85b6388, 100) = -1 EINVAL (Invalid argument)
readlink("/usr/share/emacs22/site-lisp", 0x85b6388, 100) = -1 EINVAL
(Invalid argument)
readlink("/usr/share/emacs22/site-lisp/debian-startup.elc", 0x85b6388,
100) = -1 EINVAL (Invalid argument)
read(3, ";ELC\24\0\0\0\n;;; Compiled by root@qg"..., 4096) = 3032
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb7f26000, 4096) = 0
brk(0x85b8000) = 0x85b8000
open("/etc/emacs22/site-start.d",
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
getdents64(3, /* 3 entries */, 4096) = 88
getdents64(3, /* 0 entries */, 4096) = 0
close(3) = 0
open("/etc/emacs/site-start.d",
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
getdents64(3, /* 6 entries */, 4096) = 224
brk(0x85ba000) = 0x85ba000
brk(0x85bb000) = 0x85bb000
getdents64(3, /* 0 entries */, 4096) = 0
close(3) = 0
stat64("/etc/emacs22/site-start.d/00debian-vars.elc",
{st_mode=S_IFREG|0644, st_size=1446, ...}) = 0
open("/etc/emacs22/site-start.d/00debian-vars.elc", O_RDONLY|O_LARGEFILE) = 3
read(3, ";ELC\24\0\0\0\n;;; Compiled by root@qg"..., 511) = 511
_llseek(3, 0, [0], SEEK_SET) = 0
stat64("/etc/emacs22/site-start.d/00debian-vars.elc",
{st_mode=S_IFREG|0644, st_size=1446, ...}) = 0
stat64("/etc/emacs22/site-start.d/00debian-vars.el", 0xbff15d9c) = -1
ENOENT (No such file or directory)
fcntl64(3, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat64(3, {st_mode=S_IFREG|0644, st_size=1446, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7f26000
llseek(3, 0, [0], SEEK_CUR) = 0
write(1, "\33[?1049h\33[?12;25h\33[?1h\33=\33[46;1H\33"..., 37
.. which kind of looks like it is associated with the start up rather
than the finishing.
So this has me beat.
I call this a 'server' but actually it is a desktop running Gnome
under Ubuntu (8.10) and quite a bit of other stuff too.
qg@qg_backup:~$ pstree
init─┬─NetworkManager
├─NetworkManagerD
├─SystemToolsBack
├─acpid
├─apache2─┬─apache2
│ └─2*[apache2───26*[{apache2}]]
├─atd
├─avahi-daemon───avahi-daemon
├─bonobo-activati───{bonobo-activati}
├─console-kit-dae───61*[{console-kit-dae}]
├─cron
├─cupsd
├─4*[dbus-daemon]
├─dbus-launch
├─dd
├─dhcdbd
├─dhclient3
├─drivemount_appl
├─elogd
├─evolution-excha───{evolution-excha}
├─firefox───6*[{firefox}]
├─gcalctool
├─gconfd-2
├─gdm───gdm─┬─Xorg
│ └─x-session-manag─┬─bluetooth-apple
│ ├─gnome-panel
│ ├─gnome-settings-─┬─pulseaudio───gconf-helper
│ │ └─{gnome-settings-}
│ ├─metacity
│ ├─nautilus
│ ├─nm-applet
│ ├─python
│ ├─seahorse-agent
│ ├─tracker-applet
│ ├─trackerd───{trackerd}
│ ├─update-notifier
│ └─{x-session-manag}
├─6*[getty]
├─gnome-keyring-d
├─gnome-power-man
├─gnome-screensav
├─gnome-terminal─┬─4*[bash]
│ ├─2*[bash───ssh]
│ ├─gnome-pty-helpe
│ └─{gnome-terminal}
├─gnome-vfs-daemo
├─gnome-vfs-daemo───2*[{gnome-vfs-daemo}]
├─gnome-volume-ma
├─2*[gvfsd]
├─2*[gvfsd-burn]
├─gvfsd-computer
├─gvfsd-dnssd
├─gvfsd-network
├─gvfsd-smb
├─gvfsd-smb-brows
├─2*[gvfsd-trash]
├─hald───hald-runner─┬─hald-addon-acpi
│ ├─hald-addon-inpu
│ └─hald-addon-stor
├─klogd
├─master─┬─pickup
│ ├─qmgr
│ └─tlsmgr
├─mdadm
├─multiload-apple
├─notification-da
├─ntpd
├─saslauthd───4*[saslauthd]
├─sshd─┬─sshd───sshd───bash───pstree
│ └─2*[sshd───sshd───bash]
├─syslogd
├─system-tools-ba
├─trackerd───2*[{trackerd}]
├─trashapplet
├─udevd
├─winbindd───winbindd
└─xfstt
This is a remote machine so rebooting it would not be convenient and a
last resort. Any comments from anyone?
thanks!