summaryrefslogtreecommitdiffstats
path: root/tests/backtrace-child.c
Commit message (Collapse)AuthorAgeFilesLines
* Clean up linux-specific system includesUlf Hermann2017-04-211-1/+1
| | | | | | | We only include them where we actually need them and only on linux. Change-Id: Ic3065ffab67ba1177f63204fb91a92c5f4336dbb Reviewed-by: Christian Kandeler <[email protected]>
* tests: Simplify backtrace-native tests. Drop raise jmp patching for x86_64.Mark Wielaard2016-08-251-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The backtrace-native[-biarch] testcase was a little too clever in places making it unreliable. On x86_64 we tried to make an interesting backtrace by catching the first signal and then replacing the pc with the address of the first instruction of a function. Then we would raise a new signal, through ptrace, to create a backtrace that went from a signal frame into a frame at the start of a function. That way we could check that we were trying to fetch the correct CFI for the (jmp) function even at the first instruction (normally we would substract one from the return address to get at the call address). This works as long as the CFI for the jmp() function is identical to the CFI for the raise() function that we "patched away". Unfortunately on Fedora rawhide glibc has a rewritten raise() implementation that has different CFI, in particular the CFA is calculated differently. Making the testcase fail because we cannot properly unwind from jmp(). So this special x86_64 case has been disabled (the code is still there in case we find another way to test this in a more reliable way). On Ubuntu there have been spurious testcase failures because see_exec_module found two Dwfl_Modules with the same path. This would trigger an assert. Although this might indicate some issue (maybe we are not parsing the proc/pid/map correctly?) it isn't clear that it really is a bug. Since the assert is not very helpful finding any actual bug and for the testcase it is only necessary that the first Dwfl_Module that represents the executable is found we just pick that Dwfl_Module and don't iterate through any of the others. Signed-off-by: Mark Wielaard <[email protected]>
* Replace assert_perror with assertMax Filippov2015-05-051-2/+2
| | | | | | | assert_perror is a GNU extension, it's not provided by uClibc and it's only used in tests. Replace it with assert. Signed-off-by: Max Filippov <[email protected]>
* Unwinding is only supported on LinuxKurt Roeckx2014-04-231-0/+15
| | | | Signed-off-by: Kurt Roeckx <[email protected]>
* Fix false FAILs on testsuite with ulimit -c unlimited.Jan Kratochvil2014-01-181-3/+5
| | | | Signed-off-by: Jan Kratochvil <[email protected]>
* Fix test FAIL with -O2Jan Kratochvil2013-12-051-1/+3
| | | | Signed-off-by: Jan Kratochvil <[email protected]>
* Tests for unwinder of x86*.Jan Kratochvil2013-12-021-0/+221
Signed-off-by: Jan Kratochvil <[email protected]>