The 'currentContext' variable was never initialized, and so doesn't perform any
useful functionality as a 'uc_link' address. Remove it.
getcontext( &savedSnapshotContext );
if( !alreadySwapped ){
alreadySwapped = 1;
- ucontext_t currentContext, swappedContext, newContext;
+ ucontext_t swappedContext, newContext;
getcontext( &newContext );
newContext.uc_stack.ss_sp = sTheRecord->mStackBase;
newContext.uc_stack.ss_size = STACK_SIZE_DEFAULT;
- newContext.uc_link = ¤tContext;
makecontext( &newContext, entryPoint, 0 );
swapcontext( &swappedContext, &newContext );
}