diff --git a/avoid-divide-by-zero-sigtrap.patch b/avoid-divide-by-zero-sigtrap.patch new file mode 100644 index 00000000..9d5e5e1f --- /dev/null +++ b/avoid-divide-by-zero-sigtrap.patch @@ -0,0 +1,14 @@ +Nasty bug reported on bnc#867663 + +--- systemd-210/src/core/manager.c ++++ systemd-210/src/core/manager.c 2014-04-17 13:29:07.366236714 +0000 +@@ -1780,7 +1780,8 @@ static int manager_dispatch_jobs_in_prog + assert(m); + assert(source); + +- manager_print_jobs_in_progress(m); ++ if (m->n_running_jobs > 0) ++ manager_print_jobs_in_progress(m); + + next = now(CLOCK_MONOTONIC) + JOBS_IN_PROGRESS_PERIOD_USEC; + r = sd_event_source_set_time(source, next); diff --git a/systemd.spec b/systemd.spec index 30a62415..e31a1834 100644 --- a/systemd.spec +++ b/systemd.spec @@ -380,6 +380,8 @@ Patch195: 0001-reduce-the-amount-of-messages-logged-to-dev-kmsg-whe.patch Patch196: systemd-detect-xendom.patch # PATCH-FIX-SUSE Avoid that emergency and rescue sulogin are fighting on console Patch197: rescue-emergency-target-conflicts.patch +# PATCH-FIX-SUSE Avoid a divide by zero sigtrap +Patch198: avoid-divide-by-zero-sigtrap.patch # UDEV PATCHES # ============ @@ -756,6 +758,7 @@ cp %{SOURCE7} m4/ %patch195 -p0 %patch196 -p1 %patch197 -p1 +%patch198 -p1 # udev patches %patch1001 -p1