When trying to emerge something or just trying to run a python interpreter the process hangs and cannot be killed. The terminal gets unusable and python won't work anymore until a computer reboot. Reproducible: Sometimes Steps to Reproduce: 1. to keep a machine running for days 2. to try to call the python interpreter 3. it happens Actual Results: It hangs the terminal and cannot be killed (control +c does not work and kill -9 does not work either). Expected Results: Just to run the interpreter as expected. Cannot paste emerge info now because my python interpreter hanged and as this machine is in a production environment I cannot reboot it now.
Additional information I can report without rebooting the machine: Linux 2.6.7-hardened-r2 #1 Mon Jul 12 22:17:12 CEST 2004 i686 Pentium III (Katmai) GenuineIntel GNU/Linux gcc version 3.3.4 20040623 (Gentoo Hardened Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6) glibc 2.3.3-20040420-r2
sounds like hardware/kernel problem when it hangs, what does `ps aux` show about python ? anything fun/interesting in `dmesg` ?
Well, ps aux shows D+ as the status of the (at this moment) hanged python processes: root 9832 0.0 3.5 11296 7980 pts/40 D+ 10:46 0:02 /usr/bin/python -O /usr/bin/emerge -uav glibc root 17076 0.0 0.8 3712 1992 pts/125 D+ 11:52 0:00 /usr/bin/python -O /usr/bin/emerge -s ^glibc$ root 9790 0.0 0.8 3724 1992 pts/43 D+ 12:16 0:00 python No interesting output from dmesg. How could be a hardware problem?
that D means that python is stuck by the kernel did this just start happening ? emerge info ? is your portage tree on a nfs mount or something ?
Finally I needed to reboot the machine pressing the reset button because reboot command did not work. -- Portage 2.0.51_rc9 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r2, 2.6.7-hardened-r2 i686) ================================================================= System uname: 2.6.7-hardened-r2 i686 Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=i686 -funroll-loops -ftracer -pipe -fomit-frame-pointer -fstack-protector" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=i686 -funroll-loops -ftracer -pipe -fomit-frame-pointer -fstack-protector" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache distlocks keepwork sandbox userpriv usersandbox" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/home/portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="GAPING_SECURITY_HOLE acl acpi apache2 berkdb bitmap-fonts chroot crypt doc encode etdyn exiscan exiscan-acl f77 fam gd gdbm gif hardened imap imlib innodb ipv6 jabber jpeg ldap libg++ libwww maildir mbox memlimit mmx mpeg msn mysql ncurses nls nptl oav odbc openssh oss pam pdflib perl php pic pie png prelude pthreads python readline sasl slang snmp spell sse ssl svga tcpd threads tiff truetype vda vhosts virus-scan x86 xml2 xprint zlib" -- Now I think it must be something kernel related because of the failure of some commands like 'sync' (which also hanged).
Any clues in "dmesg" when this happens?
Please reopen with requested info.