Mercurial > gnulib
view modules/relocatable-prog-wrapper @ 37246:5cfb3a67238d
regex: avoid glibc deadlock during configure
glibc has a known bug where certain corruptions of the heap can
cause malloc to default to printing a debug message that includes
a backtrace, but the act of getting the backtrace uses dlopen
which in turn calls into malloc, causing a recursive lock ending
in deadlock. Thus, when configure is probing for a known glibc
heap corruption bug, the overall configure would hang.
The solution suggested by glibc developers is to force malloc
to quit printing debug messages, which avoids recursive malloc.
* m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
glibc bug 15078 in turn triggers bug 16159.
Reported by Michal Privoznik.
Signed-off-by: Eric Blake <eblake@redhat.com>
author | Eric Blake <eblake@redhat.com> |
---|---|
date | Tue, 03 Dec 2013 10:34:13 -0700 |
parents | e351d4cfa94b |
children | 1f14c6dd175d |
line wrap: on
line source
Description: Source for the wrapper program that is required for making programs relocatable that depend on shared libraries installed with the same installation prefix. Files: build-aux/install-reloc lib/relocwrapper.c lib/progname.h lib/progname.c lib/progreloc.c lib/areadlink.h lib/areadlink.c lib/careadlinkat.h lib/careadlinkat.c lib/allocator.h lib/allocator.c lib/readlink.c lib/canonicalize-lgpl.c lib/malloca.h lib/malloca.c lib/relocatable.h lib/relocatable.c lib/setenv.c lib/c-ctype.h lib/c-ctype.c m4/malloca.m4 m4/canonicalize.m4 m4/eealloc.m4 m4/environ.m4 m4/longlong.m4 m4/readlink.m4 m4/relocatable-lib.m4 m4/setenv.m4 Depends-on: alloca-opt double-slash-root errno pathmax ssize_t stdbool stdint stdlib unistd environ intprops string verify configure.ac: gl_FUNC_READLINK_SEPARATE gl_CANONICALIZE_LGPL_SEPARATE gl_MALLOCA gl_RELOCATABLE_LIBRARY gl_FUNC_SETENV_SEPARATE Makefile.am: Include: License: GPL Maintainer: Bruno Haible, Ben Pfaff