I use tmux on my server. tmux creates multiple pttys. When I run finger, I see an error like this: $ finger
finger: /dev//pts/6: No such file or directory
and in the log, I see: /var/log/syslog:Mar 15 05:06:18 strange kernel: [2740248.159942] finger[1987858]: segfault at 1c ip 000055b1c20baad5 sp 00007ffc8878b8b0 error 4 in finger[55b1c20b9000+3000] likely on CPU 1 (core 1, socket 0)
/var/log/syslog:Mar 15 05:06:18 strange kernel: [2740248.161979] Code: 7b 20 00 0f 85 cc fe ff ff 31 c0 48 8d 3d 80 18 00 00 e8 7e 0f 00 00 83 7b 08 01 0f 85 d0 fe ff ff 48 8d 7b 18 e8 8b e8 ff ff <8b> 70 1c 85 f6 0f 85 d0 00 00 00 8b 70 08 8b 50 04 85 f6 0f 85 f2
I do not see pts/6 being used: $ w
04:56:14 up 31 days, 17:01, 6 users, load average: 0.68, 0.20, 0.06
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
mgrant pts/0 1.2.3.4 Tue12 7:53m 0.32s 0.32s -tcsh
mgrant pts/1 1.2.3.4 03:57 3.00s 0.03s 0.03s tmux attach
mgrant pts/2 tmux(1243630).%0 02Mar24 3.00s 0.18s 0.01s w
mgrant pts/3 tmux(1243630).%1 02Mar24 12days 29.02s 29.02s emacs
mgrant pts/4 tmux(1243630).%2 04Mar24 32:52m 0.05s 0.05s -bash
w reports one more user than there seems to be in the utmp. I didn't close a tmux window but i have disconnected and reconnected several times. If I start enough tmux windows and one happens to end up on the missing pts, the error goes away. I'm not sure if this is a bug in finger, tmux, or something that manages the utmp getting out of sync. Any ideas what to do about this? Michael Grant |