You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2014/08/14 00:55:28 UTC
[1/2] git commit: Added GLOG signal handler to print stack traces on
segfault in libprocess.
Repository: mesos
Updated Branches:
refs/heads/master 788d3a617 -> 5a7f66e13
Added GLOG signal handler to print stack traces on segfault in
libprocess.
Review: https://reviews.apache.org/r/24674
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/5a7f66e1
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/5a7f66e1
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/5a7f66e1
Branch: refs/heads/master
Commit: 5a7f66e13c4b066458554966bbd7ef847523370b
Parents: d665e52
Author: Vinod Kone <vi...@gmail.com>
Authored: Wed Aug 13 15:31:25 2014 -0700
Committer: Vinod Kone <vi...@gmail.com>
Committed: Wed Aug 13 15:54:57 2014 -0700
----------------------------------------------------------------------
3rdparty/libprocess/src/tests/main.cpp | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/5a7f66e1/3rdparty/libprocess/src/tests/main.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/tests/main.cpp b/3rdparty/libprocess/src/tests/main.cpp
index 6c672b4..934cb47 100644
--- a/3rdparty/libprocess/src/tests/main.cpp
+++ b/3rdparty/libprocess/src/tests/main.cpp
@@ -1,7 +1,9 @@
-#include <gtest/gtest.h>
+#include <glog/logging.h>
#include <gmock/gmock.h>
+#include <gtest/gtest.h>
+
#include <process/gmock.hpp>
#include <process/gtest.hpp>
#include <process/process.hpp>
@@ -14,6 +16,10 @@ int main(int argc, char** argv)
// Initialize libprocess.
process::initialize();
+ // Handles SIGSEGV, SIGILL, SIGFPE, SIGABRT, SIGBUS, SIGTERM
+ // by default.
+ google::InstallFailureSignalHandler();
+
// Add the libprocess test event listeners.
::testing::TestEventListeners& listeners =
::testing::UnitTest::GetInstance()->listeners();
[2/2] git commit: Added GLOG signal handler to print stack traces on
segfault in stout.
Posted by vi...@apache.org.
Added GLOG signal handler to print stack traces on segfault in stout.
Review: https://reviews.apache.org/r/24675
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d665e526
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/d665e526
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/d665e526
Branch: refs/heads/master
Commit: d665e526d897629a4f43f8893c278bd48bc1b989
Parents: 788d3a6
Author: Vinod Kone <vi...@gmail.com>
Authored: Wed Aug 13 15:31:06 2014 -0700
Committer: Vinod Kone <vi...@gmail.com>
Committed: Wed Aug 13 15:54:57 2014 -0700
----------------------------------------------------------------------
3rdparty/libprocess/3rdparty/stout/tests/main.cpp | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/d665e526/3rdparty/libprocess/3rdparty/stout/tests/main.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/tests/main.cpp b/3rdparty/libprocess/3rdparty/stout/tests/main.cpp
index 0f1e9cb..75dbfec 100644
--- a/3rdparty/libprocess/3rdparty/stout/tests/main.cpp
+++ b/3rdparty/libprocess/3rdparty/stout/tests/main.cpp
@@ -1,11 +1,17 @@
-#include <gtest/gtest.h>
+#include <glog/logging.h>
#include <gmock/gmock.h>
+#include <gtest/gtest.h>
+
int main(int argc, char** argv)
{
// Initialize Google Mock/Test.
testing::InitGoogleMock(&argc, argv);
+ // Handles SIGSEGV, SIGILL, SIGFPE, SIGABRT, SIGBUS, SIGTERM
+ // by default.
+ google::InstallFailureSignalHandler();
+
return RUN_ALL_TESTS();
}