Public bug reported: When compiled with g++ 13.3.0-6ubuntu2~24.04 and Address Sanitizer, the attached code runs 60x slower (10.5 s vs 170 ms) with stack-use-after- return checking enabled.
$ g++-13 -fsanitize=address -fsanitize=undefined -g -O2 tle.cpp It's fixed (https://gcc.gnu.org/cgit/gcc/commit/?id=aac7bb773f7d1c) in the releases/gcc-13 branch and will be present in GCC 13.4. Upstream bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120475 ** Affects: gcc-13 (Ubuntu) Importance: Undecided Status: New ** Attachment added: "Reproducer source code" https://bugs.launchpad.net/bugs/2112171/+attachment/5881186/+files/tle.cpp ** Description changed: When compiled with g++ 13.3.0-6ubuntu2~24.04 and Address Sanitizer, the attached code runs 60x slower (10.5 s vs 170 ms) with stack-use-after- - return checking disabled. + return checking enabled. $ g++-13 -fsanitize=address -fsanitize=undefined -g -O2 tle.cpp It's fixed (https://gcc.gnu.org/cgit/gcc/commit/?id=aac7bb773f7d1c) in the releases/gcc-13 branch and will be present in GCC 13.4. Upstream bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120475 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2112171 Title: ASan detect_stack_use_after_return=1 makes vector<bool> incredibly slow To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-13/+bug/2112171/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
