Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 186876

Summary: Out of pty devices after checksums validation during gentoo installation
Product: Portage Development Reporter: Krzysztof Sroka <krzysztof.sroka>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: critical Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
URL: http://pastebin.com/m8324c2
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 181949    
Attachments: disable pty logging
the traceback, OSError: out of pty devices
fall back it os.pipe() if pty.openpty() fails

Description Krzysztof Sroka 2007-07-28 10:28:49 UTC
After emerging to newest portage (2.1.3) during installation of Gentoo Linux from LiveCD, the 'emerge' command fails to install anything. It raises error "OSError: out of pty devices" just after validating checksums of downloaded files.

Reproducible: Always

Steps to Reproduce:
1. Sync the portage tree
2. Emerge portage (2.1.3)
3. Try to emerge anything.

Actual Results:  
OS Error thrown.

Expected Results:  
Emerge succeedes?

This can be a hardware issue, it happens on my HP/Compaq nx7300 laptop. Still, it works with portage 2.1.2.9.
Comment 1 Krzysztof Sroka 2007-07-28 10:31:27 UTC
Portage 2.1.2.9 (default-linux/x86/2007.0/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 Intel(R) Core(TM)2 CPU         T5500  @ 1.66GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 28 Jul 2007 09:00:01 +0000
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.61
sys-devel/automake:  1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -mmmx -msse -msse2 -mfpmath=sse -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -march=prescott -mmmx -msse -msse2 -mfpmath=sse -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://src.gentoo.pl ftp://pandemonium.tiscali.de/pub/gentoo/ http://ftp.heanet.ie/pub/gentoo/"
LINGUAS="pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amarok aoss apache2 arts bash-completion berkdb bitmap-fonts bluetooth branding bzip2 cairo cdparanoia cdr cli cracklib crypt css ctype cups dbus dri dvd dvdr dvdread eds emacs emboss emovix enca encode evo exif fam firefox flac fortran ftp gadu gdbm gg gif gimp gpm hal hardenedphp iconv imagemagick innodb ipv6 isdnlog jabber java java5 javascript jpeg junit kde kerberos lame ldap leim libg++ mad maps midi mikmod mime mmap mmx mmxext mng mozilla mp3 mpeg mplayer mudflap musepack music musicbrainz mysql ncurses network nls nocd nptl nptlonly nsplugin ntfs nvidia ogg opengl openmp oss pam pcre pdf perl php png postgres pppd python qt3 qt3support quicktime readline reflection samba scenarios sdl session smime sms sounds spell spl sqlite sqlite3 sse sse2 ssl subversion svg svga tcpd theora tidy tiff tokenizer trayicon truetype truetype-fonts type1-fonts unicode unzip usb v4l v4l2 vorbis win32codecs x86 xchattext xface xine xinerama xml xorg xv xvid zlib" 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" USERLAND="GNU" VIDEO_CARDS="nvidia vga vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 2 Zac Medico gentoo-dev 2007-07-28 11:07:22 UTC
Created attachment 126215 [details, diff]
disable pty logging

With this patch it won't try to use any pty devices.  If you save the patch as /tmp/no_pty.patch then you can apply it like this:

patch /usr/lib/portage/pym/portage.py < /tmp/no_pty.patch

I've masked portage-2.1.3 to prevent more people from hitting this bug.
Comment 3 Zac Medico gentoo-dev 2007-07-28 11:11:41 UTC
Created attachment 126217 [details]
the traceback, OSError: out of pty devices
Comment 4 Zac Medico gentoo-dev 2007-07-28 22:54:48 UTC
Created attachment 126277 [details, diff]
fall back it os.pipe() if pty.openpty() fails

This is patch is better than the other one.  It's in svn r7423.
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-30 13:59:58 UTC
This bug should probably block bug 181949.
Comment 6 Zac Medico gentoo-dev 2007-08-01 23:31:18 UTC
This has been released in 2.1.3.1.