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: "marxin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 11 Jul 2017 16:46:13 +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 #24 from Martin Liška <marxin at gcc dot gnu.org> ---
Just run with current trunk and it works (it fails after a minute in
==13736==ERROR: AddressSanitizer: stack-overflow on address 0x2adb9b406e48 (pc
0x0000067d8638 bp 0x2adb9b408020 sp 0x2adb9b406e30 T1)
So I'm going to test gcc-7-branch and I hope this patch is missing:
commit 5b64e274ea8c9aaedcebc1d6ad285a11e64ab086
Author: marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Fri Jun 30 08:51:00 2017 +0000
Call BUILT_IN_ASAN_HANDLE_NO_RETURN before BUILT_IN_UNWIND_RESUME (PR
sanitizer/81021).
2017-06-30 Martin Liska <mliska@suse.cz>
PR sanitizer/81021
* g++.dg/asan/pr81021.C: New test.
2017-06-30 Martin Liska <mliska@suse.cz>
PR sanitizer/81021
* tree-eh.c (lower_resx): Call BUILT_IN_ASAN_HANDLE_NO_RETURN
before BUILT_IN_UNWIND_RESUME when ASAN is used.