Vfork if return reclaims the stack of the main process in the main of the child process, resulting in a crash, what about the thread?

The

thread also does not have a separate address space, and the thread cannot cause the main process to crash through return because the thread is often a separate function? Is there any way for the thread to also recycle the stack of the main process and cause the crash?


Tip:

  • how has the essence of "recycling stacks" changed? Register? Memory?
  • can such a change be triggered in another thread?
Menu