Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74524 - Ebuild of Samba 3.0.9 exhausts all memory (in ebuild.sh), slows to a crawl
Summary: Ebuild of Samba 3.0.9 exhausts all memory (in ebuild.sh), slows to a crawl
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High blocker
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-15 09:49 UTC by Matt Warnock
Modified: 2005-01-17 07:16 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Warnock 2004-12-15 09:49:07 UTC
Running a recent (few days old) GRP Gentoo 2004.3 system, on a 630Mhz AMD Duron with 1GB memory, 2GB swap, 60 GB drive.  I did an emerge world when done, which installed Samba 3.0.8, which segfaults before it initializes.  Thought I'd try 3.0.9, so I unmasked it, then emerged samba.  I have not altered USE flags.

emerge spawns an ebuild.sh, which spawns another ebuild.sh, which slowly grows to consume all memory (I'm not too sure how a shell script manages this, is there some seriously recursive function there).  

Reproducible: Always
Steps to Reproduce:
1. unmask samba so 3.0.9 is the currently selected build
2. emerge samba
3. switch to another console and run "top".  Watch the system slow to a crawl!

Actual Results:  
Samba took more than 8 hours just to download the files (then I killed it and 
tried again, with the same result).  It never got to the actual compiling.  

Expected Results:  
Compiled samba. ;-}

I am a Gentoo newbie, but on Linux (mostly RedHat) since '93 or so. Please 
feel free to email any questions, since there may be things I am missing as a 
Gentoo newbie.

Here is a "ps aux" taken while the ebuild is running:

i129 root # ps aux
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0  1364  252 ?        S    Dec14   0:04 init [3]
root         2  0.0  0.0     0    0 ?        S    Dec14   0:00 [keventd]
root         3  0.0  0.0     0    0 ?        SN   Dec14   0:00 [ksoftirqd_CPU0]
root         4  0.7  0.0     0    0 ?        S    Dec14   7:23 [kswapd]
root         5  0.0  0.0     0    0 ?        S    Dec14   0:00 [bdflush]
root         6  0.0  0.0     0    0 ?        S    Dec14   0:00 [kupdated]
root         7  0.0  0.0     0    0 ?        S    Dec14   0:00 [mdrecoveryd]
root         8  0.0  0.0     0    0 ?        S    Dec14   0:00 [kcopyd]
root         9  0.0  0.0     0    0 ?        S    Dec14   0:00 [kmirrord]
root        32  0.0  0.0     0    0 ?        S    Dec14   0:00 [kreiserfsd]
root       172  0.0  0.0  1724  260 ?        Ss   Dec14   
0:00 /sbin/devfsd /dev
root       438  0.0  0.0     0    0 ?        S    Dec14   0:00 [khubd]
root      1334  0.0  0.0  1468  332 ?        Ss   Dec14   0:00 metalog [MASTER]
root      1339  0.0  0.0  1436  172 ?        S    Dec14   0:00 metalog [KERNEL]
root      1460  0.0  0.0  1512  368 ?        Ss   Dec14   0:00 /sbin/dhcpcd -
HD -N eth0
root      1515  0.0  0.0  1512  368 ?        Ss   Dec14   0:00 /sbin/dhcpcd -
HD -N eth1
root      1533  0.0  0.0  4756  576 ?        Ss   Dec14   0:00 /usr/sbin/cupsd
root      1863  0.0  0.0  1656  216 ?        Ss   Dec14   0:00 rsync --daemon
root      1968  0.0  0.0  3184  332 ?        Ss   Dec14   0:00 /usr/sbin/sshd
root      2008  0.0  0.0  1608  292 ?        Ss   Dec14   0:00 /usr/sbin/cron
root      2023  0.0  0.0  2140  272 ?        Ss   Dec14   0:00 login -- root
root      2024  0.0  0.0  1500  336 vc/2     Ss+  Dec14   0:00 /sbin/agetty 
38400 tty2 linux
root      2025  0.0  0.0  1500  336 vc/3     Ss+  Dec14   0:00 /sbin/agetty 
38400 tty3 linux
root      2026  0.0  0.0  1500  336 vc/4     Ss+  Dec14   0:00 /sbin/agetty 
38400 tty4 linux
root      2027  0.0  0.0  1500  336 vc/5     Ss+  Dec14   0:00 /sbin/agetty 
38400 tty5 linux
root      2028  0.0  0.0  1500  336 vc/6     Ss+  Dec14   0:00 /sbin/agetty 
38400 tty6 linux
root      2029  0.0  0.0  2072  268 vc/1     Ss+  Dec14   0:00 -bash
ldap      2271  0.0  0.0 11784  488 ?        Ss   Dec14   
0:00 /usr/lib/openldap/slapd -u ldap -g ldap
ldap      2273  0.0  0.0 11784  492 ?        S    Dec14   
0:00 /usr/lib/openldap/slapd -u ldap -g ldap
ldap      2274  0.0  0.0 11784  492 ?        S    Dec14   
0:00 /usr/lib/openldap/slapd -u ldap -g ldap
ldap      2965  0.0  0.0 11784  492 ?        S    00:26   
0:00 /usr/lib/openldap/slapd -u ldap -g ldap
root      2979  0.0  0.0  6600  504 ?        Ss   00:31   0:06 sshd: root@pts/0
root      2982  0.0  0.0  1924  532 pts/0    Ss   00:31   0:00 -bash
root      3267  0.0  0.0  6600  624 ?        Ss   01:32   0:19 sshd: root@pts/1
root      3270  0.0  0.0  1920  824 pts/1    Ss   01:33   0:00 -bash
root      3986  0.0  0.1 10392 1992 pts/0    S+   09:56   
0:01 /usr/bin/python -O /usr/bin/emerge samba
root      4061  0.0  0.0  2416  840 pts/0    S+   10:33   
0:00 /bin/bash /usr/lib/portage/bin/ebuild.sh setup
root      4076 36.0 96.6 1096548 990120 pts/0 R+  10:33   
9:44 /bin/bash /usr/lib/portage/bin/ebuild.sh setup
root      4123  0.0  0.0  2180  732 pts/1    R+   11:00   0:00 ps aux



Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-
r1, 2.4.26-gentoo-r13 i686)
=================================================================
System uname: 2.4.26-gentoo-r13 i686 AMD Duron(tm) Processor
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share
/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ 
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://csociety-
ftp.ecn.purdue.edu/pub/gentoo/ ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ 
ftp://ftp.ussg.iu.edu/pub/linux/gentoo 
ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.seren.com/gentoo 
http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ 
http://cudlug.cudenver.edu/gentoo/ 
ftp://cudlug.cudenver.edu/pub/mirrors/distributions/gentoo/ 
http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/ 
http://gentoo.ccccom.com ftp://gentoo.ccccom.com http://mirrors.tds.net/gentoo 
ftp://mirrors.tds.net/gentoo http://gentoo.netnitco.net 
ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ 
http://mirror.tucdemonic.org/gentoo/ 
http://mirror.clarkson.edu/pub/distributions/gentoo/ 
http://mirrors.acm.cs.rpi.edu/gentoo/ ftp://ftp.ndlug.nd.edu/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm arts avi berkdb bitmap-fonts crypt cups encode f77 foomaticdb 
fortran gdbm gif gnome gpm gtk gtk2 imlib jpeg kde ldap libg++ libwww mad 
mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python 
qt quicktime readline samba sdl spell ssl svga tcpd tiff truetype x86 xml2 
xmms xv zlib"
Comment 1 Christian Andreetta (RETIRED) gentoo-dev 2004-12-16 05:23:47 UTC
Strange: you have stable packages only, so I think that's not related to samba, but portage (which is very strange anyway).
Can you re-'emerge sync && emerge portage; emerge baselayout' and then 'emerge samba'?
Comment 2 Christian Andreetta (RETIRED) gentoo-dev 2005-01-17 07:16:26 UTC
closing: this was due to ext2 fs corruption in which portage tree resided.