Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34105 - incorect installing/using or ... glibc, zlib and more packages
Summary: incorect installing/using or ... glibc, zlib and more packages
Status: RESOLVED WORKSFORME
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-22 05:48 UTC by roma1390
Modified: 2011-10-30 22:19 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 roma1390 2003-11-22 05:48:00 UTC
lsof  | grep /var/tmp | uniq -w 10
devfsd      151    root  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
faxq       1474     fax  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
hfaxd      1478     fax  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
sshd       4716    root  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
bash       4719   rokas  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
sshd       4724    root  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
bash       4727   rokas  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
sshd       4732    root  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
bash       4735   rokas  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
sshd       4740    root  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
bash       4743   rokas  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
mc         5159   rokas  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
bash       5161   rokas  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
mc         6561   rokas  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
bash       6563   rokas  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
mysql      7510   rokas  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
BitchX     8899    snow  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
sshd      12141    root  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
bash      12144   rokas  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
mc        12149   rokas  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
bash      12151   rokas  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
safe_mysq 13165   error  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
mysqld    13217   error  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
named     17614   named  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
radvd     24203   radvd  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
safe_mysq 26583  marius  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
mysqld    26632  marius  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
dhcpd     27124    root  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
sshd      30399    root  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
bash      30402   rokas  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
ssh       30408   rokas  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
sshd      30409    root  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
bash      30413    root  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so
screen    30420    root  mem    DEL        3,7             99859
/var/tmp/portage/glibc-2.3.2-r3/image/lib/ld-2.3.2.so

 # lsof  | grep /var/tmp  | grep zlib | uniq -w 10
faxq       1474     fax  mem    DEL        3,7            267142
/var/tmp/portage/zlib-1.1.4-r2/image/usr/lib/libz.so.1.1.4
hfaxd      1478     fax  mem    DEL        3,7            267142
/var/tmp/portage/zlib-1.1.4-r2/image/usr/lib/libz.so.1.1.4
sshd       4716    root  mem    DEL        3,7            267142
/var/tmp/portage/zlib-1.1.4-r2/image/usr/lib/libz.so.1.1.4
mysqld    13217   error  mem    DEL        3,7            267142
/var/tmp/portage/zlib-1.1.4-r2/image/usr/lib/libz.so.1.1.4
sshd      30399    root  mem    DEL        3,7            267142
/var/tmp/portage/zlib-1.1.4-r2/image/usr/lib/libz.so.1.1.4

and etc.

# cat /etc/ld.so.conf 
# ld.so.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
/usr/local/lib
/usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.3
/usr/lib/opengl/xfree/lib
/usr/X11R6/lib
/opt/blackdown-jdk-1.3.1/jre/lib/i386/
/opt/blackdown-jdk-1.3.1/jre/lib/i386/native_threads/
/usr/qt/2/lib



# cat /etc/ld.so.preload 
# cat /etc/ld.so.cache  | grep tmp
# uname -a
Linux xxxx.xx 2.4.20 #3 Sun Feb 23 20:21:49 EET 2003 i586 AMD-K6(tm) 3D
processor AuthenticAMD GNU/Linux


# emerge info   
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.20)
=================================================================
System uname: 2.4.20 i586 AMD-K6(tm) 3D processor
Gentoo Base System version 1.4.3.10p1
distcc 2.11.1 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=k6-2 -O3 -pipe"
CHOST="i586-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=k6-2 -O3 -pipe -Wno-deprecated"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j8 -l3"
PKGDIR="/usr/portage/packages/sun"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="foomaticdb mad -3dfx 3dnow aalib -acl -afs -alsa apm -arts -avi -atlas
berkdb -bonobo -cana -cdr -cjk crypt -cups -dga -directfb doc -dvd encode esd
-fbcon -flash -freewnn -gb gd gdbm -ggi gif -gnome -gphoto2 -gpm gtk gtk2
gtkhtml -guile -icc -icc-pgo -imap imlib innodb ipv6 java jikes jpeg -junit -kde
-kerberos -lcms -ldap -leim libg++ -libgda libwww -maildir mbox mikmod mmx motif
-mozilla mpeg -mule mysql nas ncurses nls -oci8 odbc oggvorbis opengl -oss pam
-pcmcia -pda pdflib perl pic plotutils png -postgres python qt qtmt quicktime
readline -ruby samba sasl -scanner sdl slang -slp -snmp -socks5 spell -sse ssl
-static -svga tcltk tcpd -tetex tiff truetype voodoo3 -wavelan wmf X xml xml2
-xmms xv zlib x86"



Reproducible: Didn't try
Steps to Reproduce:
Comment 1 SpanKY gentoo-dev 2003-11-22 14:51:15 UTC
you should rm -rf those dirs ...
Comment 2 roma1390 2003-11-22 14:57:11 UTC
oh my god!
OH MY GOD!

has gentoo package managment system?
Comment 3 roma1390 2003-11-22 14:58:00 UTC
I hope so this isn't bug fix, this is only tip?
Comment 4 SpanKY gentoo-dev 2003-11-22 15:05:07 UTC
i was suggesting a quick fix not a permanent fix

if you want help it's best if you try to not start flames ... people probably wont help them if you tell them they suck
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-12-14 10:13:09 UTC
I cannot say I have seen this before, and I never clean /var/tmp/portage
on regular basis ... Could you update to unstable glibc (-r9) and see
if it fixes ?
Comment 6 roma1390 2003-12-14 12:34:58 UTC
can't try new glibc.
after restarting services some open file handles gone.
won't try, won't reproduce. It's is only bug submit
Comment 7 roma1390 2004-06-06 13:13:33 UTC
after log delay i just wont to see what produces lsof | grep var/tmp

and i saw:

root # lsof | grep var/tmp
devfsd      151  root  txt    REG        3,5   35800     56175 /var/tmp/portage/devfsd-1.3.25-r6/image/sbin/devfsd (deleted)
dhcpcd      899  root  txt    REG        3,5   35620     20444 /var/tmp/portage/dhcpcd-1.3.22_p4-r4/image/sbin/dhcpcd (deleted)
portmap    1005   bin  txt    REG        3,5   28464    102873 /var/tmp/portage/portmap-5b-r8/image/sbin/portmap (deleted)
sshd       1131  root  txt    REG        3,5  327596     73371 /var/tmp/portage/openssh-3.8_p1/image/usr/sbin/sshd (deleted)
sshd       1131  root  mem    DEL        3,5             64780 /var/tmp/portage/openssl-0.9.7d/image/usr/lib/libcrypto.so.0.9.6
agetty     1175  root  txt    REG        3,5   14808     82463 /var/tmp/portage/util-linux-2.12-r4/image/sbin/agetty (deleted)
agetty     1176  root  txt    REG        3,5   14808     82463 /var/tmp/portage/util-linux-2.12-r4/image/sbin/agetty (deleted)
agetty     1177  root  txt    REG        3,5   14808     82463 /var/tmp/portage/util-linux-2.12-r4/image/sbin/agetty (deleted)
agetty     1178  root  txt    REG        3,5   14808     82463 /var/tmp/portage/util-linux-2.12-r4/image/sbin/agetty (deleted)
agetty     1179  root  txt    REG        3,5   14808     82463 /var/tmp/portage/util-linux-2.12-r4/image/sbin/agetty (deleted)
agetty     1180  root  txt    REG        3,5   14808     82463 /var/tmp/portage/util-linux-2.12-r4/image/sbin/agetty (deleted)
sshd      13005  root  txt    REG        3,5  327596     73371 /var/tmp/portage/openssh-3.8_p1/image/usr/sbin/sshd (deleted)
sshd      13005  root  mem    DEL        3,5             64780 /var/tmp/portage/openssl-0.9.7d/image/usr/lib/libcrypto.so.0.9.6
bash      13011  root  txt    REG        3,5  691200    113372 /var/tmp/portage/bash-2.05b-r9/image/bin/bash (deleted)

What can i say? i think that "problem work around is" restart service,
reboot pc.

I think most problem is uptime:
 # uptime
 22:07:37 up 33 days,  6:55,  1 user,  load average: 0.00, 0.00, 0.07


at this time i have:
glibc-2.3.2-r3

and some system info:
 # time emerge info
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r3, 2.4.20-gentoo-r5)
=================================================================
System uname: 2.4.20-gentoo-r5 i486 486
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=i486 -O3 -pipe"
CHOST="i486-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=i486 -O3 -pipe -Wno-deprecated"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache ditscc sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages/pluton"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="berkdb crypt foomaticdb gdbm gpm mad mbox mysql ncurses pam perl pic python readline samba slang tcltk tcpd x86 zlib"


real    2m6.403s
user    1m32.400s
sys     0m14.380s


Comment 8 Jakub Moc (RETIRED) gentoo-dev 2005-12-10 06:27:13 UTC
(In reply to comment #6)
> can't try new glibc.
> after restarting services some open file handles gone.
> won't try, won't reproduce. It's is only bug submit

Closing.
Comment 9 SpanKY gentoo-dev 2007-06-07 00:38:09 UTC
just hit this again and was able to narrow it down ... basically you have nothing at all to worry about

the problem is in the kernel i think ... the deleted path refers to the wrong thing ... it's completely safe to ignore the weird paths

for example, a simple C code:
int main()
{
  if (fork()) return 0;
  printf("pid = %i\n", getpid());
  while (1) sleep(3600);
}

$ gcc test.c
$ ./a.out
pid = 14753
$ readlink /proc/14753/exe
/home/vapier/a.out
$ mv a.out a.out.foo
$ readlink /proc/14753/exe
/home/vapier/a.out.foo
$ gcc test.c
$ mv a.out a.out.foo
$ readlink /proc/14753/exe
/home/vapier/a.out (deleted)

a similar thing happens with portage as it does `mv` from /var/tmp/portage/ to / when they are on the same partition
Comment 10 SpanKY gentoo-dev 2007-06-07 00:49:55 UTC
i guess a closer example:

# gcc test.c -o /usr/sbin/MOO
# /usr/sbin/MOO
pid = 17144
# readlink /proc/17144/exe
/usr/sbin/MOO

# gcc test.c -o /var/tmp/portage/MOO
# mv /var/tmp/portage/MOO /usr/sbin/MOO
# readlink /proc/17144/exe
/var/tmp/portage/MOO (deleted)