Re: 2.6.25.3: su gets stuck for root

Willy Tarreau
2008-05-20T20:39:03Z

On Tue, May 20, 2008 at 10:26:16PM +0200, Harald Dunkel wrote:
> david@lang.hm wrote:
> >
> >try killing syslog and then see if you continue to have the problem.
> >It's possible that what's happening is syslog is getting stuck and su is
> >sitting waiting for syslog to process the log entry.
> >
>
> No improvement: I killed syslogd, and yet stty gets stuck.
>
> But surely it was a smart idea.

have you checked in /proc/$(pidof stty)/fd/ to see if stty is bound to
any particular file descriptor ? Maybe you'll find the source of the
blocking operation here. You can find a unix socket attached to
another process, it may be a tty, a pipe, or even a device (eg:
/dev/random when there is no entropy left). Same for "su" BTW.

Regards,
willy