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
P2370 Stacktrace from exception #1056
Comments
P2370R1 Stacktrace from exception (Andrei Nekrashevich, Antony Polukhin) |
Mailing review 26-07-2021-13-09-2001 Lots of interest for this paper to land in 23 along the already approved stacktrace proposal. We probably still want to hear from implementers directly about the potential issues pertaining to ABI stability. Given all the feedbacks were addressed and reviewers are happy with the general design and wording, |
Deferring to C++26 due to lack of time. |
@brycelelbach : Can you elaborate a little more about this? While the "infrastructure" is very nice, the killer feature for many is for existing code, and the standard library especially, to throw exceptions with stack traces. |
@brycelelbach : "Lack of time" means lack of time. It means the committee doesn't have the bandwidth to work through the issues of the proposal (while still doing what's already on their plate) before C++23 needs to be feature complete. |
@NicolBolas : I think you meant to address me. Anyway, there seem to be issues with the proposal. I was hoping for a few words about what issues have come up. |
P2370R2 Stacktrace from exception (Andrei Nekrashevich, Antony Polukhin) |
2022-06-21 Library Evolution TeleconP2370R2: Stacktrace from exception 2022-06-21 Library Evolution Telecon Minutes P2490R0: Zero-overhead exception stacktraces 2022-06-21 Library Evolution Telecon Minutes Chair: Bryce Adelstein Lelbach Minute Taker: Ben Craig Champion: Antony Polukhin (P2370) & Ed Catmur (P2490) Start: 2022-06-21 11:51 Eastern Does P2370 have:
This needs to be seen by Evolution. P2380R2 proposes capturing the stacktrace at the throw side and allows you to globally or per-thread enable/disable capturing stacktraces. P2490R0 proposes to capture the stacktrace at entering the catch block rather than at the throw side. End: 12:17 SummaryP2380R2 (Stacktrace from exceptions) and P2490R0 (Zero-overhead exception stacktraces) propose mechanisms for attaching stacktraces to exceptions. It became apparent during Library Evolution's review of these papers that they should be seen by Evolution first. Next StepsSend P2380R2 (Stacktrace from exceptions) and P2490R0 (Zero-overhead exception stacktraces) to Evolution. |
Can you elaborate slightly on why that is? i.e. will changes to the language be necessary? |
How to enable/disable stacktraces and how to access them from an exception are properties of the exception handling mechanism, which is a language feature. One of the proposals has an implementation in a compiler and involved changes to the compiler and language runtime, not just new library APIs. |
P2370R0 Stacktrace from exception (Andrei Nekrashevich, Antony Polukhin)
The text was updated successfully, but these errors were encountered: