diff options
author | Arne Juul <arnej@verizonmedia.com> | 2021-08-12 07:43:06 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2021-08-12 07:43:06 +0000 |
commit | e199bd8fbe9e631aab16c7de42b2fed4ae29c6cd (patch) | |
tree | 9fe736bb3b4602f220c2e0e0102b1b60e51a62d6 /configd | |
parent | 5e6019d6ce1b090f4285d6066442f819bb79b522 (diff) |
set coredump limit before running pstack
* gdb has an issue that triggers when we run pstack, details in:
https://sourceware.org/bugzilla/show_bug.cgi?id=25678
* getting a core dump from GDB isn't useful for us in this case.
Diffstat (limited to 'configd')
-rw-r--r-- | configd/src/apps/sentinel/service.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configd/src/apps/sentinel/service.cpp b/configd/src/apps/sentinel/service.cpp index d1dab4bb26f..af9799a7259 100644 --- a/configd/src/apps/sentinel/service.cpp +++ b/configd/src/apps/sentinel/service.cpp @@ -125,7 +125,7 @@ Service::terminate(bool catchable, bool dumpState) return 0; } else { if (dumpState && _state != KILLING) { - vespalib::string pstackCmd = make_string("pstack %d > %s/%s.pstack.%d 2>&1", + vespalib::string pstackCmd = make_string("ulimit -c 0; pstack %d > %s/%s.pstack.%d 2>&1", _pid, getVespaTempDir().c_str(), name().c_str(), _pid); LOG(info, "%s:%d failed to stop. Stack dumping with %s", name().c_str(), _pid, pstackCmd.c_str()); int pstackRet = system(pstackCmd.c_str()); |