summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2021-12-09 18:00:05 +0100
committerMark Wielaard <mark@klomp.org>2021-12-09 18:00:05 +0100
commit7fc69582efcfb5f005f04c818a7aab76ff1090be (patch)
tree332047d1a24284f59f2b002fd85729355abeed29
parent5ba884a576afb0ec22660678790621b2a1c4a8e1 (diff)
downloadelfutils-7fc69582efcfb5f005f04c818a7aab76ff1090be.tar.gz
debuginfod: Don't format clog using 'right' or 'setw(20)'.
Keep the logs just plain unformatted text. This really is a workaround for an apparent bug with gcc 8.3 -fsanitizer=undefined on arm32, which complains about the 'right' formatter: debuginfod.cxx:3472:12: runtime error: reference binding to misaligned address 0x00561ec9 for type '<unknown>', which requires 2 byte alignment Signed-off-by: Mark Wielaard <mark@klomp.org>
-rw-r--r--debuginfod/ChangeLog5
-rw-r--r--debuginfod/debuginfod.cxx2
2 files changed, 6 insertions, 1 deletions
diff --git a/debuginfod/ChangeLog b/debuginfod/ChangeLog
index 7a4840ff..df373201 100644
--- a/debuginfod/ChangeLog
+++ b/debuginfod/ChangeLog
@@ -1,3 +1,8 @@
+2021-12-09 Mark Wielaard <mark@klomp.org>
+
+ * debuginfod.cxx (database_stats_report): Don't format clog
+ using 'right' and 'setw(20)'.
+
2021-12-04 Mark Wielaard <mark@klomp.org>
* debuginfod.cxx (main): Call debuginfod_pool_groom before exit.
diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx
index 35424e47..887e4f5a 100644
--- a/debuginfod/debuginfod.cxx
+++ b/debuginfod/debuginfod.cxx
@@ -3469,7 +3469,7 @@ database_stats_report()
throw sqlite_exception(rc, "step");
obatched(clog)
- << right << setw(20) << ((const char*) sqlite3_column_text(ps_query, 0) ?: (const char*) "NULL")
+ << ((const char*) sqlite3_column_text(ps_query, 0) ?: (const char*) "NULL")
<< " "
<< (sqlite3_column_text(ps_query, 1) ?: (const unsigned char*) "NULL")
<< endl;