Bug 42555 - stty in /etc/bashrc hangs when called from su -
stty in /etc/bashrc hangs when called from su -
Status: CLOSED DUPLICATE of bug 37615
Product: Red Hat Linux
Classification: Retired
Component: sh-utils (Show other bugs)
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-05-28 05:19 EDT by Joerg Dorchain
Modified: 2007-04-18 12:33 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-05-28 05:19:15 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Joerg Dorchain 2001-05-28 05:19:11 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.4 i686; Nav)

Description of problem:
The stty command in /etc/bashrc hangs (strace says loops with -ERESTARTSYS)
when doing an su - <user> as root from a vt or a network login (xterm and
gnome-termnial work oddly, as well as stracing with strace -f su - <user>)
as root.

How reproducible:

Steps to Reproduce:
1. Login as root on a console virtual terminal
2. su - <some other user>
3. There you are

Actual Results:  nothing directly visible. The process list shows a stty in
T state. Tracing this back leads to the stty in /etc/bashrc.

Expected Results:  Get a login like enviroment for the other user.

Additional info:

Both su and stty are from sh-utils-2.0-13
Kernel is 2.4.4 from kernel.org
glibc is 2.2.2-10
Comment 1 Bernhard Rosenkraenzer 2001-05-28 08:15:38 EDT

*** This bug has been marked as a duplicate of 37615 ***

Note You need to log in before you can comment on or make changes to this bug.