From: Mark Wielaard <mark@klomp.org>
To: elfutils-devel@sourceware.org
Subject: right, trying --enable-sanitizer-address on armv7l
Date: Thu, 09 Dec 2021 15:23:24 +0100 [thread overview]
Message-ID: <5f72e895306b8f742bd41d1020ad49e64aa5a958.camel@klomp.org> (raw)
Hi,
I was trying the new --enable-sanitizer-address on our armv7l buildbot
worker and it almost works as is, except for...
debuginfod.cxx:3472:12: runtime error: reference binding to misaligned
address 0x00561ec9 for type '<unknown>', which requires 2 byte
alignment
0x00561ec9: note: pointer points here
12 0a 00 2d e9 f0 4f 85 b0 00 af f8 60 df f8 bc e1 fe 44 f8 68 fa
68 00 2a 04 d0 00 f0 03 0c bc
^
And indeed removing 'right' here:
diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx
index 35424e47..6fad331a 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")
+ << setw(20) << ((const char*) sqlite3_column_text(ps_query, 0)
?: (const char*) "NULL")
<< " "
<< (sqlite3_column_text(ps_query, 1) ?: (const unsigned char*)
"NULL")
<< endl;
Makes everything PASS.
But I don't understand why. It might be a bug in gcc/libasan (this is
gcc 8.3.0 Debian 10.11 - Buster). I can try upgrading the machine to
Debian 11 - Bullseye this weekend to see if that helps.
Also, do we really want to right align the log here? We don't seem to
align the log text anywhere else.
Cheers,
Mark
next reply other threads:[~2021-12-09 14:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-09 14:23 Mark Wielaard [this message]
2021-12-09 15:06 ` Mark Wielaard
2021-12-09 15:47 ` Frank Ch. Eigler
2021-12-09 17:04 ` Mark Wielaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5f72e895306b8f742bd41d1020ad49e64aa5a958.camel@klomp.org \
--to=mark@klomp.org \
--cc=elfutils-devel@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).