Hide Forgot
systemd-229-13.fc24.x86_64 The F24-specific patch 0045-coredump-ignore-RLIMIT_CORE.patch removes the initialization of the 'rlimit' variable in save_external_coredump(). This uninitialized value enters into the calculation of 'max_size': max_size = MIN(rlimit, MAX(arg_process_size_max, arg_external_size_max)); In #systemd Jason Tibbitts reported getting zero-length core files on F24. The above mistake should explain it.
A relevant compiler warning can be seen in Koji build.log https://kojipkgs.fedoraproject.org//packages/systemd/229/13.fc24/data/logs/x86_64/build.log: src/coredump/coredump.c: In function 'save_external_coredump': src/coredump/coredump.c:323:20: warning: 'rlimit' may be used uninitialized in this function [-Wmaybe-uninitialized] max_size = MIN(rlimit, MAX(arg_process_size_max, arg_external_size_max)); ^ src/coredump/coredump.c:307:18: note: 'rlimit' was declared here uint64_t rlimit, max_size;
*** This bug has been marked as a duplicate of bug 1371709 ***