From 51a5a6fe605e57d5b25a0ceb5705097b90dfa117 Mon Sep 17 00:00:00 2001 From: Nathan Brei Date: Tue, 19 Nov 2024 13:05:33 -0500 Subject: [PATCH] Disable JBacktrace::AddrToLine temporarily --- src/libraries/JANA/Utils/JBacktrace.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/JANA/Utils/JBacktrace.cc b/src/libraries/JANA/Utils/JBacktrace.cc index 4c52dfc98..7a76be559 100644 --- a/src/libraries/JANA/Utils/JBacktrace.cc +++ b/src/libraries/JANA/Utils/JBacktrace.cc @@ -71,9 +71,9 @@ void JBacktrace::Format(std::ostream& os) { std::string JBacktrace::AddrToLineInfo(const char* filename, size_t offset) { char backup_line_info[256]; - std::snprintf(backup_line_info, sizeof(backup_line_info), "%s:%zx", filename, offset); + std::snprintf(backup_line_info, sizeof(backup_line_info), "%s:%zx\n", filename, offset); - static bool addr2line_works = true; + static bool addr2line_works = false; if (addr2line_works) { char command[256]; std::snprintf(command, sizeof(command), "addr2line -e %s %zx", filename, offset);