From 8edf33e8a9368ceb026ceba4283871b0aa5ed35d Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 5 Jan 2010 15:23:21 +0100 Subject: abrtd: limit the number of frames in backtrace to 3000 Signed-off-by: Denys Vlasenko --- lib/Plugins/Firefox.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Plugins/Firefox.cpp') diff --git a/lib/Plugins/Firefox.cpp b/lib/Plugins/Firefox.cpp index 2bb7f9c..ab2ea8a 100644 --- a/lib/Plugins/Firefox.cpp +++ b/lib/Plugins/Firefox.cpp @@ -278,7 +278,8 @@ static void GetBacktrace(const char *pDebugDumpDir, std::string& pBacktrace) args[6] = (char*)"-ex"; args[7] = xasprintf("core-file %s/"FILENAME_COREDUMP, pDebugDumpDir); args[8] = (char*)"-ex"; - args[9] = (char*)"thread apply all backtrace full"; + /* max 3000 frames: with no limit, gdb sometimes OOMs the machine */ + args[9] = (char*)"thread apply all backtrace 3000 full"; args[10] = NULL; ExecVP(args, xatoi_u(UID.c_str()), pBacktrace); -- cgit