Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27106 - make menuconfig "hangs"
Summary: make menuconfig "hangs"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-22 03:49 UTC by Mark E. Drummond
Modified: 2003-09-20 05:22 UTC (History)
0 users

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


Attachments
Kernel config file (.config,21.82 KB, text/plain)
2003-08-22 16:07 UTC, Mark E. Drummond
Details
strace -f make menuconfig (strace.txt,1.88 MB, text/plain)
2003-08-26 18:15 UTC, Mark E. Drummond
Details
strace -f -p [pid] against the running make menuconfig (strace.out,1.40 MB, text/plain)
2003-09-16 17:40 UTC, Mark E. Drummond
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark E. Drummond 2003-08-22 03:49:54 UTC
I emerged the -r6 release of gentoo-sources. When I run make menuconfig, it hangs 
after "Parsing scripts". Here is the output: 
 
--QUOTE-- 
rm -f include/asm 
( cd include ; ln -sf asm-i386 asm) 
make -C scripts/lxdialog all 
make[1]: Entering directory `/usr/src/linux-2.4.20-gentoo-r6/scripts/lxdialog' 
make[1]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r6/scripts/lxdialog' 
/bin/sh scripts/Menuconfig arch/i386/config.in 
Using defaults found in arch/i386/defconfig 
Preparing scripts: functions, 
parsing........................................................................................done. 
--ENDQUOTE-- 
 
It just sits there and I have to ^C it. I am trying to recompile my kernel as a 
potential solution to my other bug, #27105 (dup of 27104 I think). 
 
Mark 

Reproducible: Always
Steps to Reproduce:
1. cd /usr/src/[kernel-source] 
2. make menuconfig 
3. 



Portage 2.0.49_pre18 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r5) 
================================================================= 
System uname: 2.4.20-gentoo-r5 i686 Pentium II (Deschutes) 
GENTOO_MIRRORS="http://adelie.polymtl.ca/ ftp://cs.ubishops.ca/pub/gentoo 
ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/ http://www.ibiblio.org/gentoo" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /opt/tomcat/conf 
/usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ 
/usr/share/texmf/tex/platex/config/ /usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
PORTDIR="/usr/portage" 
DISTDIR="/usr/portage/distfiles" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR_OVERLAY="" 
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg gnome libg++ mad 
mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib 
directfb gtkhtml alsa gdbm berkdb slang readline arts tetex aalib nas bonobo svga 
ggi tcltk java guile ruby mysql postgres X sdl gpm tcpd pam libwww ssl perl python 
esd imlib oggvorbis gtk qt kde motif opengl gphoto2 cdr scanner acl apache2 athena 
cscope curl dga dvd fbcon gb gd imap innodb ipv6 jikes junit kerberos ldap libgda 
maildir mbox mcal pda plotutils ppds samba sasl slp snmp socks5 sse tiff usagi usb 
vim-with-x wmf Xaw3d xinerama -3dnow" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-march=pentium2 -O2 -pipe" 
CXXFLAGS="-march=pentium2 -O2 -pipe" 
ACCEPT_KEYWORDS="x86 ~x86" 
MAKEOPTS="-j3" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage" 
FEATURES="sandbox ccache distcc"
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2003-08-22 05:33:27 UTC
Is this under a gnome-terminal? If so use xterm to rebuild your kernel. I had this bug before, I couldn't point to why it happened, but... if you copy 'x11-libs/vte-0.10.29.ebuild' to 'x11-libs/vte-0.11.10.ebuild' and merge that, that might work: it worked for me. Oh, and upgrade 'ncurses' as well.
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2003-08-22 05:39:00 UTC
Gnome Team: Can you please have a look at this. This might not be a gnome-terminal problem but it turned out to be one for me. Details are in the first comment...
Comment 3 Spider (RETIRED) gentoo-dev 2003-08-22 05:49:27 UTC
ok, I emerged the same sources here and in gnome-terminal did "make menuconfig"  and it worked without a hitch here...  Not sure what was behind this behaviour..
x11-terms/gnome-terminal-2.2.2  or the version...
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2003-08-22 06:04:10 UTC
As far as I can remember, [before I fixed this] this started happening when I upgraded something. Probably gnome-terminal or that vte [Virtual Terminal Emulator  "Xft powered terminal widget"] library...

This happened to me with a whole bunch of kernel versions so I don't think it's a kernel bug.
Comment 5 foser (RETIRED) gentoo-dev 2003-08-22 06:42:50 UTC
plasmaroo please stop adding us to bugs without a good reason (this is the second i see today), without a positive reply by the reporter this all assumption based reasoning.
Comment 6 Mark E. Drummond 2003-08-22 07:02:54 UTC
I was doing this from the console (a VC) not within X. I tried re-emerging 
ncurses too, but no dice. 
 
Mark 
Comment 7 Mark E. Drummond 2003-08-22 07:05:20 UTC
Perhaps a salient point, this machine is a *bit* out of date ... I have not 
"emerge -uD world"'d it in a while ... there are about 135 packages which need 
updating. 
 
Mark 
Comment 8 Tim Yamin (RETIRED) gentoo-dev 2003-08-22 09:09:00 UTC
Are you using a framebuffer of some sort?
Comment 9 Mark E. Drummond 2003-08-22 10:15:38 UTC
Yes. The VESA console framebuffer. vga=794 (1280x1024x24bit I think). 
 
Mark 
Comment 10 Mark E. Drummond 2003-08-22 10:16:45 UTC
I took Gnome off the cc list. I don't use Gnome at all so I doubt they should 
be involved. 
 
Mark 
Comment 11 Tim Yamin (RETIRED) gentoo-dev 2003-08-22 12:26:44 UTC
Hmmm... Can you please attach your kernel .config?
Comment 12 Tim Yamin (RETIRED) gentoo-dev 2003-08-22 12:26:59 UTC
Also, do you get this if you use another kernel?
Comment 13 Mark E. Drummond 2003-08-22 12:49:54 UTC
I don't have a .config. Through a little comedy of errors in going from 
gentoo-sources -r5 to -r6 I lost my .config. I'll try running make xconfig 
tonight when I get home. 
 
Mark 
Comment 14 Mark E. Drummond 2003-08-22 16:07:37 UTC
Created attachment 16483 [details]
Kernel config file

make xconfig works fine. Just building this kernel now so I hope I got all the
options right.
Comment 15 Tim Yamin (RETIRED) gentoo-dev 2003-08-26 15:44:22 UTC
Kernel config looks fine to me. Can you please strace the running process which is hanging  [ probably the one which is eating up your cpu ].
Comment 16 Mark E. Drummond 2003-08-26 18:15:26 UTC
Created attachment 16659 [details]
strace -f make menuconfig

strace output of make menuconfig. The new kernel (gentoo-sources-2.4.20-r6) is
working fine, but make menuconfig still does not work.
Comment 17 Mark E. Drummond 2003-09-16 17:27:24 UTC
Just FYI, the -r7 release of gentoo-sources was pulled down to the machine in 
question during a recent emerge -u. 
 
I tried running make menuconfig inside the new release ... same results. 
 
Mark 
Comment 18 Mark E. Drummond 2003-09-16 17:36:35 UTC
Here is something I did not notice before ... if I leave make menuconfig 
running it is consuming ~50% of my CPU: 
 
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND 
20847 root      25   0  2404 2404 2324 S 44.0  0.7   1:39.70 /bin/sh 
scripts/Menuconfig arch/i386/config.in 
 
I am going to attach a strace to the running process and upload it here. Maybe 
there will be something useful in there. 
 
Mark 
Comment 19 Mark E. Drummond 2003-09-16 17:40:57 UTC
Created attachment 17834 [details]
strace -f -p [pid] against the running make menuconfig
Comment 20 Tim Yamin (RETIRED) gentoo-dev 2003-09-17 05:11:38 UTC
I've had a quick scan of it and it looks like something is causing a SIGINT [illegal instruction]. Can you please recompile all of the following without any CPU optimizations: binutils gcc glibc ncurses. Are you using "pentium4" or "anthlonxp" for your optimizations by any chance? If so, upgrade portage, run etc-update and read the warning signs :-)
Comment 21 Mark E. Drummond 2003-09-17 16:59:30 UTC
The machine in question is a P-II 400 and my CFLAGS and CXXFLAGS are both set to "-march=pentium2 -O2 -pipe". Do you think I should still recompile with no optimizations? Or maybe I just need to recompile those (with or without optimizations) because something is "wrong"? I ran into this on my laptop where I needed to go back a re-emerge berkdb1 which was somehow causing my emerge of gnome-libs to die (actually have not verified that yet ... trying to re-emerge now but anyway ...)

Mark
Comment 22 Mark E. Drummond 2003-09-20 03:02:24 UTC
Fixed by re-emerging ncurses. 
 
Mark 
Comment 23 Tim Yamin (RETIRED) gentoo-dev 2003-09-20 05:22:40 UTC
Resolving. Thanks.