On Mon, Nov 15, 2021 at 11:41 AM Patrick Matthäi wrote:
>
> Thanks for your detailed Report. I am cirrently in vacation Till the 25.,
> Maybe you could NMU it? 0-day welcome
Sure, enjoy your Vacation!
> Am 15.11.2021 11:04 schrieb Christian Ehrhardt
> :
>
> Package: glusterfs
> Version: 10.0-1
>
> Hi,
> as found in Fedora [1] and Ubuntu [2] the default usage of tcmalloc in
> glusterfs 10 [3] is causing issues.
>
> One example consequence is libvirt which thereby has become an FTBFS in sid.
> But there might be much more failing due to that as essentially it can
> not be dlopen'ed at all there.
>
> AFAICS it fails on arm64 and s390x, maybe more architectures are
> affected as I couldn't test them all.
>
> A simplified reproducer is this (on s390x):
>
> $ apt install libglusterfs-dev gcc
> $ cat gtest.c
> #include
> #include
> #include
>
> int main(int argc, char **argv)
> {
> void *h = dlopen("/usr/lib/s390x-linux-gnu/libglusterfs.so.0", RTLD_NOW);
> if (!h) fprintf (stderr, "dlerror = %s\n", dlerror());
> return 0;
> }
> $ gcc -Wall gtest.c -o gtest -ldl -g
> $ ./gtest
> $ ./gtest
> dlerror = /lib/s390x-linux-gnu/libtcmalloc.so.4: cannot allocate
> memory in static TLS block
>
> Until this is resolved more in depth I'd suggest to follow Fedora [1]
> and disable tcmalloc on non-amd64 (which will make it use the former
> gluster mempool on those).
>
> [1]: https://bugzilla.redhat.com/show_bug.cgi?id=2018439
> [2]: https://bugs.launchpad.net/ubuntu/+source/glusterfs/+bug/1950777
> [3]:
> https://src.fedoraproject.org/rpms/glusterfs/c/80badd1442cc0de438a78d0c35a7d11377e72bea?branch=rawhide
>
> --
> Christian Ehrhardt
> Staff Engineer, Ubuntu Server
> Canonical Ltd
>
>
--
Christian Ehrhardt
Staff Engineer, Ubuntu Server
Canonical Ltd