The CTDB simple/90_debug_hung_script.sh test-case fails when run on certain host machines. Basically it only passes if the sysctl setting yama.ptrace_scope=0 is present on the host OS. If yama.ptrace_scope=1 the test fails because it can't cat /prod/<pid>/stack. More details on mailing-list thread: https://lists.samba.org/archive/samba-technical/2018-November/131113.html We manually set yama.ptrace_scope=0 on the gitlab CI machines. However, we don't necessarily have control over this setting on other cloud machines (or host PCs) that we want to run CI on. This bug is to backport a fix for the test-case to maintenance branches, so that we can potentially run CI on other cloud machines.
Created attachment 14665 [details] Patch for v4.9
Created attachment 14666 [details] Possible patch for 4.8
I've added a patch for 4.8 but I don't think we want it. In <=4.8 the test is in CTDB's "complex" test suite, which is not run during autobuild (as it requires a real cluster). I've attached it for completeness but probably delete it... :-)
(In reply to Martin Schwenke from comment #3) I agree. We don't need to patch the test for 4.8.
Comment on attachment 14666 [details] Possible patch for 4.8 OK, marking this one obsolete to avoid confusion...
Hi Karolin, This is ready for 4.9. Thanks...
(In reply to Martin Schwenke from comment #6) Pushed to autobuild-v4-9-test.
(In reply to Karolin Seeger from comment #7) Pushed to v4-9-test. Closing out bug report. Thanks!