This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sanitizer/81021] stack-use-after-scope false positive error with exceptions


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]