[Libguestfs] [PATCH nbdkit v2 1/2] tests: Invoke MALLOC_CHECK_ correctly and only for glibc

Richard W.M. Jones rjones at redhat.com
Mon Aug 23 20:09:46 UTC 2021


On Mon, Aug 23, 2021 at 09:36:44AM -0500, Eric Blake wrote:
> On Sun, Aug 22, 2021 at 01:57:15PM +0100, Richard W.M. Jones wrote:
> > MALLOC_CHECK_ and MALLOC_PERTURB_ environment variables have been
> > replaced in glibc 2.34 by GLIBC_TUNABLES settings[1][2].  In addition
> > the new glibc requires that you preload a new library called
> > libc_malloc_debug.so.0 to get these features.
> 
> Do we actually require the soname .so.0, or can we get by with the
> more generic version-less .so (and thus continue to work when glibc
> bumps to .so.1, provided that bump is backwards compatible for our
> usage)?

For Fedora the naked .so file is packaged in glibc-devel.  You could
argue that developers are going to need that file in order to build
anything (since it's required to link programs), so I guess it is OK
to remove the ".0".

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org




More information about the Libguestfs mailing list