aboutsummaryrefslogtreecommitdiff
path: root/debug
AgeCommit message (Collapse)AuthorFilesLines
2014-03-13tst-longjmp_chk2: add comments/sanity checkMike Frysinger1-1/+6
If the longjmp checking code is slightly broken, this code can loop forever which isn't too helpful. Add a sanity check to keep that from happening. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2014-02-28Fix fallout from Joseph's untested Makeconfig change.Roland McGrath1-1/+1
2014-02-26Consistently include Makeconfig after defining subdir.Joseph Myers1-2/+2
In <https://sourceware.org/ml/libc-alpha/2014-01/msg00196.html> I noted it was necessary to add includes of Makeconfig early in various subdirectory makefiles for the tests-special variable settings added by that patch to be conditional on configuration information. No-one commented on the general question there of whether Makeconfig should always be included immediately after the definition of subdir. This patch implements that early inclusion of Makeconfig in each directory (which is a lot easier than consistent placement of includes of Rules). Includes are added if needed, or moved up if already present. Subdirectory "all:" targets are removed, since Makeconfig provides one. There is potential for further cleanups I haven't done. Rules and Makerules have code such as ifneq "$(findstring env,$(origin headers))" "" headers := endif to override to empty any value of various variables that came from the environment. I think there is a case for Makeconfig setting all the subdirectory variables (other than subdir) to empty to ensure no outside value is going to take effect if a subdirectory fails to define a variable. (A list of such variables, possibly out of date and incomplete, is in manual/maint.texi.) Rules and Makerules would give errors if Makeconfig hadn't already been included, instead of including it themselves. The special code to override values coming from the environment would then be obsolete and could be removed. Tested x86_64, including that installed binaries are identical before and after the patch. * argp/Makefile: Include Makeconfig immediately after defining subdir. * assert/Makefile: Likewise. * benchtests/Makefile: Likewise. * catgets/Makefile: Likewise. * conform/Makefile: Likewise. * crypt/Makefile: Likewise. * csu/Makefile: Likewise. (all): Remove target. * ctype/Makefile: Include Makeconfig immediately after defining subdir. * debug/Makefile: Likewise. * dirent/Makefile: Likewise. * dlfcn/Makefile: Likewise. * gmon/Makefile: Likewise. * gnulib/Makefile: Likewise. * grp/Makefile: Likewise. * gshadow/Makefile: Likewise. * hesiod/Makefile: Likewise. * hurd/Makefile: Likewise. (all): Remove target. * iconvdata/Makefile: Include Makeconfig immediately after defining subdir. * inet/Makefile: Likewise. * intl/Makefile: Likewise. * io/Makefile: Likewise. * libio/Makefile: Likewise. (all): Remove target. * locale/Makefile: Include Makeconfig immediately after defining subdir. * login/Makefile: Likewise. * mach/Makefile: Likewise. (all): Remove target. * malloc/Makefile: Include Makeconfig immediately after defining subdir. (all): Remove target. * manual/Makefile: Include Makeconfig immediately after defining subdir. * math/Makefile: Likewise. * misc/Makefile: Likewise. * nis/Makefile: Likewise. * nss/Makefile: Likewise. * po/Makefile: Likewise. (all): Remove target. * posix/Makefile: Include Makeconfig immediately after defining subdir. * pwd/Makefile: Likewise. * resolv/Makefile: Likewise. * resource/Makefile: Likewise. * rt/Makefile: Likewise. * setjmp/Makefile: Likewise. * shadow/Makefile: Likewise. * signal/Makefile: Likewise. * socket/Makefile: Likewise. * soft-fp/Makefile: Likewise. * stdio-common/Makefile: Likewise. * stdlib/Makefile: Likewise. * streams/Makefile: Likewise. * string/Makefile: Likewise. * sunrpc/Makefile: Likewise. (all): Remove target. * sysvipc/Makefile: Include Makeconfig immediately after defining subdir. * termios/Makefile: Likewise. * time/Makefile: Likewise. * timezone/Makefile: Likewise. (all): Remove target. * wcsmbs/Makefile: Include Makeconfig immediately after defining subdir. * wctype/Makefile: Likewise. libidn/ChangeLog: * Makefile: Include Makeconfig immediately after defining subdir. localedata/ChangeLog: * Makefile: Include Makeconfig immediately after defining subdir. (all): Remove target. nptl/ChangeLog: * Makefile: Include Makeconfig immediately after defining subdir. nptl_db/ChangeLog: * Makefile: Include Makeconfig immediately after defining subdir.
2014-02-10Use glibc_likely instead __builtin_expect.Ondřej Bílka30-47/+47
2014-02-08tst-backtrace4: expand output even on failuresMike Frysinger1-7/+8
When debugging failures in this test, it's helpful to see as much output as possible. So rather than returning immediately, let the code run as far as it can. We still mark failures as soon as they happen. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2014-02-08tst-longjmp_chk3: new test for checking sigaltstack edge casesMike Frysinger2-0/+87
Make sure the longjmp checking logic catches stacks that are slightly outside of a valid alternative signal stack. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2014-02-08tests: unify fortification handler logicMike Frysinger3-59/+15
We have multiple tests that copy & paste the same logic for disabling the fortification output. Let's unify this in the test-skeleton instead. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2014-02-08tst-longjmp_chk: add comments and convert to test-skeletonMike Frysinger1-2/+7
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2014-01-01Update remaining copyright datesAllan McRae3-3/+3
Update copyright years that are not handled by scripts/update-copyright.
2014-01-01Update copyright notices with scripts/update-copyrightsAllan McRae101-101/+101
2013-12-05Remove unused variables in __stpncpy_chkSiddhesh Poyarekar1-3/+0
2013-12-04Refactor several debug routines.Ondřej Bílka6-288/+6
To simplify additions of debug routines we replace a custom function implementation by a simple call.
2013-08-29Fix typos.Ondřej Bílka1-1/+1
2013-08-20PowerPC: fix backtrace to handle signal trampolinesAdhemerval Zanella3-4/+32
This patch fixes backtrace for PPC32 and PPC64 to correctly handle signal trampolines. The 'debug/tst-backtrace6.c' also check for SA_SIGINFO handling, where is triggers another vDSO symbols for PPC32.
2013-06-11Port remaining string benchmarksSiddhesh Poyarekar1-24/+0
There were a few more string benchmarks (strcpy_chk and stpcpy_check) in the debug directory that needed to be ported over.
2013-06-07Avoid use of "register" as optimization hint.Joseph Myers2-4/+4
2013-06-06Fix leading whitespaces.Ondrej Bilka1-1/+1
2013-05-31Link extra-libs consistently with libc and ld.so.Joseph Myers1-10/+0
2013-05-16Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).Ryan S. Arnold2-0/+2
2013-05-06Move getlogin_r_chk to login/ subdir.Roland McGrath3-33/+5
2013-05-06Move ptsname_r_chk to login/ subdir.Roland McGrath3-30/+5
2013-02-13Remove __ptrvalue, __bounded and __unbounded.Joseph Myers1-2/+2
2013-02-08Remove CHECK_N and bp-checks.h.Joseph Myers1-2/+0
2013-02-01Remove BOUNDED_N and BOUNDED_1.Joseph Myers1-3/+2
2013-01-24Avoid backtrace tests matching filenames when searching for function names.Joseph Myers5-65/+65
2013-01-18Add tests that backtrace and backtrace_symbols produce correct results.Joseph Myers5-1/+501
2013-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers96-111/+96
2013-01-01Add script to update copyright notices and reformat some to facilitate its use.Joseph Myers1-2/+1
2013-01-01Update copyright years.David S. Miller3-6/+6
* catgets/gencat.c: Update copyright year. * csu/version.c: Likewise. * debug/catchsegv.sh: Likewise. * debug/pcprofiledump.c: Likewise. * debug/xtrace.sh: Likewise. * elf/ldconfig.c: Likewise. * elf/ldd.bash.in: Likewise. * elf/pldd.c: Likewise. * elf/sotruss.ksh: Likewise. * elf/sprof.c: Likewise. * iconv/iconv_prog.c: Likewise. * iconv/iconvconfig.c: Likewise. * locale/programs/locale.c: Likewise. * locale/programs/localedef.c: Likewise. * login/programs/pt_chown.c: Likewise. * malloc/memusage.sh: Likewise. * malloc/memusagestat.c: Likewise. * malloc/mtrace.pl: Likewise. * nscd/nscd.c: Likewise. * nss/getent.c: Likewise. * nss/makedb.c: Likewise. * posix/getconf.c: Likewise.
2012-11-29Mention that __chk_fail is a public ABI in test-strcpy_chk.cFlorian Weimer1-0/+3
* debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
2012-11-15Update --version copyright dates for memusagestat and pcprofiledump.Joseph Myers1-1/+1
2012-11-09Support --with-pkgversion and --with-bugurl.Joseph Myers4-13/+21
2012-10-19Add debug IFUNC testsH.J. Lu5-2/+47
2012-09-07Rename LDFLAGS-XXX to LDLIBS-XXX for -lstdc++H.J. Lu1-6/+6
2012-08-17Clean up definition of _LIBC_REENTRANT and _IO_MTSAFE_IO.Roland McGrath1-27/+27
2012-06-13Suppress sign-conversion warning from FD_SET.Paul Pluzhnikov1-4/+4
[BZ #14210] See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>. * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int, not unsigned long int. * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
2012-05-31tests: move -D_FORTIFY_SOURCE to CPPFLAGSMike Frysinger1-4/+8
The -D_FORTIFY_SOURCE flags are being added to the test-specific CFLAGS values when they should be the test-specific CPPFLAGS values. Otherwise the values don't override the user-specified CPPFLAGS and might end up breaking the tests. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-05-24Remove use of INTDEF/INTUSE in libioAndreas Schwab10-41/+30
2012-04-29Fix attributes for fortify functions.Marek Polacek1-1/+1
2012-04-18Remove all traces of reg_char.David S. Miller4-4/+4
* sysdeps/generic/memcopy.h (reg_char): Delete. * debug/strcat_chk.c: Use char, not reg_char. * debug/strcpy_chk.c: Likewise. * debug/strncat_chk.c: Likewise. * debug/strncpy_chk.c: Likewise. * string/memchr.c: Likewise. * string/memrchr.c: Likewise. * string/rawmemchr.c: Likewise. * string/strcat.c: Likewise. * string/strchr.c: Likewise. * string/strchrnul.c: Likewise. * string/strcmp.c: Likewise. * string/strcpy.c: Likewise. * string/strncat.c: Likewise. * string/strncmp.c: Likewise. * string/strncpy.c: Likewise.
2012-03-27Merge branch 'elf-move'Andreas Jaeger2-20/+147
Conflicts: debug/backtracesymsfd.c sysdeps/generic/elf/backtracesymsfd.c sysdeps/i386/configure.in
2012-03-20Move stdio-common/_itoa.h to sysdeps/genericH.J. Lu2-2/+2
2012-03-20Remove old debug/backtracesyms files, replace with elf versions.Andreas Jaeger2-20/+147
2012-03-07Remove distribute variable from MakefilesUlrich Drepper1-2/+0
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert95-285/+190
2012-01-24Fix gets problemsUlrich Drepper1-5/+0
2012-01-08Add checking versions of poll and ppollUlrich Drepper5-2/+81
2012-01-07Remove pre-ISO C supportUlrich Drepper6-13/+13
No more __const.
2012-01-07Remove non-ELF supportUlrich Drepper1-3/+1
2012-01-01More fallout from gets removalUlrich Drepper1-0/+6