test longjmp
timeout: use alarm()