Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 335950 - sys-devel/gcc-4.4.3-r2: hang during emerging / after compilation
Summary: sys-devel/gcc-4.4.3-r2: hang during emerging / after compilation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-04 16:31 UTC by Stefan Bauer
Modified: 2011-11-23 21:26 UTC (History)
1 user (show)

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


Attachments
Output of ps axf (ps_axf.txt,11.52 KB, text/plain)
2010-09-04 16:36 UTC, Stefan Bauer
Details
Output of ps axf when emerging with FEATURES=-sandbox (ps_axf_nosandbox.txt,14.52 KB, text/plain)
2010-09-04 21:31 UTC, Stefan Bauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Bauer 2010-09-04 16:31:37 UTC
This is the continuation of bug 278895. When trying to emerge gcc, one of the processes involved deadlocks after compilation. Note that I used portage-2.1.9 which should have this issue fixed.



Reproducible: Always

Steps to Reproduce:
1. emerge gcc

Actual Results:  
The process deadlocks after compilation.

Expected Results:  
After compilation gcc should get merged.
Comment 1 Stefan Bauer 2010-09-04 16:34:13 UTC
Portage 2.1.9 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.11.2-r0, 2.6.33 i686)
=================================================================
System uname: Linux-2.6.33-i686-Intel-R-_Pentium-R-_M_processor_1.86GHz-with-gentoo-1.12.13
Timestamp of tree: Sat, 04 Sep 2010 10:00:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/portage /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amarok asf aspell bash-completion berkdb bineditor bluetooth bookmarks bzip2 cairo caps captury cdaudio cdda cddax cddb cdio cdr chm cisco cli connection-sharing consolekit cracklib crypt css cups curl cxx dbus dga dhclient djvu dri dts dvd dvdr dvdread dvipdfm embedded encode exif expat expoblending extras faac faad ffmpeg flac fontconfig fortran fts3 gcj gcrypt gd gdbm geoip geolocation gif git gnome-keyring gnutls gphoto2 gps graphics gs gsm gstreamer gtk hal handbook hdaps htmlhandbook iconv icq id3tag idn ieee1394 imagemagick irc irda jabber java java5 java6 jingle jpeg jpeg2k kate kde kipi konqueror kpathsea lame laptop lastfm latex lensfun libass libnl libnotify libsamplerate libssh2 libtiger live lm_sensors lzma mad matroska memoryview mikmod mjpeg mmx mng modules mp2 mp3 mp3tunes mp4 mpeg mplayer mtp musicbrainz ncurses networkmanager new-login nls nptl nptlonly nsplugin nss ogg openal opengl oscar pam pcre pdf plasma plotutils png policykit pppd pstricks python qt3support qt4 quicktime readline redeyes reflection rtsp sasl scanner science scrobbler secure-delete semantic-desktop session shine shout sip sourceview speex spell spl sql sqlite srtp sse sse2 ssl stream subtitles subversion svg sysfs syslog system-sqlite t1lib taglib tcpd templates tex4ht theora threads thumbnail thunar tiff tk toolbar truetype twolame udev unicode urandom usb v4l v4l2 vcd vcdinfo vcdx video vim-syntax visualization vlm vorbis vpnc webkit wifi win32codecs wma-fixed wmf wxwidgets wxwindows x264 x86 xcb xcomposite xft xine xinerama xml xorg xosd xrandr xulrunner xv xvid xvmc zip zlib zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTDIR_OVERLAY

Comment 2 Stefan Bauer 2010-09-04 16:36:58 UTC
Created attachment 245969 [details]
Output of ps axf
Comment 3 Stefan Bauer 2010-09-04 16:44:09 UTC
$ lsof | grep .ipc
emerge 6055 root 3r FIFO 8,7 0t0 2113616 /var/tmp/portage/sys-devel/gcc-4.4.3-r2/.ipc_in
Comment 4 Stefan Bauer 2010-09-04 16:47:33 UTC
$ kill -s SIGUSR1 <emerge pid>

--Return--
> /usr/bin/emerge(28)debug_signal()->None
-> pdb.set_trace()
(Pdb) step
error: (4, 'Interrupted system call')
> /usr/lib/portage/pym/_emerge/PollScheduler.py(105)_poll()
-> self._poll_event_queue.extend(self._poll_obj.poll(timeout))
(Pdb) bt
  /usr/bin/emerge(43)<module>()
-> retval = emerge_main()
  /usr/lib/portage/pym/_emerge/main.py(1672)emerge_main()
-> myopts, myaction, myfiles, spinner)
  /usr/lib/portage/pym/_emerge/actions.py(438)action_build()
-> retval = mergetask.merge()
  /usr/lib/portage/pym/_emerge/Scheduler.py(1039)merge()
-> rval = self._merge()
  /usr/lib/portage/pym/_emerge/Scheduler.py(1355)_merge()
-> self._main_loop()
  /usr/lib/portage/pym/_emerge/Scheduler.py(1504)_main_loop()
-> self._poll_loop()
  /usr/lib/portage/pym/_emerge/PollScheduler.py(136)_poll_loop()
-> f, event = self._next_poll_event()
  /usr/lib/portage/pym/_emerge/PollScheduler.py(124)_next_poll_event()
-> self._poll(timeout)
  /usr/lib/portage/pym/_emerge/Scheduler.py(291)_poll()
-> PollScheduler._poll(self, timeout=timeout)
> /usr/lib/portage/pym/_emerge/PollScheduler.py(105)_poll()
-> self._poll_event_queue.extend(self._poll_obj.poll(timeout))
Comment 5 Stefan Bauer 2010-09-04 16:58:38 UTC
The build log is quite big, so here are the last lines:

libtool: link: /var/tmp/portage/sys-devel/gcc-4.4.3-r2/work/build/gcc/gcj -B/var/tmp/portage/sys-devel/gcc-4.4.3-r2/work/build/i686-pc-linux-gnu/libjava/ -B/var/tmp/portage/sys-devel/gcc-4.4.3-r2/work/build/gcc/ -ffloat-store -fomit-frame-pointer -Usun -O2 -march=pentium-m -pipe -o .libs/gjdoc --main=gnu.classpath.tools.gjdoc.Main -Djava.class.path=/usr/share/antlr/lib/antlr.jar -shared-libgcc  -L/var/tmp/portage/sys-devel/gcc-4.4.3-r2/work/build/i686-pc-linux-gnu/libjava/.libs -L/var/tmp/portage/sys-devel/gcc-4.4.3-r2/work/build/i686-pc-linux-gnu/libjava ./.libs/libgcj-tools.so -Wl,-rpath -Wl,/usr/lib
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.3-r2/work/build/i686-pc-linux-gnu/libjava'
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.3-r2/work/build/i686-pc-linux-gnu/libjava'
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.3-r2/work/build'
Comment 6 Zac Medico gentoo-dev 2010-09-04 17:24:10 UTC
(In reply to comment #2)
> Created an attachment (id=245969) [details]
> Output of ps axf

This output shows that it's hung in an emake call from the src_compile function, so there's nothing portage/emerge can do about it.

(In reply to comment #3)
> $ lsof | grep .ipc
> emerge 6055 root 3r FIFO 8,7 0t0 2113616
> /var/tmp/portage/sys-devel/gcc-4.4.3-r2/.ipc_in

This is correct behavior for emerge. It should listen there until the src_compile function completes.
Comment 7 SpanKY gentoo-dev 2010-09-04 18:44:53 UTC
try FEATURES=-sandbox
Comment 8 Stefan Bauer 2010-09-04 21:31:27 UTC
Created attachment 246046 [details]
Output of ps axf when emerging with FEATURES=-sandbox

Same result with -sandbox
Comment 9 Stefan Bauer 2011-11-23 21:26:32 UTC
I'm unable to reproduce this with recent gcc/portage versions, closing.