debugging seg fault in swapper