Comment 2 for bug 1950777

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Test derived from the BZ

9.2-1 and 10.0-1 both do work for x86 (as expected)

$ 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/x86_64-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

But on s390x (we only see the FTBFS on s390x+arm64)
(Path obviously has to be adapted)

#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;
}

Impish fine
root@i-gluster:~# ./gtest

Jammy broken
root@j-gluster:~# ./gtest
dlerror = /lib/s390x-linux-gnu/libtcmalloc.so.4: cannot allocate memory in static TLS block