Skip to content

Commit

Permalink
fix: signal handler
Browse files Browse the repository at this point in the history
Signed-off-by: SchrodingerZhu <[email protected]>
  • Loading branch information
SchrodingerZhu committed Mar 21, 2022
1 parent b8512f8 commit 1dda325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/libdaemon/src/BaseDaemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ class SignalListener : public Poco::Runnable
// __cxa_demangle will leak memory; but we are failing anyway
// freeing memory may increase possibilities to trigger other errors
auto *result = abi::__cxa_demangle(name, nullptr, nullptr, &status);
return std::pair<std::string, int>{result, status};
return std::pair<const char *, int>{result, status};
};
StackTrace::addr2line(demangle_func, output, frames[f]);
}
Expand Down

0 comments on commit 1dda325

Please sign in to comment.