mirror of
https://github.com/zml/zml.git
synced 2026-11-16 19:11:09 +00:00
The first stack of each new coroutines were holding not zeroed and hold random memory data, which get popped in rbp during first coroutine stack swap. Which made unwinding random or even SIGSEGV when _Unwind_Backtrace was used (during C++ exception for instance). Zeroing the first part of the stack makes unwinding stop gracefully when it encounters $rbp=0x00.
78 lines
2.3 KiB
78 lines
2.3 KiB