[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#219271: marked as done (libc6 - statvfs broken)



Your message dated Wed, 05 Nov 2003 13:18:51 -0500
with message-id <E1AHSF1-0000sg-00@auric.debian.org>
and subject line Bug#219271: fixed in glibc 2.3.2.ds1-10
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 5 Nov 2003 12:49:05 +0000
>From mechanix@slider.rack66.net Wed Nov 05 06:48:39 2003
Return-path: <mechanix@slider.rack66.net>
Received: from slider.rack66.net [212.3.252.135] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AHN5S-00051O-00; Wed, 05 Nov 2003 06:48:38 -0600
Received: by slider.rack66.net (Postfix, from userid 1026)
	id D3A55F241; Wed,  5 Nov 2003 13:48:37 +0100 (CET)
Date: Wed, 5 Nov 2003 13:48:37 +0100
From: Filip Van Raemdonck <mechanix@debian.org>
To: submit@bugs.debian.org
Subject: libc6 - statvfs broken
Message-ID: <[🔎] 20031105124837.GB22626@debian>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.28i
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0
	tests=BAYES_30,DATING,HAS_PACKAGE
	version=2.53-bugs.debian.org_2003_11_03
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_11_03 (1.174.2.15-2003-03-30-exp)

Package: libc6
Version: 2.3.2.ds1-9
Tags: sid

Hi,

The .ds1 versions of libc6 broke something, presumably in statvfs().

I have a remote (stable, 2.4.something) system with an unstable chroot on
it. Inside that chroot only a nfs share is mounted, nothing else. Up to
last week all worked fine; however since last time I updated the chroot
libc6 got upgraded to .ds1-8. When I tried updating the chroot again today
apt-get hung where it should prompt me to continue (i.e., after listing
what it was about to do).
Then I unmounted the nfs share, but to no effect - apt-get still hung.
Nothing was mounted (inside the chroot) anymore at that point.

I fiddled around a bit, with little success, until I mounted /proc to be
able to run ps without having to drop out of the chroot. When I stupidly
ran apt-get next, it suddenly worked. Unmounted /proc, hung again.

I ran strace and ltrace on an apt-get invocation next. The strace output
shows that apt-get opens /etc/mtab, then gets into an infinite loop:

...
write(1, "Need to get 8671kB/9020kB of arc"..., 39) = 39
write(1, "After unpacking 26.0MB of additi"..., 62) = 62
statfs("/var/cache/apt/archives/", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=9376915, f_bfree=3701352, f_bavail=3225026, f_files=4767744, f_ffree=4227550, f_fsid={0, 0}, f_namelen=255, f_frsize=0}) = 0
stat64("/var/cache/apt/archives/", {st_mode=S_IFDIR|0755, st_size=135168, ...}) = 0
open("/proc/mounts", O_RDONLY)          = -1 ENOENT (No such file or directory)
open("/etc/mtab", O_RDONLY)             = 15
fstat64(15, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
read(15, "", 4096)                      = 0
_llseek(15, 0, [0], SEEK_SET)           = 0
read(15, "", 4096)                      = 0
_llseek(15, 0, [0], SEEK_SET)           = 0
read(15, "", 4096)                      = 0
_llseek(15, 0, [0], SEEK_SET)           = 0

(repeated several thousand times)

read(15, "", 4096)                      = 0
_llseek(15, 0, [0], SEEK_SET)           = 0
--- SIGINT (Interrupt) @ 0 (0) ---
+++ killed by SIGINT +++


Note that opening /proc/mounts is tried before mtab, which is supposedly
why things work when /proc is mounted (altough it's curious that it does
not loop then).
Note also that currently mtab is empty, but it hardly matters. After
mounting the nfs share again, it reads a number of bytes, stat64()s the
nfs mount point as it does with /var/cache/apt/archives/ now, does another
read() with 0 result as happens above too, and then there's the _llseek()
and things start all over again. (Would the _llseek() be the culprit?)

Running from within ltrace rather than strace gives this as final output:

...
dcgettext(0, 0x08060e60, 5, 0x0806989c, 0xbfffef40)                            = 0x08060e60
_Z8ioprintfRSoPKcz(0x08065c20, 0x08060e60, 0x0806989c, 0x0806989c, 0xbfffef40) = 0x08065c20
_ZNSs4_Rep10_M_destroyERKSaIcE(0x08069890, 0xbffff460, 0x0806989c, 0x0806989c, 0xbfffef40) = 0
_Z12_GetErrorObjv(0x08069890, 0xbffff460, 0x0806989c, 0x0806989c, 0xbfffef40)  = 0x08068e40
_ZNK13Configuration5FindBEPKcb(0x080660e0, 0x0805fc30, 0, 0x0806989c, 0xbfffef40) = 0
_ZNK13Configuration5FindBEPKcb(0x080660e0, 0x0805fc4b, 1, 0x0806989c, 0xbfffef40) = 1
_ZNK13Configuration7FindDirEPKcS1_(0xbffff440, 0x080660e0, 0x0805fd03, 0, 0xbfffef40) = 0xbffff440
statvfs(0x08069484, 0xbfffef30, 0x0805fd03, 0, 0xbfffef40 <unfinished ...>
--- SIGINT (Interrupt) ---
+++ killed by SIGINT +++


Hence my assumption to blame statvfs().

I downgraded to 2.3.2-9 from snapshot.debian.net; this version worked both
with and without /proc being mounted.


Regards,

Filip

-- 
Evil Overlord Quote of the Day:
150.I will provide funding and research to develop tactical and strategic
weapons covering a full range of needs so my choices are not limited to
"hand to hand combat with swords" and "blow up the planet".

---------------------------------------
Received: (at 219271-close) by bugs.debian.org; 5 Nov 2003 18:24:37 +0000
>From katie@auric.debian.org Wed Nov 05 12:24:37 2003
Return-path: <katie@auric.debian.org>
Received: from auric.debian.org [206.246.226.45] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AHSKa-00077S-00; Wed, 05 Nov 2003 12:24:36 -0600
Received: from katie by auric.debian.org with local (Exim 3.35 1 (Debian))
	id 1AHSF1-0000sg-00; Wed, 05 Nov 2003 13:18:51 -0500
From: Jeff Bailey <jbailey@nisa.net>
To: 219271-close@bugs.debian.org
X-Katie: $Revision: 1.42 $
Subject: Bug#219271: fixed in glibc 2.3.2.ds1-10
Message-Id: <E1AHSF1-0000sg-00@auric.debian.org>
Sender: Archive Administrator <katie@auric.debian.org>
Date: Wed, 05 Nov 2003 13:18:51 -0500
Delivered-To: 219271-close@bugs.debian.org

Source: glibc
Source-Version: 2.3.2.ds1-10

We believe that the bug you reported is fixed in the latest version of
glibc, which is due to be installed in the Debian FTP archive:

glibc-doc_2.3.2.ds1-10_all.deb
  to pool/main/g/glibc/glibc-doc_2.3.2.ds1-10_all.deb
glibc_2.3.2.ds1-10.diff.gz
  to pool/main/g/glibc/glibc_2.3.2.ds1-10.diff.gz
glibc_2.3.2.ds1-10.dsc
  to pool/main/g/glibc/glibc_2.3.2.ds1-10.dsc
libc-udeb_2.3.2.ds1-10_ia64.udeb
  to pool/main/g/glibc/libc-udeb_2.3.2.ds1-10_ia64.udeb
libc6.1-dbg_2.3.2.ds1-10_ia64.deb
  to pool/main/g/glibc/libc6.1-dbg_2.3.2.ds1-10_ia64.deb
libc6.1-dev_2.3.2.ds1-10_ia64.deb
  to pool/main/g/glibc/libc6.1-dev_2.3.2.ds1-10_ia64.deb
libc6.1-pic_2.3.2.ds1-10_ia64.deb
  to pool/main/g/glibc/libc6.1-pic_2.3.2.ds1-10_ia64.deb
libc6.1-prof_2.3.2.ds1-10_ia64.deb
  to pool/main/g/glibc/libc6.1-prof_2.3.2.ds1-10_ia64.deb
libc6.1_2.3.2.ds1-10_ia64.deb
  to pool/main/g/glibc/libc6.1_2.3.2.ds1-10_ia64.deb
locales_2.3.2.ds1-10_all.deb
  to pool/main/g/glibc/locales_2.3.2.ds1-10_all.deb
nscd_2.3.2.ds1-10_ia64.deb
  to pool/main/g/glibc/nscd_2.3.2.ds1-10_ia64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 219271@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jeff Bailey <jbailey@nisa.net> (supplier of updated glibc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed,  5 Nov 2003 10:53:14 -0500
Source: glibc
Binary: libc6.1-prof libc6-i686 libc1 libc0.3-pic locales glibc-doc libc6-pic libc-udeb libc1-prof libc0.3 libc0.3-dbg libc6.1-dev libc1-pic libc6-s390x libc6-prof libc1-dbg libc6-dev-sparc64 libc6 libc0.3-dev libc6-dbg nscd libc6.1-dbg libc6.1-pic libc6-sparc64 libc6-dev libc0.3-prof libc6-sparcv9 libc6.1 libc6-dev-s390x libc1-dev
Architecture: source ia64 all
Version: 2.3.2.ds1-10
Distribution: unstable
Urgency: low
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Changed-By: Jeff Bailey <jbailey@nisa.net>
Description: 
 glibc-doc  - GNU C Library: Documentation
 libc-udeb  - GNU C Library: Shared libraries and Timezone data - udeb (udeb)
 libc6.1    - GNU C Library: Shared libraries and Timezone data
 libc6.1-dbg - GNU C Library: Libraries with debugging symbols
 libc6.1-dev - GNU C Library: Development Libraries and Header Files
 libc6.1-pic - GNU C Library: PIC archive library
 libc6.1-prof - GNU C Library: Profiling Libraries
 locales    - GNU C Library: National Language (locale) data [support]
 nscd       - GNU C Library: Name Service Cache Daemon
Closes: 218449 218524 218595 218642 218645 219025 219176 219271
Changes: 
 glibc (2.3.2.ds1-10) unstable; urgency=low
 .
   This is the "Swimming to the surface" release.
 .
   * GOTO Masanori <gotom@debian.org>
 .
     - debian/control.in/opt: Add more ix86 CPUs in the description.
     - debian/debhelper.in/libc.preinst: Ignore old libc4/5.
       (Closes: #218449)
 .
   * Daniel Jacobowitz <dan@debian.org>
 .
     - Add a patch to automatically disable NPTL for programs which
       reference the old errno; and update the FAQ to match.
       (glibc23-errno-hack.dpatch).
     - Update make build dependency as reported by Mikko Kautto
       (Closes: #218595).
     - Update debian/po/nl.po with new translation from Bart Cornelis
       (Closes: #218642).
     - Update SSE disabling patch to work for static binaries too
       (Closes: #218524, #219025).
     - debian/debhelper.in/libc.preinst: Ignore ia32-libs also
       (Closes: #219176).
     - debian/control.in/main: Build depend on fixed linux-kernel-headers
       to get ia64 module syscalls (Closes: #218645).
 .
   * Jeff Bailey <jbailey@nisa.net>
 .
     Update to Standards-Version 3.6.1:
     - debian/changelog: Convert from Latin-1 to UTF-8.  1 Line affected.
     - debian/control.in/main: Update version number.
     Fix some lintian warnings:
     - debian/changelog: Remove obsolete user-emacs settings.
     - debian/control.in/libc: Remove trailing periods from synopis'.  These
     aren't full sentences.
     - debian/local/manpages/gencat.1: New file.
     - debian/local/manpages/trace.1: New file.
     - debian/debhelper.in/libc-dev.manpages: Install them.
     - debian/local/manpages/iconvconfig.8: New file.
     - debian/debhelper.in/libc.manpages: Install it.
     - debian/patches/90_glibc232-statvfs.dpatch: Don't get confused on bad
     mtab.  (Closes: #219271)
     - debian/patches/90_glibc232-timezones.dpatch: Update timezone
     information.
 .
   * Phil Blundell <pb@nexus.co.uk>
 .
     - debian/patches/arm-ioperm.dpatch: Third time lucky?
Files: 
 0b0d00d3386665b1a0fa242c03555762 1589 libs required glibc_2.3.2.ds1-10.dsc
 58c3746e90da5076ff2134ab8bc45e71 1931999 libs required glibc_2.3.2.ds1-10.diff.gz
 15fd6be6a1e3be344de1fb1071b5b628 3833710 doc optional glibc-doc_2.3.2.ds1-10_all.deb
 e095a8350b2799f63d8f53129042dc81 3924600 base standard locales_2.3.2.ds1-10_all.deb
 1e27a3e6f7eeb083cacea26c96ce6a8a 6205756 base required libc6.1_2.3.2.ds1-10_ia64.deb
 969a7452c92a178d9824f5c8029752e2 3179636 libdevel standard libc6.1-dev_2.3.2.ds1-10_ia64.deb
 9989d34584aa90e1221406407accea12 8950452 libdevel extra libc6.1-dbg_2.3.2.ds1-10_ia64.deb
 0f51f7cac4b79c7f31bede13c9333c3b 2690354 libdevel extra libc6.1-prof_2.3.2.ds1-10_ia64.deb
 492217d9bdfe62efa520d85968e14875 1428340 libdevel optional libc6.1-pic_2.3.2.ds1-10_ia64.deb
 3fa379e68c14bc4a8f6c2ecdaa691dc5 93322 admin optional nscd_2.3.2.ds1-10_ia64.deb
 2ad8eb5e4e4e1d506f632acfa2e2f4ea 1057594 debian-installer required libc-udeb_2.3.2.ds1-10_ia64.udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/qTg/5M5hmdCYCpkRAifrAJ4gLXJST7Ril5gc3JvDwxMJoBWq4wCcDAHt
2ZxBs+DseGaG6WPsjO4I26s=
=l/bw
-----END PGP SIGNATURE-----



Reply to: