Mercurial > gnulib
annotate modules/nonblocking-tests @ 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 | 2c92a419ee26 |
children |
rev | line source |
---|---|
34204 | 1 Files: |
2 tests/test-nonblocking.c | |
3 tests/macros.h | |
4 | |
5 Depends-on: | |
6 close | |
37064
2c92a419ee26
tests: don't assume getdtablesize () <= 10000000
Paul Eggert <eggert@cs.ucla.edu>
parents:
34281
diff
changeset
|
7 getdtablesize |
34204 | 8 pipe-posix |
34280
b739f449fb23
nonblocking: Add tests for pipes.
Bruno Haible <bruno@clisp.org>
parents:
34227
diff
changeset
|
9 nonblocking-pipe-tests |
34281
4e3b32f3a632
nonblocking: Add tests for sockets.
Bruno Haible <bruno@clisp.org>
parents:
34280
diff
changeset
|
10 nonblocking-socket-tests |
34204 | 11 |
12 configure.ac: | |
13 | |
14 Makefile.am: | |
15 TESTS += test-nonblocking | |
16 check_PROGRAMS += test-nonblocking | |
34227
85c6344a4f0e
nonblocking: reduce dependency
Eric Blake <eblake@redhat.com>
parents:
34207
diff
changeset
|
17 test_nonblocking_LDADD = $(LDADD) $(LIBSOCKET) |