[core] print tracebacks