I'm working on a multi-threading project and I need to make a copy of a thread's stack at some point in code (I need a pointer to that). because I'm going to need that pointer after this thread is exited (and it's stack is freed).
It would also do the job if I could somehow tell `pthread_exit()` not to free the stack of thread!

PS: The reason behind this is that I want to use `setcontext(ucontext_t*)` later when this thread is actually dead.