Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68170 - qpkg goes brings the CPU to 100% w/o results.
Summary: qpkg goes brings the CPU to 100% w/o results.
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-19 09:15 UTC by Avuton Olrich
Modified: 2004-12-08 04:43 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 Avuton Olrich 2004-10-19 09:15:21 UTC
app-portage/gentoolkit-0.2.0_pre10
dev-lang/python-2.3.4

When using qpkg on my ~x86 system it goes to 100% w/o results. I'm reading portage off a NFS share, so while doing the qpkg I watch my gkrellm and I see it pull the information from the NFS (takes about 15 seconds), then after all information is downloaded it goes to 100% CPU and stays there until I interrupt it (I usually wait a minute or two before interrupting).

Reproducible: Always
Steps to Reproduce:
1. qpkg kde
2. waiting...
3. waiting...

Actual Results:  
No output at all.

Expected Results:  
Expected a list of KDE packages

Portage 2.0.51_rc9 (default-x86-2004.0, gcc-3.4.2, glibc-2.3.4.20041006-r0, 2.6.
8.1-cko8 i686)
=================================================================
System uname: 2.6.8.1-cko8 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.5.3
distcc 2.18 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux-headers-2.4.22
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
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/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /
usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache digest distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/dis
tributions/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acl acpi aim alsa apm arts audiofile avi berkdb bitmap-fonts crypt 
cups dba dga doc dvd emacs emacs-e3 encode esd f77 flac foomaticdb gd gdbm gif g
nome gpm gtk gtk2 icq imagemagick imlib java jikes joystick jpeg kde libg++ libw
ww mad mikmod motif mozilla mpeg ncurses nls offensive oggvorbis opengl oscar os
s pam pcre pdflib perl php png python qt quicktime readline sdl slang speex spel
l ssl svga tcltk tcpd theora tiff truetype unicode usb videos x86 xinerama xml x
ml2 xmms xosd xprint xv xvid zlib"
Comment 1 SpanKY gentoo-dev 2004-10-20 17:43:24 UTC
run it through strace and see what's going on

if you have a lot of packages emerged (i.e. /var/db/pkg/ has a lot of things), qpkg will take a while
Comment 2 Avuton Olrich 2004-10-20 18:26:41 UTC
After running, it stops at 

-- snip --
read(3, "usr/portage/xfce-extra/xfwm4-the"..., 128) = 128
mremap(0xa7cf0000, 909312, 909312, MREMAP_MAYMOVE) = 0xa7cf0000
read(3, "r/portage/xfce-extra/xfwm4-theme"..., 128) = 124
read(3, "", 128)                        = 0
close(3)                                = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x807fc40, [], 0}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x807fc40, [], 0}, 8) = 0
mmap2(NULL, 909312, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7c12000
munmap(0xa7cf0000, 909312)              = 0
mmap2(NULL, 909312, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7cf0000
munmap(0xa7c12000, 909312)              = 0
mmap2(NULL, 909312, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7c12000
munmap(0xa7cf0000, 909312)              = 0
mmap2(NULL, 909312, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7cf0000
munmap(0xa7c12000, 909312)              = 0
mmap2(NULL, 909312, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7c12000
munmap(0xa7cf0000, 909312)              = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
pipe([3, 5])                            = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
fork()                                  = 11841
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x80814e0, [], 0}, {0x80814e0, [], 0}, 8) = 0
close(5)                                = 0
read(3, 
-- snip -- 

I'm sorry, I'm not familiar with strace, so I ran it without arguments:

strace qpkg kde
Comment 3 Avuton Olrich 2004-10-20 18:27:14 UTC
whoops, no snip at the end ;o
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2004-12-08 04:43:08 UTC
qpkg is deprecated, I won't fix it anymore and will likely remove/replace it
after gentoolkit-0.2.0.