From 4ffb14060bfc56bc2204a894ec95c108370d8eac Mon Sep 17 00:00:00 2001 From: dschwoerer Date: Mon, 1 Jun 2020 16:23:54 +0100 Subject: [PATCH] Update src/sys/boutexception.cxx Co-authored-by: Peter Hill --- src/sys/boutexception.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sys/boutexception.cxx b/src/sys/boutexception.cxx index 307a9f2e39..1f25c32ea9 100644 --- a/src/sys/boutexception.cxx +++ b/src/sys/boutexception.cxx @@ -54,7 +54,7 @@ std::string BoutException::getBacktrace() const { if (dladdr(trace[i],&info)){ // Additionally, check whether this is the default offset for an executable if (info.dli_fbase != reinterpret_cast(0x400000)) - ptr=reinterpret_cast(reinterpret_cast(trace[i])-reinterpret_cast(info.dli_fbase))); + ptr=reinterpret_cast(reinterpret_cast(trace[i])-reinterpret_cast(info.dli_fbase)); } // Pipe stderr to /dev/null to avoid cluttering output