Go to file
Stefan Liebler 29fddfc7df Use libnss_files.so for tests posix/bug-ga2 and resolv/tst-leaks2 [BZ #26821]
The tests posix/bug-ga2-mem and resolv/mtrace-tst-leaks2 are failing on
fedora 33 as mtrace reports memory leaks.

The /etc/nsswitch.conf differs between
Fedora 32: hosts:      files dns myhostname
Fedora 33: hosts:      files resolve [!UNAVAIL=return] myhostname dns

Therefore /lib64/libnss_resolve.so.2 (from systemd) and the dependencies
libgcc_s.so.1 and libpthread.so.0 are loaded.

Usually all malloc'ed resources from getaddrinfo / gethostbyname are freed
and the libraries are dlclose'd in nss/nsswitch.c:libc_freeres_fn (free_mem).
Unfortunately, /lib64/libnss_resolve.so.2 is marked with DF_1_NODELETE.
As this library is not unmapped, you'll see "Memory not freed".

Therefore those tests are now only relying on libnss_files.so by making
them test-container tests and providing the required configuration files.

By moving the tests to tests-container, those are now running with
"make check".  Therefore the mtrace part of the tests are also moved
from "make xcheck" to "make check".

bug-ga2.c is now using test-driver.c in order to support WAIT_FOR_DEBUGGER
environment variable.
2020-11-23 10:51:24 +01:00
argp Rename __LONG_DOUBLE_USES_FLOAT128 to __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 2020-04-30 08:52:08 -05:00
assert Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
benchtests New benchtest: pthread locks 2020-10-21 11:03:52 -04:00
bits Replace Minumum/minumum with Minimum/minimum 2020-10-06 05:15:11 -07:00
catgets Remove internal usage of extensible stat functions 2020-09-11 14:35:32 -03:00
ChangeLog.old Prepare for glibc 2.32 release. 2020-08-04 22:17:00 -04:00
conform hurd: Remove some remnants of cthreads 2020-11-15 13:16:03 +01:00
crypt Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
csu nptl: Move stack list variables into _rtld_global 2020-11-16 19:33:30 +01:00
ctype Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
debug Remove __warndecl 2020-11-05 15:11:42 +05:30
dirent Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
dlfcn Add {,sysdep-}ld-library-path make variable 2020-11-16 21:15:20 +00:00
elf Add {,sysdep-}ld-library-path make variable 2020-11-16 21:15:20 +00:00
gmon Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
gnulib Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
grp Revert "Fix missing redirects in testsuite targets" 2020-10-08 10:09:30 +02:00
gshadow shadow: Implement fgetspent_r using __nss_fgetent_r 2020-07-21 07:34:43 +02:00
hesiod nss_hesiod: Use NSS_DECLARE_MODULE_FUNCTIONS 2020-02-13 09:14:44 +01:00
htl hurd: Remove some remnants of cthreads 2020-11-15 13:16:03 +01:00
hurd hurd report-wait: Fix stpcpy usage 2020-11-23 00:31:41 +00:00
iconv iconv: Accept redundant shift sequences in IBM1364 [BZ #26224] 2020-11-04 12:19:38 +01:00
iconvdata iconv: Accept redundant shift sequences in IBM1364 [BZ #26224] 2020-11-04 12:19:38 +01:00
include Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
inet Add {,sysdep-}ld-library-path make variable 2020-11-16 21:15:20 +00:00
intl Revert "Fix missing redirects in testsuite targets" 2020-10-08 10:09:30 +02:00
io Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
libio Revert "Fix missing redirects in testsuite targets" 2020-10-08 10:09:30 +02:00
locale Do not use array parameter to new_composite_name (bug 26726) 2020-10-30 21:39:12 +00:00
localedata Revert "Fix missing redirects in testsuite targets" 2020-10-08 10:09:30 +02:00
login Linux: unlockpt needs to fail with EINVAL, not ENOTTY (bug 26053) 2020-10-07 10:56:00 +02:00
mach hurd: Remove some remnants of cthreads 2020-11-15 13:16:03 +01:00
malloc Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
manual Argument Syntax: Use "option", @option, and @command. 2020-10-30 13:08:38 -04:00
math math: Regenerate auto-libm-test-out-j0 2020-08-08 16:41:40 -03:00
mathvec Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
misc Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
nis Disable spurious -Warray-bounds for ypclnt.c (bug 26687) 2020-10-30 21:40:25 +00:00
nptl Add {,sysdep-}ld-library-path make variable 2020-11-16 21:15:20 +00:00
nptl_db nptl: Move stack list variables into _rtld_global 2020-11-16 19:33:30 +01:00
nscd Remove stat wrapper functions, move them to exported symbols 2020-10-09 17:02:06 -03:00
nss Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
po Update translations. 2020-08-04 20:31:51 -04:00
posix Use libnss_files.so for tests posix/bug-ga2 and resolv/tst-leaks2 [BZ #26821] 2020-11-23 10:51:24 +01:00
pwd Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
resolv Use libnss_files.so for tests posix/bug-ga2 and resolv/tst-leaks2 [BZ #26821] 2020-11-23 10:51:24 +01:00
resource Move vtimes to a compatibility symbol 2020-10-19 16:44:20 -03:00
rt rt: Fix typos in comments in <aio.h> 2020-10-19 10:55:00 +02:00
scripts hurd: Remove some remnants of cthreads 2020-11-15 13:16:03 +01:00
setjmp Fix GCC 11 -Warray-parameter warning for __sigsetjmp (bug 26647) 2020-10-05 16:46:46 +00:00
shadow shadow: Implement fgetspent_r using __nss_fgetent_r 2020-07-21 07:34:43 +02:00
signal Remove tls.h inclusion from internal errno.h 2020-11-13 12:59:19 -03:00
socket Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
soft-fp Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
stdio-common tests: Remove NULL check for an array 2020-11-12 13:29:59 +05:30
stdlib Revert "Fix missing redirects in testsuite targets" 2020-10-08 10:09:30 +02:00
string Don't use nested function in test-ffs 2020-11-12 14:54:24 +05:30
sunrpc sunrpc: Adjust RPC function declarations to match Sun's (bug 26686] 2020-10-08 12:53:09 -06:00
support support: Add create_temp_file_in_dir 2020-10-16 14:19:23 -03:00
sysdeps hurd: Enable using ifunc 2020-11-16 21:15:20 +00:00
sysvipc sysvipc: Return EINVAL for invalid shmctl commands 2020-10-14 11:49:55 -03:00
termios Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
time linux: Allow adjtime with NULL argument [BZ #26833] 2020-11-09 11:19:35 -03:00
timezone Update timezone code from tzcode 2020a 2020-05-15 09:19:27 -07:00
wcsmbs mbstowcs: Document, test, and fix null pointer dst semantics (Bug 25219) 2020-06-01 12:26:32 -04:00
wctype Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
.gitattributes Assume __NR_openat is always defined 2016-03-23 23:35:08 +01:00
.gitignore Add *.pyc to .gitignore 2015-05-18 15:26:26 +05:30
abi-tags Remove the bulk of the NaCl port. 2017-05-20 08:09:10 -04:00
aclocal.m4 LIBC_SLIBDIR_RTLDDIR: substitute arguments in single quotes 2018-01-25 17:20:28 +01:00
config.h.in Remove --enable-obsolete-rpc configure flag 2020-07-13 19:36:35 +02:00
config.make.in Remove --enable-obsolete-rpc configure flag 2020-07-13 19:36:35 +02:00
configure Remove --enable-obsolete-rpc configure flag 2020-07-13 19:36:35 +02:00
configure.ac Remove --enable-obsolete-rpc configure flag 2020-07-13 19:36:35 +02:00
COPYING Update to latest versions of GPL-2.0 and LGPL-2.1 2013-09-09 12:52:48 +10:00
COPYING.LIB Update to latest versions of GPL-2.0 and LGPL-2.1 2013-09-09 12:52:48 +10:00
extra-lib.mk Rename cppflags-iterator.mk to libof-iterator.mk, remove extra-modules.mk. 2017-05-09 07:06:29 -04:00
gen-locales.mk Improve gen-locales.mk and gen-locale.sh to make test files with @ options work 2018-02-27 17:01:57 +01:00
INSTALL Linux: Require properly configured /dev/pts for PTYs 2020-10-07 14:55:50 +02:00
libc-abis libc-abis: Define ABSOLUTE ABI [BZ #19818][BZ #23307] 2018-07-05 18:06:43 +01:00
libof-iterator.mk Rename cppflags-iterator.mk to libof-iterator.mk, remove extra-modules.mk. 2017-05-09 07:06:29 -04:00
LICENSES Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
MAINTAINERS Add MAINTAINERS 2017-05-11 13:38:30 -04:00
Makeconfig Add {,sysdep-}ld-library-path make variable 2020-11-16 21:15:20 +00:00
Makefile Set locale related environment variables in debugglibc.sh 2020-09-24 14:58:36 +02:00
Makefile.help Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Makefile.in New make target to only build benchmark binaries 2016-04-20 10:23:28 +05:30
Makerules Don't mix linker error messages into edited scripts 2020-08-04 19:52:56 -04:00
NEWS iconv: Accept redundant shift sequences in IBM1364 [BZ #26224] 2020-11-04 12:19:38 +01:00
o-iterator.mk Fri Mar 17 12:58:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu> 1995-03-17 18:42:51 +00:00
README Documentation for the RISC-V 32-bit port 2020-08-27 08:17:44 -07:00
Rules Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
shlib-versions Remove --enable-obsolete-nsl configure flag 2020-07-08 17:25:57 +02:00
test-skeleton.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
version.h Open master branch for glibc 2.33 development. 2020-08-04 23:41:43 -04:00

This directory contains the sources of the GNU C Library.
See the file "version.h" for what release version you have.

The GNU C Library is the standard system C library for all GNU systems,
and is an important part of what makes up a GNU system.  It provides the
system API for all programs written in C and C-compatible languages such
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system.

In GNU/Linux systems, the C library works with the Linux kernel to
implement the operating system behavior seen by user applications.
In GNU/Hurd systems, it works with a microkernel and Hurd servers.

The GNU C Library implements much of the POSIX.1 functionality in the
GNU/Hurd system, using configurations i[4567]86-*-gnu.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 3.2 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.

The GNU C Library supports these configurations for using Linux kernels:

	aarch64*-*-linux-gnu
	alpha*-*-linux-gnu
	arc*-*-linux-gnu
	arm-*-linux-gnueabi
	csky-*-linux-gnuabiv2
	hppa-*-linux-gnu
	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	ia64-*-linux-gnu
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	powerpc-*-linux-gnu	Hardware or software floating point, BE only.
	powerpc64*-*-linux-gnu	Big-endian and little-endian.
	s390-*-linux-gnu
	s390x-*-linux-gnu
	riscv32-*-linux-gnu
	riscv64-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu

If you are interested in doing a port, please contact the glibc
maintainers; see https://www.gnu.org/software/libc/ for more
information.

See the file INSTALL to find out how to configure, build, and install
the GNU C Library.  You might also consider reading the WWW pages for
the C library at https://www.gnu.org/software/libc/.

The GNU C Library is (almost) completely documented by the Texinfo manual
found in the `manual/' subdirectory.  The manual is still being updated
and contains some known errors and omissions; we regret that we do not
have the resources to work on the manual as much as we would like.  For
corrections to the manual, please file a bug in the `manual' component,
following the bug-reporting instructions below.  Please be sure to check
the manual in the current development sources to see if your problem has
already been corrected.

Please see https://www.gnu.org/software/libc/bugs.html for bug reporting
information.  We are now using the Bugzilla system to track all bug reports.
This web page gives detailed information on how to report bugs properly.

The GNU C Library is free software.  See the file COPYING.LIB for copying
conditions, and LICENSES for notices about a few contributions that require
these additional notices to be distributed.  License copyright years may be
listed using range notation, e.g., 1996-2015, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.