void handle_trap(unsigned long trap_id);