libunwind/tests
Martin Milata 0f9a540c8c coredump: add test
Program test-coredump-unwind was modified to map backing files based on
virtual addresses instead of segment numbers.

The crasher.c is a program that essentially calls some functions and
then writes to invalid address causing a crash. Before that, it detects
which executables are mapped to which virtual addresses and writes this
information to a file suitable for consumption by test-coredump-unwind.
The mapping information is obtained form /proc/self/maps, so currently
it only works on linux.

The test itself is a shell script, which first runs the program and then
runs test-coredump-unwind on the resulting core and address space
map file to check whether the stack trace obtained from the dump roughly
corresponds to what it should look like.

Signed-off-by: Martin Milata <mmilata@redhat.com>
2012-05-31 11:00:40 +02:00
..
check-namespace.sh.in Update namespace checks for dwarf_find_unwind_tables 2012-03-12 20:11:49 -07:00
crasher.c coredump: add test 2012-05-31 11:00:40 +02:00
flush-cache.S [ARM] This patch add some missing bits on ARM platform. 2008-04-21 13:43:18 -06:00
forker.c Bring git v0.98.5 tree in sync with released v0.98.5. 2006-07-25 21:32:28 -06:00
Gia64-test-nat.c Include "tdep-ia64/rse.h" instead of "ia64/rse.h". 2005-05-20 09:48:08 +00:00
Gia64-test-rbs.c (ARRAY_SIZE): Rename from NELEMS. 2005-05-20 09:48:08 +00:00
Gia64-test-readonly.c Make libunwind compile with recent versions of GAS. 2006-07-25 21:34:32 -06:00
Gia64-test-stack.c Rename: tests/ia64-test-stack.c -> tests/Gia64-test-stack.c 2003-02-22 03:08:22 +00:00
Gperf-simple.c Tweak such that GCC v4 doesn't optimize it to the point where the 2005-05-03 09:13:17 +00:00
Gperf-trace.c Fix a compiler warning 2011-08-15 20:19:47 -07:00
Gtest-bt.c Increase alternate signal stack size. 2011-04-05 20:59:10 -07:00
Gtest-concurrent.c Fix tests/Gtest-concurrent.c to test all caching policies 2009-11-24 11:12:49 -08:00
Gtest-dyn1.c Add missing <signal.h> include directive 2011-10-29 17:12:43 -07:00
Gtest-exc.c Include "config.h" and <ia64intrin.h> if we have them. 2005-05-03 09:13:17 +00:00
Gtest-init.cxx Print normal output only if "verbose" mode is requested. 2003-09-25 05:29:14 +00:00
Gtest-nocalloc.c Add a test to catch calls to calloc from libunwind 2011-04-05 20:59:03 -07:00
Gtest-nomalloc.c Verify that we don't call malloc when unwinding locally. 2009-03-16 21:34:48 -07:00
Gtest-resume-sig.c Fix a couple of test breakages on x86_64 2010-03-10 22:52:12 -08:00
Gtest-trace.c ARM: tests/Gtest-trace.c - IP printing 2011-04-21 17:25:42 +02:00
ia64-dyn-asm.S Mark Wielaard <mwielaard@redhat.com> writes: 2007-10-01 08:35:01 -06:00
ia64-test-dyn1.c (create_func): Change %Zu to %zu. 2004-05-12 20:54:56 +00:00
ia64-test-nat-asm.S Mark Wielaard <mwielaard@redhat.com> writes: 2007-10-01 08:35:01 -06:00
ia64-test-rbs-asm.S Mark Wielaard <mwielaard@redhat.com> writes: 2007-10-01 08:35:01 -06:00
ia64-test-rbs.h (Logical change 1.47) 2003-02-14 06:25:36 +00:00
ia64-test-readonly-asm.S Mark Wielaard <mwielaard@redhat.com> writes: 2007-10-01 08:35:01 -06:00
ia64-test-setjmp.c [IA64] Fix ia64-test-setjmp.c. With MAP_SHARED the kernel will try to 2007-08-09 16:26:58 -06:00
ia64-test-sig.c Fix up a little so it's silent by default. 2004-08-31 13:59:10 +00:00
ia64-test-stack-asm.S Mark Wielaard <mwielaard@redhat.com> writes: 2007-10-01 08:35:01 -06:00
ia64-test-stack.h Bring git v0.98.5 tree in sync with released v0.98.5. 2006-07-25 21:32:28 -06:00
ident.c (Logical change 1.276) 2004-10-15 13:48:38 +00:00
Lia64-test-nat.c Regenerate. 2004-05-04 22:19:18 +00:00
Lia64-test-rbs.c Regenerate. 2004-05-04 22:19:18 +00:00
Lia64-test-readonly.c (Logical change 1.231) 2004-05-06 20:26:29 +00:00
Lia64-test-stack.c Regenerate. 2004-05-04 22:19:18 +00:00
Lperf-simple.c Revert "sys/types.h" 2010-03-08 00:20:23 +02:00
Lperf-trace.c Add some performance tests for fast backtracing. 2011-03-25 00:20:46 -07:00
Ltest-bt.c (Logical change 1.270) 2004-09-15 11:37:04 +00:00
Ltest-concurrent.c Regenerate. 2004-05-04 22:19:18 +00:00
Ltest-cxx-exceptions.cxx GCC compatibility on x86 for C++ exception handling 2010-04-12 12:08:43 -07:00
Ltest-dyn1.c Regenerate. 2004-05-04 22:19:18 +00:00
Ltest-exc.c Regenerate. 2004-05-04 22:19:18 +00:00
Ltest-init.cxx Regenerate. 2004-05-04 22:19:18 +00:00
Ltest-nocalloc.c Add a test to catch calls to calloc from libunwind 2011-04-05 20:59:03 -07:00
Ltest-nomalloc.c Verify that we don't call malloc when unwinding locally. 2009-03-16 21:34:48 -07:00
Ltest-resume-sig.c Regenerate. 2004-05-04 22:19:18 +00:00
Ltest-trace.c Fast back-trace for x86_64 for only collecting the call stack. 2011-03-24 22:33:17 -07:00
Makefile.am coredump: add test 2012-05-31 11:00:40 +02:00
mapper.c MAP_ANONYMOUS 2010-03-06 16:46:52 +02:00
perf-startup Make tests/perf-startup executable. Suggested by Mark Wielaard. 2007-12-10 09:34:57 -07:00
ppc64-test-altivec-utils.c Add PPC64 support. 2007-08-02 09:59:43 -06:00
ppc64-test-altivec.c Add PPC64 support. 2007-08-02 09:59:43 -06:00
ppc64-test-wchar.c Add PPC64 support. 2007-08-02 09:59:43 -06:00
rs-race.c Cap the runtime for rs-race 2010-03-10 22:57:43 -08:00
run-check-namespace Bring git v0.98.5 tree in sync with released v0.98.5. 2006-07-25 21:32:28 -06:00
run-coredump-unwind coredump: add test 2012-05-31 11:00:40 +02:00
run-ia64-test-dyn1 Bring git v0.98.5 tree in sync with released v0.98.5. 2006-07-25 21:32:28 -06:00
run-ptrace-mapper Add unwind descriptors to getcontext.S 2010-04-28 16:32:30 -07:00
run-ptrace-misc Bring git v0.98.5 tree in sync with released v0.98.5. 2006-07-25 21:32:28 -06:00
test-async-sig.c Normalize test code 2010-04-04 17:09:33 +03:00
test-coredump-unwind.c coredump: add test 2012-05-31 11:00:40 +02:00
test-flush-cache.c (Logical change 1.96) 2003-09-19 06:56:12 +00:00
test-init-remote.c (do_backtrace): Delete unused variable "pi". 2004-08-19 13:40:08 +00:00
test-mem.c Include <string.h> to get memset() declared. 2005-05-03 09:13:17 +00:00
test-proc-info.c Fix incorrect calls to memset. 2011-10-02 22:43:28 -07:00
test-ptrace-misc.c (bar): Fix missing initialization warned on by GCC v4. 2005-05-03 09:13:17 +00:00
test-ptrace.c Fix test-ptrace argument parsing. 2011-03-07 21:24:51 -08:00
test-setjmp.c Add some more debug statements and fix some typos. 2003-09-25 05:08:18 +00:00
test-static-link-gen.c (test_generic): Fix "unused variable" warning. 2004-09-09 13:06:01 +00:00
test-static-link-loc.c (test_local): Use unw_context_t instead of ucontext_t. 2004-05-04 20:13:07 +00:00
test-strerror.c Bring git v0.98.5 tree in sync with released v0.98.5. 2006-07-25 21:32:28 -06:00
test-varargs.c (Logical change 1.21) 2002-11-09 03:59:27 +00:00