[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

corruption in /var/run/utmp




This is on a debian system first of all.

I have recently started having problems with 'top'.

I would run 'top' and it would error out.  I have 'strace'd it and here's
what is stuffed at the end:

read(5, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 56) =
read(5, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
read(5, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 56) =
read(5, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
read(5, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 56) =
read(5, ")w\0\0\200\1772<r\6\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
write(2, "bad data in /var/run/utmp", 25) = 25
write(1,"\33[H\33[J\33[H\33[1m", 13)  = 13
_exit(1)

I cleared out /var/run/utmp - reset the ownsership and permissions and
then login with ssh.  Running top right after that again results in the
above problems.  Anyone ever seen this before?


------------------------------------------------------------------------
| Mark Bishop  (mark@bish.net)         |             Computer Engineer |
| 813-253-2197                         |             Network Engineer  |
| http://bish.net                      |          Embedded Programmer  |


-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.