[bacula/f18] #905309 e_msg: Process /usr/sbin/bat was killed by signal 11 (SIGSEGV)
Petr Hracek
phracek at fedoraproject.org
Mon Feb 4 13:05:09 UTC 2013
commit a634e508ea133f12bd3344f1f70445392c3ade10
Author: phracek <phracek at redhat.com>
Date: Mon Feb 4 14:04:50 2013 +0100
#905309 e_msg: Process /usr/sbin/bat was killed by signal 11 (SIGSEGV)
bacula-5.2.12-seg-fault.patch | 22 ++++++++++++++++++++++
bacula.spec | 7 ++++++-
2 files changed, 28 insertions(+), 1 deletions(-)
---
diff --git a/bacula-5.2.12-seg-fault.patch b/bacula-5.2.12-seg-fault.patch
new file mode 100644
index 0000000..a891ec4
--- /dev/null
+++ b/bacula-5.2.12-seg-fault.patch
@@ -0,0 +1,22 @@
+diff --git a/src/lib/message.c b/src/lib/message.c
+index 24afdf1..5d2c2ef 100644
+--- a/src/lib/message.c
++++ b/src/lib/message.c
+@@ -37,6 +37,7 @@
+ *
+ */
+
++#include <assert.h>
+ #include "bacula.h"
+ #include "jcr.h"
+
+@@ -1230,7 +1231,8 @@ e_msg(const char *file, int line, int type, int level, const char *fmt,...)
+
+ if (type == M_ABORT) {
+ char *p = 0;
+- p[0] = 0; /* generate segmentation violation */
++ //p[0] = 0; /* generate segmentation violation */
++ assert(p!=NULL);
+ }
+ if (type == M_ERROR_TERM) {
+ exit(1);
diff --git a/bacula.spec b/bacula.spec
index 8edbc7c..f1762c7 100644
--- a/bacula.spec
+++ b/bacula.spec
@@ -3,7 +3,7 @@
Name: bacula
Version: 5.2.12
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: Cross platform network backup for Linux, Unix, Mac and Windows
# See LICENSE for details
License: AGPLv3 with exceptions
@@ -32,6 +32,7 @@ Patch1: bacula-5.0.2-openssl.patch
Patch2: bacula-5.2.2-queryfile.patch
Patch3: bacula-5.0.3-sqlite-priv.patch
Patch4: bacula-5.2.11-bat-build.patch
+Patch5: bacula-5.2.12-seg-fault.patch
BuildRequires: desktop-file-utils
BuildRequires: perl
@@ -315,6 +316,7 @@ Provides check_bacula support for Nagios.
%patch2 -p1 -b .queryfile
%patch3 -p0 -b .priv
%patch4 -p1 -b .bat-build
+%patch5 -p1 -b .seg-fault
# Remove execution permissions from files we're packaging as docs later on
find updatedb -type f | xargs chmod -x
@@ -904,6 +906,9 @@ fi
%changelog
+* Mon Feb 04 2013 Petr Hracek <phracek at redhat.com> - 5.2.12-7
+- Fix (#905309) e_msg: Process /usr/sbin/bat was killed by signal 11 (SIGSEGV)
+
* Thu Jan 10 2013 Simone Caronni <negativo17 at gmail.com> - 5.2.12-6
- Added missing line in bacula-sd SysV init script.
More information about the scm-commits
mailing list