osmith submitted this change.
testenv: run daemons with 'ulimit -c unlimited'
Prepare to support getting core files without having systemd-coredump
installed, as we plan to uninstall it from the jenkins servers to make
retrieving coredumps for other jobs feasible again.
When starting daemons, set the maximum core file size to unlimited.
Otherwise it might be at 0, resulting in no core files getting
generated.
I have considered using resource.setrlimit() on the python process
instead, but this wouldn't work when spawning the daemons inside the
podman container.
Change-Id: Ideaf0386c8d6111c2634f276f926e976023ff511
---
M _testenv/testenv/daemons.py
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/_testenv/testenv/daemons.py b/_testenv/testenv/daemons.py
index d4804d0..3a38850 100644
--- a/_testenv/testenv/daemons.py
+++ b/_testenv/testenv/daemons.py
@@ -53,7 +53,7 @@
pipe = f"2>&1 | tee {shlex.quote(log)}"
else:
pipe = f">{shlex.quote(log)} 2>&1"
- cmd = ["sh", "-c", f"{program} {pipe}"]
+ cmd = ["sh", "-c", f"ulimit -c unlimited; {program} {pipe}"]
env = {}
if testenv.args.io_uring:
To view, visit change 41151. To unsubscribe, or for help writing mail filters, visit settings.