diff --git a/kdump-fix-m_threads-missing-initialization.patch b/kdump-fix-m_threads-missing-initialization.patch new file mode 100644 index 0000000..84891b0 --- /dev/null +++ b/kdump-fix-m_threads-missing-initialization.patch @@ -0,0 +1,28 @@ +From: Lance Wang +Date: Fri, 19 Jan 2018 16:05:42 +0800 +Subject: Fix m_threads missing initialization +References: bsc#1047609 +Upstream: merged +Git-commit: 0905910da2eaa856a0e8bf26bbe6b5e4e9dc0788 + +kdumptool randomly outputs value for --num-threads. +So an error like following happened: + +makedumpfile --num-threads 5223023572093018873 -d 31 -l /proc/vmcore. + +Signed-off-by: Lance Wang +--- + kdumptool/savedump.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/kdumptool/savedump.cc ++++ b/kdumptool/savedump.cc +@@ -61,7 +61,7 @@ using std::ifstream; + SaveDump::SaveDump() + throw () + : m_dump(DEFAULT_DUMP), m_transfer(NULL), m_usedDirectSave(false), +- m_useMakedumpfile(false), m_split(0), m_nomail(false) ++ m_useMakedumpfile(false), m_split(0), m_threads(0), m_nomail(false) + { + Debug::debug()->trace("SaveDump::SaveDump()"); + diff --git a/kdump.changes b/kdump.changes index 9220589..259f649 100644 --- a/kdump.changes +++ b/kdump.changes @@ -1,8 +1,14 @@ +------------------------------------------------------------------- +Fri Jan 26 13:03:47 UTC 2018 - ptesarik@suse.com + +- kdump-fix-m_threads-missing-initialization.patch: Fix m_threads + missing initialization (bsc#1047609). + ------------------------------------------------------------------- Tue Jan 16 13:35:49 UTC 2018 - ptesarik@suse.com -- kdump-kdump_echo-and-kdump_logger-helpers.patch: load.sh: - introduce kdump_echo and kdump_logger helpers (bsc#951144). +- kdump-try-both-kexec_load-and-kexec_file_load.patch: Try both + kexec_load(2) and kexec_file_load(2) (bsc#951144). ------------------------------------------------------------------- Tue Jan 16 13:32:25 UTC 2018 - ptesarik@suse.com diff --git a/kdump.spec b/kdump.spec index 33eefc4..ccee5c4 100644 --- a/kdump.spec +++ b/kdump.spec @@ -78,6 +78,7 @@ Patch28: %{name}-Don-t-split-by-default.patch Patch29: %{name}-fillupdir-fixes.patch Patch30: %{name}-kdump_echo-and-kdump_logger-helpers.patch Patch31: %{name}-try-both-kexec_load-and-kexec_file_load.patch +Patch32: %{name}-fix-m_threads-missing-initialization.patch BuildRequires: asciidoc BuildRequires: cmake BuildRequires: gcc-c++ @@ -171,6 +172,7 @@ cp %{S:1} tests/data/ %endif %patch30 -p1 %patch31 -p1 +%patch32 -p1 %build export CFLAGS="%{optflags}"