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

Bug#731082: marked as done (ld.so.cache parsing code does not deal with mixed endianess multiarch, causing segfaults)



Your message dated Sun, 03 Jan 2021 16:19:11 +0000
with message-id <E1kw663-0008b5-Bx@fasolo.debian.org>
and subject line Bug#731082: fixed in glibc 2.31-7
has caused the Debian Bug report #731082,
regarding ld.so.cache parsing code does not deal with mixed endianess multiarch, causing segfaults
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.)


-- 
731082: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731082
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: qemu-user-static
Version: 1.7.0+dfsg-2
Severity: normal

Dear Maintainer,

I managed to run:
$ qemu-ppc-static /lib/powerpc-linux-gnu/libc.so.6

which prints the usual text, but so far that's the only program that
hasn't failed with:

$ qemu-ppc-static ./bin/true
Invalid data memory access: 0xb6d15008
NIP f67e257c   LR f67e2658 CTR 00000000 XER 00000000
MSR 00006040 HID0 00000000  HF 00006000 idx 0
TB 00000000 00000000
GPR00 00000000f67e2634 00000000f6ffecc8 0000000000000000 00000000772b5010
GPR04 00000000f67ec31c 000000000000000b 0000000000000002 0000000000000000
GPR08 0000000000000030 0000000080b40010 00000000f677500a 0000000000000002
GPR12 00000000f67dcb98 0000000000000000 00000000f67fea9c 00000000f67fe8c4
GPR16 0000000000000000 00000000f67fe900 000000000000000a 0000000000000000
GPR20 00000000f67feaf0 00000000f67fd4d8 0000000000000000 00000000ffffffff
GPR24 00000000100006f9 00000000772b5010 000000007f51571d 00000000c059fff4
GPR28 00000000b6d14ff4 00000000200effff 00000000f67fdff4 0000000010077fff
CR 44282042  [ G  G  E  L  E  -  G  E  ]             RES ffffffff
FPR00 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR04 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR08 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR12 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR16 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR20 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR24 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR28 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPSCR 00000000
qemu: uncaught target signal 11 (Segmentation fault) - core dumped

(I tested the /bin/true of coreutils_8.21-1_powerpc.deb to make sure it
wasn't my cross-compiler that was broken)

I must be doing something wrong, but I don't know what, because I
followed exactly the same steps as for armhf, and that one is working
just fine (thanks!).

I also tested on the same system with qemu-ppc (not static),
qemu-ppc64abi32, and with the x86 version of qemu-ppc-static, and all
failed. It was already failing a lot with version 1.6, but I seem to
remember that at least a trivial "return 0" program worked.

Other people seem to have more luck, but I have mostly read posts about
debootstrap or chroots, not about multiarch setups.

According to strace, the segfault happens just after closing
/etc/ld.so.cache. On arm, that's followed by a second check for
/etc/ld.so.nohwcap and then looking everywhere for libc.so.6.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (50, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
armhf
powerpc

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

qemu-user-static depends on no packages.

Versions of packages qemu-user-static recommends:
ii  binfmt-support  2.0.16

Versions of packages qemu-user-static suggests:
ii  sudo  1.8.8-2

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: glibc
Source-Version: 2.31-7
Done: Aurelien Jarno <aurel32@debian.org>

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.

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 731082@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 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@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 03 Jan 2021 17:01:18 +0100
Source: glibc
Architecture: source
Version: 2.31-7
Distribution: unstable
Urgency: medium
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Changed-By: Aurelien Jarno <aurel32@debian.org>
Closes: 731082 973430 976391 977691
Changes:
 glibc (2.31-7) unstable; urgency=medium
 .
   [ Samuel Thibault ]
   * debian/testsuite-xfail-debian.mk: Update with 2.33 tests.
   * debian/patches/hurd-i386/local-clock_gettime_MONOTONIC.diff: Also accept
     CLOCK_MONOTONIC_RAW, CLOCK_REALTIME_COARSE, CLOCK_MONOTONIC_COARSE.
   * debian/patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff: Rename to
     git-hurdsig-SA_SIGINFO.diff.
   * debian/patches/hurd-i386/tg-sigstate_thread_reference.diff: Rename to
     git-sigstate_thread_reference.diff.
   * debian/patches/hurd-i386/git-siginfo_uesp.diff: Fix ss_sp field in
     siginfo.
   * debian/patches/hurd-i386/git-mmap-EINVAL.diff: Fix mmap EINVAL return value.
   * debian/patches/hurd-i386/git-waitid.diff: Support
     WEXITED/WCONTINUED/WSTOPPED/WNOWAIT.
   * debian/patches/hurd-i386/git-hurd-version.diff: Accept including
     hurd/version.h.
   * debian/patches/kfreebsd/submitted-waitid.diff: Refresh.
   * debian/control: Bump hurd-dev build-dep to get proc_waitid RPC.
   * debian/libc0.3.symbols.hurd-i386: Add proc_waitid RPC.
   * debian/debhelper.in/libc-dev.install.hurd-i386: Add missing
     libpthread_syms.a.
 .
   [ Aurelien Jarno ]
   * debian/patches/git-updates.diff: update from upstream stable branch:
     - Fix assertion failure in iconv when converting invalid UCS4
       (CVE-2020-29562).  Closes: #976391.
   * debian/sysdeps/arm64.mk: enable static PIE support on arm64.  Closes:
     #973430.
   * debian/patches/localedata/git-unicode-13-support.diff: backport Unicode 13
     support from upstream.  Closes: #977691.
   * debian/local/manpages/po/pt_BR.po: recode to UTF-8 to make lintian happy.
   * debian/debhelper.in/*.lintian-overrides: update for recent lintian
     versions.
   * debian/patches/any/git-ld.so-cache-endianness-markup.diff: backport ld.so
     cache endianness support from upstream.  Closes: #731082.
Checksums-Sha1:
 1e331fee23e117757d2769f92dd0b2fd4df55382 8198 glibc_2.31-7.dsc
 356dec34f77e672d93d46afb956a69e106933636 900892 glibc_2.31-7.debian.tar.xz
 166a597e48ab8f09db52a6fd9b4e4a24d9eb7f3d 7065 glibc_2.31-7_source.buildinfo
Checksums-Sha256:
 b6534894ab76c394ce87ea5989c7da95f189575f0ed47d10cab35f957f8ba12c 8198 glibc_2.31-7.dsc
 8e36044afa2f37f53d9198fbbbfeabc500c40b1944dad6783b4c04e01049016f 900892 glibc_2.31-7.debian.tar.xz
 4fa5e0ebd5903dc3023987bef8a9e9bcf641ef89fe3f2eb566a4d59236868415 7065 glibc_2.31-7_source.buildinfo
Files:
 5725b5efa8985f7f1617bbf9dc56f995 8198 libs required glibc_2.31-7.dsc
 25010ad628983358039bf4d47b03924b 900892 libs required glibc_2.31-7.debian.tar.xz
 5c2541422e4a3827d82ddc332ef38abe 7065 libs required glibc_2.31-7_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEUryGlb40+QrX1Ay4E4jA+JnoM2sFAl/x628ACgkQE4jA+Jno
M2ta4g/9FYueTtUbGXu9l6/7WxYQ4Gkf4sq7EAXI6F0qpUORpCfRnyWjXR9FSX0z
AWEG3BM48db6t8rte7WJRsxvkHIw0Wmspk2vS+Wu54zdBa45CRojnCiFhn038KWS
0TlJsJe0zDnwghnvmrI7maKW4vA54hufUDdbujvZ6MGDsXUV89Hd1ZxieKiwH+ls
ti7lGMWXgqaPYrgPM1syeSxyYPAcSB3HQdKeY+pZC8+eIO2a0r++6//TLyjkVxOh
3d4b9gERQdS7dyBid3DE41rHGnyI2n69D1MQimGih3PzpThFmujSL+DClaSjoKpV
nCl97KIjt6rig0pwxa8mDnysutmOt96WVRD2WZaHqFZUYATpUVBmtYiELSk1nRRC
3cMeUr5dCPzYJO5qLscxh9hxZSZGq9A7JoHkZRrL0/wW/7ChYiMnZiw9bHr069Db
Na9jESKAoK4KNorY7HeXZwkr3XMil9Oc0msxyHzbyu04D9rUcq4idfBDPiH1iSWF
ebMq760I04jLb3UgMSdaO3kMPcaKSR4/14ynLxnUaODR4SZ6nvyGzmmaALQ671CO
9Bhy1u4VTK5fZYRH2zOPP+/1qkLkBl2FU5EIEBIs5FlfwiAdBmi7/r+utja9iciJ
Kgw3rn3SYoNxXde+LLcqaEIsuGRWWia4FPUlwTGJBaly6u+SPA4=
=DDoC
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: