Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 186876 - Out of pty devices after checksums validation during gentoo installation
Summary: Out of pty devices after checksums validation during gentoo installation
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Portage team
Keywords: InVCS
Depends on:
Blocks: 181949
  Show dependency tree
Reported: 2007-07-28 10:28 UTC by Krzysztof Sroka
Modified: 2007-08-01 23:31 UTC (History)
0 users

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

disable pty logging (no_pty.patch,522 bytes, patch)
2007-07-28 11:07 UTC, Zac Medico
Details | Diff
the traceback, OSError: out of pty devices (m8324c2.txt,1.85 KB, text/plain)
2007-07-28 11:11 UTC, Zac Medico
fall back it os.pipe() if pty.openpty() fails (no_pty.patch,1.24 KB, patch)
2007-07-28 22:54 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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
Comment 1 Krzysztof Sroka 2007-07-28 10:31:27 UTC
Portage (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
CFLAGS="-O2 -march=prescott -mmmx -msse -msse2 -mfpmath=sse -pipe"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -march=prescott -mmmx -msse -msse2 -mfpmath=sse -pipe"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict"
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-*"
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"

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/ < /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