public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug sanitizer/112353] New: asan-enabled, aarch64-gcc cross-compiled elf executables fail ro run in qemu-user on x86 @ 2023-11-02 17:07 robert at bedrocksystems dot com 2023-11-02 17:09 ` [Bug sanitizer/112353] " pinskia at gcc dot gnu.org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: robert at bedrocksystems dot com @ 2023-11-02 17:07 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112353 Bug ID: 112353 Summary: asan-enabled, aarch64-gcc cross-compiled elf executables fail ro run in qemu-user on x86 Product: gcc Version: 12.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: robert at bedrocksystems dot com CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- On Ubuntu 23.04 x86_64, an aarch64 cross-compiled elf executable with Address Sanitizer (asan) enabled, fails with the run-time error: ``` AddressSanitizer: CHECK failed: asan_poisoning.cpp:38 "((AddrIsInMem(addr))) != (0)" (0x0, 0x0) (tid=1909) <empty stack> ``` This might be related to qemu and not gcc, but it reproduced also with gcc 13.2.0, but not with gcc 11.4.0. Versions used: ``` $ aarch64-linux-gnu-g++ --version aarch64-linux-gnu-g++ (Ubuntu 12.3.0-1ubuntu1~23.04) 12.3.0 $ qemu-aarch64-static -version qemu-aarch64 version 7.2.0 (Debian 1:7.2+dfsg-5ubuntu2.3) ``` Steps to reproduce: ``` $ echo "int main() {return 1;}" > /tmp/poc.cpp $ aarch64-linux-gnu-g++ -fsanitize=address /tmp/poc.cpp -o /tmp/poc $ qemu-aarch64-static /tmp/poc ## this takes a while AddressSanitizer: CHECK failed: asan_poisoning.cpp:38 "((AddrIsInMem(addr))) != (0)" (0x0, 0x0) (tid=2220) <empty stack> ``` ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug sanitizer/112353] asan-enabled, aarch64-gcc cross-compiled elf executables fail ro run in qemu-user on x86 2023-11-02 17:07 [Bug sanitizer/112353] New: asan-enabled, aarch64-gcc cross-compiled elf executables fail ro run in qemu-user on x86 robert at bedrocksystems dot com @ 2023-11-02 17:09 ` pinskia at gcc dot gnu.org 2023-11-21 23:26 ` pinskia at gcc dot gnu.org 2023-11-24 9:30 ` robert at bedrocksystems dot com 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2023-11-02 17:09 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112353 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- https://github.com/google/sanitizers/issues/1470 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug sanitizer/112353] asan-enabled, aarch64-gcc cross-compiled elf executables fail ro run in qemu-user on x86 2023-11-02 17:07 [Bug sanitizer/112353] New: asan-enabled, aarch64-gcc cross-compiled elf executables fail ro run in qemu-user on x86 robert at bedrocksystems dot com 2023-11-02 17:09 ` [Bug sanitizer/112353] " pinskia at gcc dot gnu.org @ 2023-11-21 23:26 ` pinskia at gcc dot gnu.org 2023-11-24 9:30 ` robert at bedrocksystems dot com 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2023-11-21 23:26 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112353 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |MOVED --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Interesting using qemu 8.1.2 works but using qemu 6.2.0 does not. Looks like a qemu issue and not a GCC one. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug sanitizer/112353] asan-enabled, aarch64-gcc cross-compiled elf executables fail ro run in qemu-user on x86 2023-11-02 17:07 [Bug sanitizer/112353] New: asan-enabled, aarch64-gcc cross-compiled elf executables fail ro run in qemu-user on x86 robert at bedrocksystems dot com 2023-11-02 17:09 ` [Bug sanitizer/112353] " pinskia at gcc dot gnu.org 2023-11-21 23:26 ` pinskia at gcc dot gnu.org @ 2023-11-24 9:30 ` robert at bedrocksystems dot com 2 siblings, 0 replies; 4+ messages in thread From: robert at bedrocksystems dot com @ 2023-11-24 9:30 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112353 --- Comment #3 from Robert <robert at bedrocksystems dot com> --- Thanks for the information! ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-11-24 9:30 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-11-02 17:07 [Bug sanitizer/112353] New: asan-enabled, aarch64-gcc cross-compiled elf executables fail ro run in qemu-user on x86 robert at bedrocksystems dot com 2023-11-02 17:09 ` [Bug sanitizer/112353] " pinskia at gcc dot gnu.org 2023-11-21 23:26 ` pinskia at gcc dot gnu.org 2023-11-24 9:30 ` robert at bedrocksystems dot com
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).