https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95137

Mkkt Bkkt <valera.mironow at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |valera.mironow at gmail dot com

--- Comment #49 from Mkkt Bkkt <valera.mironow at gmail dot com> ---
I don't think undefined sanitizer works with coroutines in GCC 11.2.0.
I have a code that doesn't work.

Error description:
https://gist.github.com/MBkkt/e50520096933eab997a16f54d402919b

Branch for reproduce:
https://github.com/YACLib/YACLib/tree/mbkkt/issue_to_gcc_ubsan

Generally:
I suspend coroutine not in initial/final state
Then I resume it
After resume, coroutine have valid addresses of stack objects.
But dtor of objects on coroutine stack will be called on invalid addresses.

Minimal example:
https://godbolt.org/z/5h33Maeqf

Reply via email to