-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracebacks from ignored underflows #271
Comments
This is definitely an annoying issue; in the past, I've found myself temporarily disabling underflow retrying (by editing the source code) to debug these issues. There are two components to this, though: Even if exception backtraces worked robustly, we'd still need to be able to access a backtrace for kernel exceptions without actually letting the exception propagate to the host. This will probably require a (small) addition to the kernel-facing runtime API. |
Me too. I even thought about making it easy to disable this from the GUI as it's something that can crop up a lot during initial development.
You mean so that we can print a traceback when there is just one underflow (so that the underflow is never re-raised)? |
Yes – otherwise, non-deterministic underflows can be really annoying to track down. As for the case where it does result in an exception, yes, that is then something like m-labs/artiq#1836. |
The ndscan ignore underflows feature currently leads to unhelpful tracebacks which just point into
ndscan.experiment.entrypoint
rather than any user code. AFAICT this is not ndscan's fault, just a manifestation of m-labs/artiq#1836 but I thought it might be worth having an issue here to track upstream since it impacts the utility of the ndscan feature (as it makes debugging underflows much harder IME).The text was updated successfully, but these errors were encountered: