Open kssuraaj28 opened 1 year ago
As the person analysing this on stackoverflow, I'll clarify/narrow the question I felt worth asking here is:
(I had suspicions about coroutines not being "work", but adding work-guards either in the coro stack or in the handler captures didn't seem to have a notable effect.)
There is a stack issue with empty functions in gcc-12.1 & 12.2 for the C++20 coroutines, so that might apply to stackful ones too.
I've run into this issue when I use gcc as well as clang (Apple clang version 15.0.0) on a mac
This is a copy of this issue: https://stackoverflow.com/questions/77255378/boost-asio-co-spawn-and-spawn-as-async-initiating-functions-cause-segfault.
Here is a brief description:
Using
co_spawn
andspawn
as async initiating functions within a stackful coroutine (using theyield
completion token) cause a segfault. For instance:Example 1 (Using co_spawn)
Example 2 (Using spawn)
As advised by the stackoverflow answer, I am raising an issue here.