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 <stdio.h>
#include <dlfcn.h>
#include <assert.h>

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

Reply via email to