[Bug 2112171] [NEW] ASan detect_stack_use_after_return=1 makes vector<bool> incredibly slow
Daniel Bertalan
2112171 at bugs.launchpad.net
Fri May 30 08:24:22 UTC 2025
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
Foundations Bugs, which is subscribed to gcc-13 in Ubuntu.
https://bugs.launchpad.net/bugs/2112171
Title:
ASan detect_stack_use_after_return=1 makes vector<bool> incredibly
slow
Status in gcc-13 package in Ubuntu:
New
Bug description:
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-13/+bug/2112171/+subscriptions
More information about the foundations-bugs
mailing list