Mercurial > gnulib
view modules/canon-host @ 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 | 82224ec92848 |
children | 8cd851acf6a6 |
line wrap: on
line source
Description: Canonicalize a host name: return a name other hosts can understand, i.e. usually the host name including FQDN. Files: lib/canon-host.c lib/canon-host.h m4/canon-host.m4 Depends-on: getaddrinfo strdup configure.ac: gl_PREREQ_CANON_HOST Makefile.am: lib_SOURCES += canon-host.c Include: "canon-host.h" Link: $(GETADDRINFO_LIB) License: LGPL Maintainer: Jim Meyering