rewrite calltrace module.
add safe_printf in siganl handler.