view modules/fstatat @ 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 b31a9ac52d07
children 2d6db3f14060
line wrap: on
line source

Description:
fstatat() function: Return information about a file at a directory.

Files:
lib/fstatat.c
lib/at-func.c
m4/fstatat.m4
m4/lstat.m4

Depends-on:
sys_stat
extensions
at-internal     [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
dosname         [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
errno           [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
extern-inline   [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
fchdir          [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
fcntl-h         [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
lstat           [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
openat-die      [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
openat-h        [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]
save-cwd        [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1]

configure.ac:
gl_FUNC_FSTATAT
if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
  AC_LIBOBJ([fstatat])
fi
gl_SYS_STAT_MODULE_INDICATOR([fstatat])

Makefile.am:

Include:
<sys/stat.h>

License:
GPL

Maintainer:
Jim Meyering, Eric Blake, Paul Eggert