systemtap/tests/Regression/RHEL6Feature-cpp-backtraces
Martin Cermak 668b8dd42a CI test updates
- Add upstream testsuite tests/Regression/upstream-testsuite
  to the CI testplan.  However, this one isn't a good measure
  for gating, because it is too complex and flaky.  But it's
  good to have test results at hand.  This testcase reports a
  failure only in case of an infrastructure problem.  Individual
  .exp test failures are not a show stopper from the persp of
  the CI gating.
- Add upstream systemtap build and install pseudo testcase.
  tests/Install/upstream-systemtap to the testplan.
  This one is disabled by default (in its main.fmf file).  The
  point here is to be able to test with upstream version of
  systemtap in case a working fedora build isn't available.
  This is a helper for manual testing, although if enabled, it
  will do its job in the automated CI pipeline too.
- Use FMF tag instead of tier attributes to define the testplan.
- Testcase updates:
  * tests/Regression/second-command-not-captured
  * tests/Regression/python-probing
2024-04-17 08:29:50 +02:00
..
backtrackator.stp Include downstream/RHEL tests 2022-05-10 09:56:18 +02:00
classes.cpp Include downstream/RHEL tests 2022-05-10 09:56:18 +02:00
classes.hpp Include downstream/RHEL tests 2022-05-10 09:56:18 +02:00
golden.out CI Tests: Robustify Regression/RHEL6Feature-cpp-backtraces 2023-11-24 15:13:33 +01:00
main.cpp Include downstream/RHEL tests 2022-05-10 09:56:18 +02:00
main.fmf CI test updates 2024-04-17 08:29:50 +02:00
README Include downstream/RHEL tests 2022-05-10 09:56:18 +02:00
runtest.sh CI Tests: Robustify Regression/RHEL6Feature-cpp-backtraces 2023-11-24 15:13:33 +01:00

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

With 5.18.0-0.rc5.20220504git107c948d1d3e61d.42.fc37.x86_64 we have



---------------------8<--------------------------------------------------------
:: [ 08:26:39 ] :: [  BEGIN   ] :: Running 'stap --skip-badvars --ldd backtrackator.stp -c ./classes > output.out'
In file included from /usr/share/systemtap/runtime/linux/../regs.c:20,
                 from /usr/share/systemtap/runtime/linux/runtime.h:270,
                 from /usr/share/systemtap/runtime/runtime.h:26,
                 from /tmp/stap7hYYpn/stap_9beffd9064cc2c18ddd2daf7f47a7e44_5966_src.c:21:
/usr/share/systemtap/runtime/stack.c: In function _stp_stack_unwind_one_kernel:
/usr/share/systemtap/runtime/linux/../linux/regs.c:23:32: error: struct kretprobe_instance has no member named ret_addr
   23 | #define _stp_ret_addr_r(ri) (ri->ret_addr)
      |                                ^~
/usr/share/systemtap/runtime/stack.c:358:47: note: in expansion of macro _stp_ret_addr_r
  358 |                         return (unsigned long)_stp_ret_addr_r(c->ips.krp.pi);
      |                                               ^~~~~~~~~~~~~~~
make[1]: *** [scripts/Makefile.build:288: /tmp/stap7hYYpn/stap_9beffd9064cc2c18ddd2daf7f47a7e44_5966_src.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1844: /tmp/stap7hYYpn] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compilation failed.  [man error::pass4]
:: [ 08:26:59 ] :: [   FAIL   ] :: Command 'stap --skip-badvars --ldd backtrackator.stp -c ./classes > output.out' (Expected 0, got 1)
---------------------8<--------------------------------------------------------


Related to CONFIG_KRETPROBE_ON_RETHOOK https://elixir.bootlin.com/linux/v5.18-rc5/source/include/linux/kprobes.h#L163


Needs fixing on the stap side.