This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/81021] stack-use-after-scope false positive error with exceptions
- From: "avi at cloudius-systems dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 12 Jul 2017 07:32:00 +0000
- Subject: [Bug sanitizer/81021] stack-use-after-scope false positive error with exceptions
- Auto-submitted: auto-generated
- References: <bug-81021-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81021
--- Comment #28 from Avi Kivity <avi@cloudius-systems.com> ---
It's a combination of several things:
1. We use antlr to generate a parser. The generated code allocates many local
variables in the same function
2. use-after-scope disabled -fstack-reuse=all
3. ASAN is quite liberal with stack padding
4. We also use user-level threads with just 128k of stack
The combination of all four overflowed our poor stack.