Your message dated Mon, 13 Jul 2020 19:49:11 +0000
with message-id <e1jv4rr-0008yx...@fasolo.debian.org>
and subject line Bug#964141: fixed in glibc 2.31-1
has caused the Debian Bug report #964141,
regarding libc6: "cannot allocate memory in static TLS block" with some library 
combinations on arm64
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 ow...@bugs.debian.org
immediately.)


-- 
964141: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964141
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: libc6
Version: 2.30-8
Control: block 960073 by -1

Dear glibc maintainers,

Originally I got two reports about issues when loading Qt WebEngine library
from Python using PyQt and PySide bindings, see #960073 and #963709 for
context.

However I can reproduce it without any Python code and even without Qt.

The attached C program tries to load three popular libraries: libsystemd.so.0,
libavformat.so.58 (from ffmpeg) and libglapi.so.0 (from mesa).

When trying to run it on arm64, I get the following:

$ gcc test.c -ldl
$ ./a.out
Failed to load libglapi.so.0: /usr/lib/aarch64-linux-gnu/libglapi.so.0: cannot 
allocate memory in static TLS block

This does not happen on other architectures. This makes me think the amount
of TLS storage on arm64 is too low, can it be somehow increased?

When swapping second and third blocks, it works fine.

Here is an upstream bug report that may be related:
https://sourceware.org/bugzilla/show_bug.cgi?id=25051

And here is patch, currently under review, that may be also related:
https://sourceware.org/pipermail/libc-alpha/2020-May/114247.html

If you think it is a bug not in glibc/dlopen but in one of these libraries,
please let me know.

--
Dmitry Shachnev
#include <dlfcn.h>
#include <stdio.h>

int main() {
    void *systemd_handle, *avformat_handle, *glapi_handle;

    systemd_handle = dlopen("libsystemd.so.0", RTLD_LAZY);
    if (!systemd_handle) {
        printf("Failed to load libsystemd.so.0: %s\n", dlerror());
    }

    avformat_handle = dlopen("libavformat.so.58", RTLD_LAZY);
    if (!avformat_handle) {
        printf("Failed to load libavformat.so.58: %s\n", dlerror());
        return 1;
    }

    glapi_handle = dlopen("libglapi.so.0", RTLD_LAZY);
    if (!glapi_handle) {
        printf("Failed to load libglapi.so.0: %s\n", dlerror());
        return 1;
    }

    dlclose(glapi_handle);
    dlclose(avformat_handle);
    dlclose(systemd_handle);
    return 0;
}

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: glibc
Source-Version: 2.31-1
Done: Aurelien Jarno <aure...@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 964...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Aurelien Jarno <aure...@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 ftpmas...@ftp-master.debian.org)


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

Format: 1.8
Date: Mon, 13 Jul 2020 21:34:17 +0200
Source: glibc
Architecture: source
Version: 2.31-1
Distribution: unstable
Urgency: medium
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Changed-By: Aurelien Jarno <aure...@debian.org>
Closes: 964141
Changes:
 glibc (2.31-1) unstable; urgency=medium
 .
   [ Samuel Thibault ]
   * debian/control: Build-depend on gcc-10 version that defaults to i686 on
     hurd-i386.
   * debian/control: Build-depend on mig-for-host instead of mig.
   * debian/sysdeps/hurd-i386.mk: Drop adding -march=i686.
   * debian/hurd-i386/git-pselect.diff: Fix pselect atomicity.
   * debian/hurd-i386/git-fexecve.diff: Fix fexecve.
   * debian/hurd-i386/git-cond_destroy.diff: Fix cond_destroy synchronization
     with woken threads.
   * debian/hurd-i386/git-holes.diff: Fix detecting support for file holes.
   * debian/hurd-i386/local-clock_gettime_MONOTONIC.diff: Also fix clock_getres
     with CLOCK_MONOTONIC.
   * debian/hurd-i386/git-longjmp-onstack.diff: Fix longjmp-ing from altstack.
   * debian/hurd-i386/git-register-atfork2.diff: Fix register-atfork ordering.
   * debian/hurd-i386/git-intr-msg-unwind.diff: Fix unwinding over interruptible
     RPC.
   * debian/hurd-i386/git-strtol-test.diff: Fix testing strtol errors.
   * debian/testsuite-xfail-debian.mk: Update.
   * debian/debhelper.in/libc-udeb.install.hurd-i386: Add missing
     libmachuser/libhurduser.
   * debian/rules.d/debhelper.mk: Add dh_link pass to libc-udeb binaryinst.
   * debian/debhelper.in/libc-udeb.links.hurd-i386: Add missing ld.so link.
   * debian/rules: Clean links file.
 .
   [ Aurelien Jarno ]
   * debian/patches/git-updates.diff: update from upstream stable branch.
   * debian/patches/any/git-surplus-tls-accounting.diff: backport TLS surplus
     accounting from upstream.  Closes: #964141.
   * debian/control.in/main: update breaks on cross-toolchain-base* as they
     will need changes to build with glibc 2.31.
Checksums-Sha1:
 e26a99b09095795b87049f9c2af9df218d7126e2 8195 glibc_2.31-1.dsc
 ff7a612c7be352d110824e44c723da2cd19323b7 829180 glibc_2.31-1.debian.tar.xz
 da46cdf0fac807a667e6e71f2f6fa066074207d9 6975 glibc_2.31-1_source.buildinfo
Checksums-Sha256:
 411ff25e1d4395b4581dfdaef6e888322758444b1d49468d325682015f7c8dea 8195 
glibc_2.31-1.dsc
 b785b0fd0a1e4efa91c6cb56615ce72df63684a6c1c2012f677263904189149e 829180 
glibc_2.31-1.debian.tar.xz
 ed2b14812ec4d3779350a7172e7d85e132ca4dbea50e0cf98a028b905b537aaa 6975 
glibc_2.31-1_source.buildinfo
Files:
 18ac19ea1bfae88b1a30ac5a7039a0a4 8195 libs required glibc_2.31-1.dsc
 ff3db2f18a4bed64042321ae0f1aeaa9 829180 libs required 
glibc_2.31-1.debian.tar.xz
 c81ffa3a90e05a207af3ca78b5b3e068 6975 libs required 
glibc_2.31-1_source.buildinfo

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

iQIzBAEBCgAdFiEEUryGlb40+QrX1Ay4E4jA+JnoM2sFAl8MuGYACgkQE4jA+Jno
M2sxCg//UJz2EsabFpIlftNVMSCrXpEakK75b6fQRzoTw2gtTDSNjcInQVOhCAZC
TujIWMKBz+iFIyY/8A1EXtx4J0/Jt2kejEfLY09SF7/t5UjQz/+kluoTSTRuEkC6
NB/rMHJiPbbMPzkg5K8DwL3YOw0s67icuvg8R+nFuMkGA1qcznCQ4LlNnwNmLkny
/tzUnZiMhOw0fXqZPPwZHkqM5uRWCmfpogHeH3x0dEuedWJmtmYnG4+vmrdUcZoc
5lBTG/UpOOBVBhoTQlc9BAJ7U777KHla6jz9au5NUpfvk1zJtBEI+tFQyr0vtQjs
ikIB/11fV1GZpue1gobtHnA2Yo8tPeO6v49n9tJU603Z91RUOrizNttmy28u2ZL8
ZPDsZDHpGibnimwGs810b0Nv2o5qlkrfTR+5YkjLoRCVrM947NoTIYdNreFHjku2
SdUvYH7EVKuTAANG9ESc0vFWlH8L1XMZ/5tsbAOLAoPNSo8HQXe2gL9JtVyNVmM6
+YXD7N6P396/bgOlI8Y9Xuo5pGnBuDpxjd4BowXaG5SBKLkoyJupl61aQ/r+Q79H
v/oNk4L8DOcz4+1HvsC+coSdccFoE7q495WwXQI+wl0ybnkNqGagSB/ED72VBE4a
VLHqoTaOiwkx/oq3gNow/r9U27jrXO031BWgCMoplJnyR/KNVZs=
=IPkd
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to