Re: 2.6.25.3: su gets stuck for root

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Vegard Nossum
Date: Thursday, June 12, 2008 - 4:52 am

On Wed, Jun 11, 2008 at 4:04 PM, Joe Peterson <joe@skyrush.com> wrote:

I think knowing the pgrps of the above processes (there is possibly
one more involved, stty?) would be useful; try:

    $ ps -eo pid,pgrp,tpgid,user,args

..as this problem occurs because a process tries to change the
terminal settings (and subsequently gets suspended because of that)
while it's not the owner of the terminal.

This can happen if you fork something off to the background, e.g. like

    $ stty 9600 &

(which should immediately give you [1]+ Stopped stty 9600),

so can you please look for anything like that in your login scripts or
shell rc files?

I don't know any other way to debug this further, sorry :-(

Thanks.


Vegard

-- 
"The animistic metaphor of the bug that maliciously sneaked in while
the programmer was not looking is intellectually dishonest as it
disguises that the error is the programmer's own creation."
	-- E. W. Dijkstra, EWD1036
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Sun Jun 1, 6:31 pm)
Re: 2.6.25.3: su gets stuck for root, Harald Dunkel, (Sun Jun 1, 10:12 pm)
Re: 2.6.25.3: su gets stuck for root, Willy Tarreau, (Sun Jun 1, 10:32 pm)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Sun Jun 1, 10:42 pm)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Sun Jun 1, 10:55 pm)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Mon Jun 2, 1:10 am)
Re: 2.6.25.3: su gets stuck for root, David Newall, (Mon Jun 2, 2:01 am)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Mon Jun 2, 2:20 am)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Mon Jun 2, 3:16 am)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Mon Jun 2, 3:39 am)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Mon Jun 2, 3:50 am)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Mon Jun 2, 3:52 am)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Mon Jun 2, 3:57 am)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Mon Jun 2, 5:28 am)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Mon Jun 2, 7:31 am)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Mon Jun 2, 8:26 am)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Mon Jun 2, 8:51 am)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Mon Jun 2, 9:03 am)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Wed Jun 4, 7:43 am)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Wed Jun 4, 8:16 am)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Wed Jun 4, 9:52 am)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Wed Jun 4, 10:10 am)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Wed Jun 4, 1:32 pm)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Wed Jun 11, 7:04 am)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Thu Jun 12, 4:52 am)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Fri Jun 13, 6:49 pm)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Sat Jun 14, 12:45 am)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Sat Jun 14, 10:43 am)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Sat Jun 14, 1:34 pm)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Sat Jun 14, 1:52 pm)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Sat Jun 14, 2:26 pm)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Sat Jun 14, 2:34 pm)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Tue Jun 17, 8:32 am)