On 13/05/2020 15.43, Iain Sandoe wrote:
Avi Kivity <avi@xxxxxxxxxxxx> wrote:
(Iain, sorry for the direct copy, but thought it would be better than
you missing this)
That’s OK, I don’t follow gcc-help regularly.
Using the new coroutines implementation and so far everything behaves
as expected, except the sanitizers. As soon as I enable the sanitizer
I get crashes and asan complaints:
I can try to minimize, but thought to check first if this is a known
problem.
please file a PR in bugzilla, (this is the first report about coros
and asan together).
It turned out that asan just detected a problem with interactions
between lambdas and coroutines. I filed
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95111. I don't know if it's
a problem in gcc or the standard; but if the behavior is
standard-mandated, coroutines look crippled.