diff --git a/artiq/runtime/ksupport.c b/artiq/runtime/ksupport.c index 13c89f690..5f985e65d 100644 --- a/artiq/runtime/ksupport.c +++ b/artiq/runtime/ksupport.c @@ -423,6 +423,8 @@ void __artiq_terminate(struct artiq_exception *artiq_exn, { struct msg_exception msg; + now_save(); + msg.type = MESSAGE_TYPE_EXCEPTION; msg.exception = artiq_exn; msg.backtrace = backtrace;