Server crush
#5
Could you try replacing the src/OSSupport/StackTrace.cpp file with this:
// StackTrace.cpp

// Implements the functions to print current stack traces

#include "Globals.h"
#include "StackTrace.h"
#ifdef _WIN32
	#include "../StackWalker.h"
#else
	#include <execinfo.h>
	#include <unistd.h>
#endif





void PrintStackTrace(void)
{
	#ifdef _WIN32
		// Reuse the StackWalker from the LeakFinder project already bound to MCS
		// Define a subclass of the StackWalker that outputs everything to stdout
		class PrintingStackWalker :
			public StackWalker
		{
			virtual void OnOutput(LPCSTR szText) override
			{
				puts(szText);
			}
		} sw;
		sw.ShowCallstack();
	#else
		// Use the backtrace() function to get and output the stackTrace:
		// Code adapted from http://stackoverflow.com/questions/77005...pp-crashes
		void * stackTrace[30];
		auto numItems = backtrace(stackTrace, ARRAYCOUNT(stackTrace));
		backtrace_symbols_fd(stackTrace, numItems, STDERR_FILENO);
	#endif
}
Reply
Thanks given by:


Messages In This Thread
Server crush - by DrMasik - 12-02-2015, 06:28 PM
RE: Server crush - by sphinxc0re - 12-02-2015, 08:09 PM
RE: Server crush - by DrMasik - 12-02-2015, 08:27 PM
RE: Server crush - by DrMasik - 12-02-2015, 09:20 PM
RE: Server crush - by xoft - 12-02-2015, 09:42 PM
RE: Server crush - by DrMasik - 12-02-2015, 09:48 PM
RE: Server crush - by xoft - 12-02-2015, 10:50 PM
RE: Server crush - by DrMasik - 12-02-2015, 11:12 PM
RE: Server crush - by DrMasik - 12-02-2015, 11:24 PM
RE: Server crush - by xoft - 12-03-2015, 06:06 PM



Users browsing this thread: 2 Guest(s)