summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2016-08-26 17:45:38 -0400
committerMathias Stearn <mathias@10gen.com>2016-08-26 18:32:35 -0400
commita7b0c1ec0356dbf3430b793d6baa9437a7a22efd (patch)
treef8e4b30423e8e3118803e888d4d8014e29b3f628
parent15c19250190932511229ac0e70bacb4c9b107b82 (diff)
downloadmongo-a7b0c1ec0356dbf3430b793d6baa9437a7a22efd.tar.gz
SERVER-25833 Stop printing /proc/self/maps in address signal handler
-rw-r--r--src/mongo/util/signal_handlers_synchronous.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/mongo/util/signal_handlers_synchronous.cpp b/src/mongo/util/signal_handlers_synchronous.cpp
index ca677141bbc..e9422155a4f 100644
--- a/src/mongo/util/signal_handlers_synchronous.cpp
+++ b/src/mongo/util/signal_handlers_synchronous.cpp
@@ -36,7 +36,6 @@
#include <boost/exception/exception.hpp>
#include <csignal>
#include <exception>
-#include <fstream>
#include <iostream>
#include <memory>
#include <streambuf>
@@ -274,18 +273,6 @@ void abruptQuitWithAddrSignal(int signalNum, siginfo_t* siginfo, void*) {
printSignalAndBacktrace(signalNum);
breakpoint();
-
-#if defined(__linux__)
- // Dump /proc/self/maps if possible to see where the bad address relates to our layout.
- // We do this last just in case it goes wrong.
- mallocFreeOStream << "/proc/self/maps:\n";
- std::ifstream is("/proc/self/maps");
- std::string str;
- while (getline(is, str)) {
- mallocFreeOStream << str;
- writeMallocFreeStreamToLog();
- }
-#endif
endProcessWithSignal(signalNum);
}