Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64787 - Bash prompt hangs
Summary: Bash prompt hangs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-20 13:00 UTC by Kenny Bentley
Modified: 2004-09-21 17:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenny Bentley 2004-09-20 13:00:29 UTC
After updating my gcc to 3.4 and glibc, I noticed that the bash prompt hangs. I have a feeling it is a problem with glibc, not bash (see the forum topic) so I'm going to try reverting back to glibc-2.3.3, and post back here later with the results (I'm on a 350MHz machine, so it may take a while :))



Reproducible: Always
Steps to Reproduce:
1. emerge glibc-2.3.4.20040918, gcc-3.4.1-r3, bash-3.0-r5
2. open a new bash window and run a command such as "ls"
3. 

Actual Results:  
it doesn't return me to the prompt so I can issue another command, and looking
in top, I notice that it's at 100% processor usage


Portage 2.0.51_rc1 (default-x86-2004.0, gcc-3.4.1, glibc-2.3.4.20040918-r0,
2.6.8.1-mm4 i686)
=================================================================
System uname: 2.6.8.1-mm4 i686 Pentium II (Deschutes)
Gentoo Base System version 1.5.3
distcc 2.17 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium2 -fomit-frame-pointer -pipe -ftracer
-fmerge-all-constants -ffast-math -fforce-addr -falign-functions=16
-falign-labels=1 -falign-loops=16 -falign-jumps=16"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config
/usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium2 -fomit-frame-pointer -pipe -ftracer
-fmerge-all-constants -ffast-math -fforce-addr -falign-functions=16
-falign-labels=1 -falign-loops=16 -falign-jumps=16"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://gentoo.osuosl.org/"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X apm arts avi berkdb bitmap-fonts crypt cups dba encode esd foomaticdb gd
gd-external gdbm gif gmp gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww
mad mikmod motif mozcalendar mozilla mpeg mysql ncurses nls nptl oggvorbis
opengl oss pam pdflib perl pic png python qt quicktime readline samba sdl
session slang spamassassin spell sqlite ssl svga tcltk tcpd truetype x86 xml2
xmms xprint xv zlib"
Comment 1 Scott Taylor (RETIRED) gentoo-dev 2004-09-20 17:04:44 UTC
you're not alone. it is recoverable though. you don't have to go that far back on glibc. there is 2.3.4.20040808 that works fine. I believe if you emerge sync, the 20040918 is masked now leaving 0808 as the default. 

until you get it fixed, i found it worked well to be on another machine and use "ssh 1.2.3.4 command" to trigger the one program you get to run each time, and it actually closes nicely on completion too...
Comment 2 Kenny Bentley 2004-09-20 17:51:29 UTC
I just synced and it was still unmasked, but thanks for the tip! I'll install that one instead.

I was a little more fortunate than you. I use screen, and I had a screen session with 3 bash consoles open that are from before I did the update, so I'm all good for now. Any new ssh connections I make to the computer result in bash not working. I do have a stray bash process running at 100% processor usage, so I just reniced it to 19, and I have dual processors, so the system is still quite usable.
Comment 3 Travis Tilley (RETIRED) gentoo-dev 2004-09-21 17:48:49 UTC
i've backported the necessary nptl pthread fixes from the new snapshot to 0808, so i'm removing this buggy snapshot. and yes, it was masked -*