]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: re-enable backtrace support 6771/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 2 Dec 2015 05:43:48 +0000 (00:43 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 2 Dec 2015 05:43:48 +0000 (00:43 -0500)
A recent porting effort disabled support for backtrace creation.  It
also didn't initialize all variables, which would lead to a crash when
deleting a backtrace instance.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/common/BackTrace.h

index d5afa828c74ccc208e59ce38d6f299d0bc5cdc0a..4157f74a3b3c5c8c5cd567a58c12924e628d8a4f 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef CEPH_BACKTRACE_H
 #define CEPH_BACKTRACE_H
 
+#include "acconfig.h"
 #include <iosfwd>
 #ifdef HAVE_EXECINFO_H
 #include <execinfo.h>
@@ -24,6 +25,7 @@ struct BackTrace {
 #else
     skip = 0;
     size = 0;
+    strings = nullptr;
 #endif
   }
   ~BackTrace() {