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

Bug#665897: marked as done (eglibc: [mips, mipsel] wrong RLIM_INFINITY for LFS)



Your message dated Fri, 29 Nov 2013 17:35:19 +0000
with message-id <E1VmRyJ-0001C8-QJ@franck.debian.org>
and subject line Bug#665897: fixed in eglibc 2.17-97
has caused the Debian Bug report #665897,
regarding eglibc: [mips, mipsel] wrong RLIM_INFINITY for LFS
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
665897: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=665897
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: eglibc
Version: 2.13-27

(The MIPS porters may please set a severity on this.)

I’ve discovered this as a problem with the shells’ ulimit builtin
(both mksh and GNU bash affected as they’re built with LFS, dash
isn’t, and mksh-static uses dietlibc on both mips and mipsel which
just ignores -D_FILE_OFFSET_BITS=64).

Basically, RLIM_INFINITY on a bunch of platforms is, apparently
historically, not all-bits-one but all-bits-one-SHR-1. This works
fine for the non-LFS case but disagrees with the data the Linux
kernel sends for the LFS case:

tg@gabrielli:~$ dchroot sid
Executing shell in chroot: /chroot/sid
(sid)tg@gabrielli:~$ cat x.c
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <err.h>
#include <stdio.h>
int main(void) {
        struct rlimit r;
        if (getrlimit(RLIMIT_DATA, &r))
                err(1, "getrlimit");
        printf("%016llX %016llX\n", (unsigned long long)r.rlim_cur, (unsigned long long)RLIM_INFINITY);
        return (0);
}
(sid)tg@gabrielli:~$ gcc x.c
(sid)tg@gabrielli:~$ ./a.out
000000007FFFFFFF 000000007FFFFFFF
(sid)tg@gabrielli:~$ gcc x.c -D_FILE_OFFSET_BITS=64
(sid)tg@gabrielli:~$ ./a.out
FFFFFFFFFFFFFFFF 7FFFFFFFFFFFFFFF

The documented ABI for this (via the linux-libc-dev package) is:

/usr/include/mips-linux-gnu/asm/resource.h:# define RLIM_INFINITY               0x7fffffffUL
/usr/include/asm-generic/resource.h:# define RLIM_INFINITY              (~0UL)

So the special-casing of Alpha, MIPS and SPARC apparently is
wrong for the LFS case, and this is a bug in eglibc. At least
this is what I think after this analysis ;-)

Other info:

(sid)tg@gabrielli:~$ uname -a
Linux gabrielli 3.2.0-0.bpo.1-octeon #1 SMP Sun Feb 12 21:03:30 UTC 2012 mips64 GNU/Linux
(sid)tg@eder:~$ uname -a
Linux eder 2.6.39-3-loongson-2e #1 Sat Aug 20 16:36:12 UTC 2011 mips64 GNU/Linux

These are the two affected systems I can reproduce things with
(mips and mipsel, in this order).

bye,
//mirabilos
-- 
Solange man keine schmutzigen Tricks macht, und ich meine *wirklich*
schmutzige Tricks, wie bei einer doppelt verketteten Liste beide
Pointer XORen und in nur einem Word speichern, funktioniert Boehm ganz
hervorragend.		-- Andreas Bogk über boehm-gc in d.a.s.r



--- End Message ---
--- Begin Message ---
Source: eglibc
Source-Version: 2.17-97

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

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 665897@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Aurelien Jarno <aurel32@debian.org> (supplier of updated eglibc 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@ftp-master.debian.org)


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

Format: 1.8
Date: Fri, 29 Nov 2013 16:43:19 +0100
Source: eglibc
Binary: libc-bin libc-dev-bin glibc-doc eglibc-source locales locales-all nscd multiarch-support libc6 libc6-dev libc6-dbg libc6-prof libc6-pic libc6-udeb libc6.1 libc6.1-dev libc6.1-dbg libc6.1-prof libc6.1-pic libc6.1-udeb libc0.3 libc0.3-dev libc0.3-dbg libc0.3-prof libc0.3-pic libc0.3-udeb libc0.1 libc0.1-dev libc0.1-dbg libc0.1-prof libc0.1-pic libc0.1-udeb libc6-i386 libc6-dev-i386 libc6-sparc libc6-dev-sparc libc6-sparc64 libc6-dev-sparc64 libc6-s390 libc6-dev-s390 libc6-s390x libc6-dev-s390x libc6-amd64 libc6-dev-amd64 libc6-powerpc libc6-dev-powerpc libc6-ppc64 libc6-dev-ppc64 libc6-mipsn32 libc6-dev-mipsn32 libc6-mips64 libc6-dev-mips64 libc6-armhf libc6-dev-armhf libc6-armel libc6-dev-armel libc0.1-i386 libc0.1-dev-i386 libc6-x32 libc6-dev-x32 libc6-i686 libc6-xen libc0.1-i686 libc0.3-i686 libc0.3-xen libc6.1-alphaev67 libc6-loongson2f libnss-dns-udeb libnss-files-udeb
Architecture: source all amd64
Version: 2.17-97
Distribution: unstable
Urgency: medium
Maintainer: Aurelien Jarno <aurel32@debian.org>
Changed-By: Aurelien Jarno <aurel32@debian.org>
Description: 
 eglibc-source - Embedded GNU C Library: sources
 glibc-doc  - Embedded GNU C Library: Documentation
 libc-bin   - Embedded GNU C Library: Binaries
 libc-dev-bin - Embedded GNU C Library: Development binaries
 libc0.1    - Embedded GNU C Library: Shared libraries
 libc0.1-dbg - Embedded GNU C Library: detached debugging symbols
 libc0.1-dev - Embedded GNU C Library: Development Libraries and Header Files
 libc0.1-dev-i386 - Embedded GNU C Library: 32bit development libraries for AMD64
 libc0.1-i386 - Embedded GNU C Library: 32bit shared libraries for AMD64
 libc0.1-i686 - Embedded GNU C Library: Shared libraries [i686 optimized]
 libc0.1-pic - Embedded GNU C Library: PIC archive library
 libc0.1-prof - Embedded GNU C Library: Profiling Libraries
 libc0.1-udeb - Embedded GNU C Library: Shared libraries - udeb (udeb)
 libc0.3    - Embedded GNU C Library: Shared libraries
 libc0.3-dbg - Embedded GNU C Library: detached debugging symbols
 libc0.3-dev - Embedded GNU C Library: Development Libraries and Header Files
 libc0.3-i686 - Embedded GNU C Library: Shared libraries [i686 optimized]
 libc0.3-pic - Embedded GNU C Library: PIC archive library
 libc0.3-prof - Embedded GNU C Library: Profiling Libraries
 libc0.3-udeb - Embedded GNU C Library: Shared libraries - udeb (udeb)
 libc0.3-xen - Embedded GNU C Library: Shared libraries [Xen version]
 libc6      - Embedded GNU C Library: Shared libraries
 libc6-amd64 - Embedded GNU C Library: 64bit Shared libraries for AMD64
 libc6-armel - Embedded GNU C Library: ARM softfp shared libraries for armhf
 libc6-armhf - Embedded GNU C Library: ARM hard float shared libraries for armel
 libc6-dbg  - Embedded GNU C Library: detached debugging symbols
 libc6-dev  - Embedded GNU C Library: Development Libraries and Header Files
 libc6-dev-amd64 - Embedded GNU C Library: 64bit Development Libraries for AMD64
 libc6-dev-armel - Embedded GNU C Library: ARM softfp development libraries for armh
 libc6-dev-armhf - Embedded GNU C Library: ARM hard float development libraries for
 libc6-dev-i386 - Embedded GNU C Library: 32-bit development libraries for AMD64
 libc6-dev-mips64 - Embedded GNU C Library: 64bit Development Libraries for MIPS64
 libc6-dev-mipsn32 - Embedded GNU C Library: n32 Development Libraries for MIPS64
 libc6-dev-powerpc - Embedded GNU C Library: 32bit powerpc development libraries for p
 libc6-dev-ppc64 - Embedded GNU C Library: 64bit Development Libraries for PowerPC64
 libc6-dev-s390 - Embedded GNU C Library: 32bit Development Libraries for IBM zSeri
 libc6-dev-s390x - Embedded GNU C Library: 64bit Development Libraries for IBM zSeri
 libc6-dev-sparc - Embedded GNU C Library: 32bit Development Libraries for SPARC
 libc6-dev-sparc64 - Embedded GNU C Library: 64bit Development Libraries for UltraSPAR
 libc6-dev-x32 - Embedded GNU C Library: X32 ABI Development Libraries for AMD64
 libc6-i386 - Embedded GNU C Library: 32-bit shared libraries for AMD64
 libc6-i686 - Embedded GNU C Library: Shared libraries [i686 optimized]
 libc6-loongson2f - Embedded GNU C Library: Shared libraries (Loongson 2F optimized)
 libc6-mips64 - Embedded GNU C Library: 64bit Shared libraries for MIPS64
 libc6-mipsn32 - Embedded GNU C Library: n32 Shared libraries for MIPS64
 libc6-pic  - Embedded GNU C Library: PIC archive library
 libc6-powerpc - Embedded GNU C Library: 32bit powerpc shared libraries for ppc64
 libc6-ppc64 - Embedded GNU C Library: 64bit Shared libraries for PowerPC64
 libc6-prof - Embedded GNU C Library: Profiling Libraries
 libc6-s390 - Embedded GNU C Library: 32bit Shared libraries for IBM zSeries
 libc6-s390x - Embedded GNU C Library: 64bit Shared libraries for IBM zSeries
 libc6-sparc - Embedded GNU C Library: 32bit Shared libraries for SPARC
 libc6-sparc64 - Embedded GNU C Library: 64bit Shared libraries for UltraSPARC
 libc6-udeb - Embedded GNU C Library: Shared libraries - udeb (udeb)
 libc6-x32  - Embedded GNU C Library: X32 ABI Shared libraries for AMD64
 libc6-xen  - Embedded GNU C Library: Shared libraries [Xen version]
 libc6.1    - Embedded GNU C Library: Shared libraries
 libc6.1-alphaev67 - Embedded GNU C Library: Shared libraries (EV67 optimized)
 libc6.1-dbg - Embedded GNU C Library: detached debugging symbols
 libc6.1-dev - Embedded GNU C Library: Development Libraries and Header Files
 libc6.1-pic - Embedded GNU C Library: PIC archive library
 libc6.1-prof - Embedded GNU C Library: Profiling Libraries
 libc6.1-udeb - Embedded GNU C Library: Shared libraries - udeb (udeb)
 libnss-dns-udeb - Embedded GNU C Library: NSS helper for DNS - udeb (udeb)
 libnss-files-udeb - Embedded GNU C Library: NSS helper for files - udeb (udeb)
 locales    - Embedded GNU C Library: National Language (locale) data [support]
 locales-all - Embedded GNU C Library: Precompiled locale data
 multiarch-support - Transitional package to ensure multiarch compatibility
 nscd       - Embedded GNU C Library: Name Service Cache Daemon
Closes: 665897 718890 730336
Changes: 
 eglibc (2.17-97) unstable; urgency=medium
 .
   [ Aurelien Jarno ]
   * patches/mips/local-prlimit64.diff: remove.
   * patches/mips/cvs-prlimit64.diff: new patch from upstream to fix
     getrlimit64/setrlimit64 with recent 64-bit kernels (Closes: #665897).
   * patches/any/submitted-findlocale-div-by-zero.diff: new patch to fix
     a SIGFPE when locale-archive has been corrupted to all zeros (Closes:
     #718890, #730336).
 .
   [ Petr Salinger ]
   * kfreebsd/local-sysdeps.diff: raise MAXLOGNAME
Checksums-Sha1: 
 82f8cba894d707c677227ae56ba935259d4a2658 5256 eglibc_2.17-97.dsc
 8bcf2efb0f1fe1ab0c1dd2080f5edc0b9332492e 1062932 eglibc_2.17-97.debian.tar.xz
 a06e5b8f7cb44b218cad38ac5bdfabf9fb72e72a 2136938 glibc-doc_2.17-97_all.deb
 0138d38687409cb384c894030a8b83015c14ca86 13063168 eglibc-source_2.17-97_all.deb
 bc9f5776c55f9e81a6e485dcdf3bada637711c39 3845224 locales_2.17-97_all.deb
 91022455771d8134e605bb78ea65abc51125146e 2533060 libc6_2.17-97_amd64.deb
 d748b584b2248533ca77b139028be30ec8dbd6f4 1971536 libc6-dev_2.17-97_amd64.deb
 4b9b5ab6ae19b631f0710f9c9e95b6a7bcb58c21 1449098 libc6-pic_2.17-97_amd64.deb
 31f1cf6dd5df6eab11bcb72023c05ac01e51f9a4 754652 libc-bin_2.17-97_amd64.deb
 c4fff3074c338995505cca19e7e76123d0ac02fe 224216 libc-dev-bin_2.17-97_amd64.deb
 e5fc82aae032d695520a38c89a57897adb71fb66 162850 multiarch-support_2.17-97_amd64.deb
 b65c01057d3fb585976764306755d7306a8bf8b5 1582694 libc6-prof_2.17-97_amd64.deb
 d2bf9b5ae8c159cbb55aabeb944762f65c598f64 3509222 locales-all_2.17-97_amd64.deb
 1f2f2dd14dd8b51df891df95b3ff4ffef952a25b 2375782 libc6-i386_2.17-97_amd64.deb
 7e7ba76f56a7e6f64508bb48de37b109ae2f652d 1301848 libc6-dev-i386_2.17-97_amd64.deb
 a3cadfb7b48adebbdfe3cad83d201c891317bf73 2587486 libc6-x32_2.17-97_amd64.deb
 0f8913b788619873f793acf3e49d97ba6734b7e0 1561434 libc6-dev-x32_2.17-97_amd64.deb
 237ed81e9f3d6cd1392688380ce0008e95ad2ae2 226116 nscd_2.17-97_amd64.deb
 0bef543970e4eaac064f0ed9ca2fff9bbb77f124 3486858 libc6-dbg_2.17-97_amd64.deb
 994bdc6e95ef0564e8f4c68d0e914deeac82684a 1050096 libc6-udeb_2.17-97_amd64.udeb
 05a92f56aebc9512eb15415a84edcad57322e423 9992 libnss-dns-udeb_2.17-97_amd64.udeb
 5bd74949c790c55a6f0c2873ff0e3377bd04e07e 16740 libnss-files-udeb_2.17-97_amd64.udeb
Checksums-Sha256: 
 42032b2dddb227f611b116e8d89346e86ec2a353948cc1e0d027d60cd21b870d 5256 eglibc_2.17-97.dsc
 5c6dc0a4f16d7891c88c771beaa0de5f359477f5e08667104acbebc00acd84e9 1062932 eglibc_2.17-97.debian.tar.xz
 d672cbf3be77d44331a1de68c7c1ede786750f20867d98af086652f6f6c3fd24 2136938 glibc-doc_2.17-97_all.deb
 63297812b7bb5e5074c513a37d92962dd7d4face41a74e69cf05dbb68768ece8 13063168 eglibc-source_2.17-97_all.deb
 f36facee5f0ea6c6c5e6efb1b3e4db442f375e6c135a1d45f6dd8dfff06af89b 3845224 locales_2.17-97_all.deb
 8b6a5024228ce1487d5d2c823dc0d18cabf03010566a3e45f695da2615e3ef89 2533060 libc6_2.17-97_amd64.deb
 f2ed84cc4a52eee8ca9b5eb9efa6485d0b2aa1ee754caa7f27d8ab456a731d90 1971536 libc6-dev_2.17-97_amd64.deb
 4dd1d59eff0b6c495c4895291e6452e6fc2a94423792c7291ffb4586e003f911 1449098 libc6-pic_2.17-97_amd64.deb
 8226887d782fe4647c55abf4f31a9b7c9670ac3b5b5d8a508b3d5263d0a4cb0f 754652 libc-bin_2.17-97_amd64.deb
 70798dc947bec8f175dbd3db2cab226990e7ef2982fd11be7f046aa5d4b3f7d8 224216 libc-dev-bin_2.17-97_amd64.deb
 2392bcbe6fd1e854ce93a051a67fc20eb0083c7fea82f20a6b7561e80ede3357 162850 multiarch-support_2.17-97_amd64.deb
 e7526ac5ee339fd95c3d249a881c1cbaffd34d90674ec55a43d3fad1c5fcb664 1582694 libc6-prof_2.17-97_amd64.deb
 c63d18b7ac32fda9466b074f7956955feeb72676868df66abe2794b4881c505c 3509222 locales-all_2.17-97_amd64.deb
 5f785166b529899464fff65f210288a8042de911b1bf7401dfac02d5a3043955 2375782 libc6-i386_2.17-97_amd64.deb
 6d587a122a12549ca93e19f084413991e4a1069226e17fe2c7a916096349c78f 1301848 libc6-dev-i386_2.17-97_amd64.deb
 7d5324ac87422f4b36fd11e6a2cbb960910f3c1a885967ad382c863498b52a7b 2587486 libc6-x32_2.17-97_amd64.deb
 211d6cb3547316b26e406474e29148f161e454952819ca17186ae53876a6a670 1561434 libc6-dev-x32_2.17-97_amd64.deb
 b63a0dfbd306f19d903f35735db1f2f4191bd178b8fd5f376ccedb5e7bdcdd76 226116 nscd_2.17-97_amd64.deb
 d457253c3bbd84a943061201636adc6c3cd82ad7d3676bb3893078e438009357 3486858 libc6-dbg_2.17-97_amd64.deb
 c3b65c9efa043430d3657af2f43e545239bb44975cc4fcfdfae4090b3afa0e93 1050096 libc6-udeb_2.17-97_amd64.udeb
 61c3affcdf33c1c6f1d9a4fa67eda74215960b9fb9a9a9c4a0fd9c35a9fa7654 9992 libnss-dns-udeb_2.17-97_amd64.udeb
 c48d1d9df8ea911e76467962003e97d0813a8c9223b9b8e3dd3b543deedcd419 16740 libnss-files-udeb_2.17-97_amd64.udeb
Files: 
 57f00d74151ecbbdc78dd21ad02542a0 5256 libs required eglibc_2.17-97.dsc
 63de3e084f208a702358a6e4f4612933 1062932 libs required eglibc_2.17-97.debian.tar.xz
 a09d79872c0d0a46abf74bde6196dca9 2136938 doc optional glibc-doc_2.17-97_all.deb
 8d0580b2d4e881fa8bf5f1eb3f853457 13063168 devel optional eglibc-source_2.17-97_all.deb
 42349506d20714cbb34e898a3611f2ef 3845224 localization standard locales_2.17-97_all.deb
 a079bb47c9f9de55f020b9d0afabcf12 2533060 libs required libc6_2.17-97_amd64.deb
 3985cfdcc4531377b8e6fb17b46ce2a7 1971536 libdevel optional libc6-dev_2.17-97_amd64.deb
 90885f6696e35cfdf4d5677e48352a89 1449098 libdevel optional libc6-pic_2.17-97_amd64.deb
 23c360e22c95234966fca8f6a2adc29f 754652 libs required libc-bin_2.17-97_amd64.deb
 d9d49e60c821b17ad5f0e15405fc459a 224216 libdevel optional libc-dev-bin_2.17-97_amd64.deb
 794c60c9d4d4cf23aa76124e6d561309 162850 libs required multiarch-support_2.17-97_amd64.deb
 f9061a2e6cd609de8654f8f00bd27a30 1582694 libdevel extra libc6-prof_2.17-97_amd64.deb
 eacbfae9a27043ecef93d7399fedb382 3509222 localization extra locales-all_2.17-97_amd64.deb
 7983152f2e0ab5efcc1be730ec07f77d 2375782 libs optional libc6-i386_2.17-97_amd64.deb
 685f75e2bbd2e34a51d12a4da59ae0f8 1301848 libdevel optional libc6-dev-i386_2.17-97_amd64.deb
 2bf2255ddf28c4802f1208d87e80c139 2587486 libs optional libc6-x32_2.17-97_amd64.deb
 5273d89e7da02cfe3e4851711efc8f94 1561434 libdevel optional libc6-dev-x32_2.17-97_amd64.deb
 0dc84b09e1d270b15629e15400b6f0e4 226116 admin optional nscd_2.17-97_amd64.deb
 f81e41c155ccb1d352c358e4a1028325 3486858 debug extra libc6-dbg_2.17-97_amd64.deb
 43ea7fd64dfffb9f7579736c83a41f8d 1050096 debian-installer extra libc6-udeb_2.17-97_amd64.udeb
 dfdd4d3854aee639ea5933f7f2b49400 9992 debian-installer extra libnss-dns-udeb_2.17-97_amd64.udeb
 e755ad2b08e0b9b1fc315ce2fcfff0ac 16740 debian-installer extra libnss-files-udeb_2.17-97_amd64.udeb
Package-Type: udeb

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

iD8DBQFSmMqJw3ao2vG823MRAs2sAJ9TgnU/vEEMr9ULrIa8eRU5s6hSNgCggNkK
MbAeUK7sAY0J+Rft3qNykKg=
=LINK
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: