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

Bug 419529

Summary: sys-libs/db-4.8.30 fails tests with no space left on device
Product: Gentoo Linux Reporter: Achim Derigs <achim>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Achim Derigs 2012-06-03 20:01:08 UTC
Emerging the package with `FEATURES=test' results in

...
Created ./PARALLEL_TESTDIR.10703
Created ./PARALLEL_TESTDIR.10704
Created ./PARALLEL_TESTDIR.10705
no space left on device
    while executing
"close $outfile"
    (procedure "mkparalleldirs" line 38)
    invoked from within
"mkparalleldirs $nprocs $basename $queuedir"
    (procedure "run_parallel" line 20)
    invoked from within
"run_parallel  run_std"
    (file "testrunner.tcl" line 2)
Traceback (most recent call last):
  File "/usr/lib64/portage/bin/filter-bash-environment.py", line 149, in <module>
    re.compile(var_pattern), file_in, file_out)
  File "/usr/lib64/portage/bin/filter-bash-environment.py", line 111, in filter_bash_environment
    file_out.write(line)
IOError: [Errno 28] No space left on device
 * ERROR: sys-libs/db-4.8.30 failed (test phase):
 *   filter-bash-environment.py failed
 * 
 * Call stack:
 *            ebuild.sh, line 687:  Called ebuild_main 'test'
 *   phase-functions.sh, line 991:  Called filter_readonly_variables '--filter-features'
 *   phase-functions.sh, line 140:  Called die
 * The specific snippet of code:
 *      "${PORTAGE_PYTHON:-/usr/bin/python}" "${PORTAGE_BIN_PATH}"/filter-bash-environment.py "${filtered_vars}" || die "filter-bash-environment.py failed"
Comment 1 Achim Derigs 2012-06-03 20:03:41 UTC
# emerge --info =sys-libs/db-4.8.30
Portage 2.1.10.49 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r3, 3.2.12-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.2.12-gentoo-x86_64-Intel-R-_Core-TM-_i5-2410M_CPU_@_2.30GHz-with-gentoo-2.1
Timestamp of tree: Sun, 03 Jun 2012 13:15:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r1, 3.2.3
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo dottout gentoo-zh java-overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.3 Oracle-BCLA-JavaSE PUEL skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /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="-pipe -O2 -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv"
FFLAGS=""
GENTOO_MIRRORS="rsync://de-mirror.org/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de de_DE en en_GB en_US"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/dottout /var/lib/layman/gentoo-zh /var/lib/layman/java-overlay"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X aac abyss acl acpi alsa amd64 apache2 apng autoipd avahi berkdb bluetooth bzip2 cairo cdda cli consolekit corefonts cracklib crypt css cups cxx dbus declarative dhcpcd doc dot dri dvd emf encode examples extras flac fontconfig fortran gd gdbm gpg gpm gtk gudev handbook iconv icu imagemagick ipv6 jadetex java java6 javascript jbig jingle jpeg kde kontact ldap lm_sensors minizip mmx mng modules mudflap multilib mysql ncurses networkmanager nls nptl nsplugin ntp ogg opengl openmp pam pcre pdf perl pmu png policykit ppds pppd python qt3support qt4 rdesktop readline scsi semantic-desktop session sna source spell sql sse sse2 ssl subversion svg tcl tcpd threads tk truetype unicode vaapi vdpau video vim-syntax vmware_guest_linux vmware_guest_windows vorbis webkit xine xml xorg xulrunner xv xvfb zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de de_DE en en_GB en_US" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel nvidia" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sys-libs/db-4.8.30 was built with the following:
USE="cxx doc examples java (multilib) tcl -test"
CFLAGS="-pipe -Os -march=native"
CXXFLAGS="-pipe -Os -march=native"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--default-symver"
Comment 2 Achim Derigs 2012-06-03 20:35:49 UTC
# df
Filesystem     1K-blocks      Used Available Use% Mounted on
rootfs         617226916 585873788         0 100% /
/dev/root      617226916 585873788         0 100% /
tmpfs            4042120       160   4041960   1% /run
rc-svcdir           1024       100       924  10% /lib64/rc/init.d
udev               10240         0     10240   0% /dev
shm              4042120         0   4042120   0% /dev/shm
# rm -r /var/tmp/portage/sys-libs/db-4.8.30/work/db-4.8.30/build_unix
# df
Filesystem     1K-blocks      Used Available Use% Mounted on
rootfs         617226916 294166664 291706868  51% /
/dev/root      617226916 294166664 291706868  51% /
tmpfs            4042120       180   4041940   1% /run
rc-svcdir           1024       100       924  10% /lib64/rc/init.d
udev               10240         0     10240   0% /dev
shm              4042120         0   4042120   0% /dev/shm
Comment 3 Michael Weber (RETIRED) gentoo-dev 2012-06-03 22:20:28 UTC
Hello,

df -h might be more readable.

Your report is about an excessive disk utilization of approx 290GB?

Assigning
Comment 4 SpanKY gentoo-dev 2012-06-04 00:52:25 UTC
what is your root filesystem type ?  we've seen tests fail in the past due to fs's not properly supporting sparse files.
Comment 5 Achim Derigs 2012-06-04 10:47:19 UTC
(In reply to comment #3)
> Hello,
> 
> df -h might be more readable.

# df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs          589G  281G  279G  51% /
/dev/root       589G  281G  279G  51% /
tmpfs           3.9G  168K  3.9G   1% /run
rc-svcdir       1.0M  100K  924K  10% /lib64/rc/init.d
udev             10M     0   10M   0% /dev
shm             3.9G     0  3.9G   0% /dev/shm

> Your report is about an excessive disk utilization of approx 290GB?

Yes. See above.
Comment 6 Achim Derigs 2012-06-04 10:55:39 UTC
(In reply to comment #4)
> what is your root filesystem type ?  we've seen tests fail in the past due
> to fs's not properly supporting sparse files.

It's an ext3 fs:

# dumpe2fs -h /dev/sda4
dumpe2fs 1.42 (29-Nov-2011)
Filesystem volume name:   root
Last mounted on:          <not available>
Filesystem UUID:          39e62ca6-c5fa-45cd-b0a4-0fe21739814d
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file
Filesystem flags:         signed_directory_hash 
Default mount options:    journal_data
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              39198720
Block count:              156766921
Reserved block count:     7838346
Free blocks:              80749932
Free inodes:              37539966
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      986
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
RAID stride:              1
RAID stripe width:        1
Filesystem created:       Wed Oct  5 22:17:43 2011
Last mount time:          Mon Jun  4 12:22:46 2012
Last write time:          Mon Jun  4 12:03:25 2012
Mount count:              1
Maximum mount count:      37
Last checked:             Mon Jun  4 12:03:25 2012
Check interval:           15552000 (6 months)
Next check after:         Sat Dec  1 11:03:25 2012
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
First orphan inode:       33128482
Default directory hash:   half_md4
Directory Hash Seed:      17ed1c77-d13e-46d8-8179-08b30254eccd
Journal backup:           inode blocks
Journal features:         journal_incompat_revoke
Journal size:             128M
Journal length:           32768
Journal sequence:         0x003188bf
Journal start:            19154
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-08-03 17:46:23 UTC
Something is really wrong in your makeopts, and that's why it got so big.

It should be one PARALLEL_TESTDIR for each thread in makeopts. There was a brief bug in the past that effectively run with unlimited threads, and that's what caused your problem.

If it comes back, please reopen.