Skip to content

Commit

Permalink
Disable JBacktrace::AddrToLine temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwbrei committed Nov 19, 2024
1 parent cd75fa6 commit 51a5a6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libraries/JANA/Utils/JBacktrace.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 51a5a6f

Please sign in to comment.