Bug 22774 – TraceInfo is gathered only once when throwing a Throwable

Status
NEW
Severity
minor
Priority
P3
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-02-15T05:28:24Z
Last change time
2024-12-07T13:41:50Z
Keywords
pull
Assigned to
No Owner
Creator
muhammed.yucel
Moved to GitHub: dmd#17439 →

Comments

Comment #0 by muhammed.yucel — 2022-02-15T05:28:24Z
One can prefer use of single `Exception` instance to prevent creating new Exception objects and continue `throw`ing that single instance. When this approach is preferred, Throwable trace info shows trace of the first `throw` of that exception, which leads to invalid information for following throws.
Comment #1 by dlang-bot — 2022-02-15T05:32:54Z
@mkykadir created dlang/druntime pull request #3742 "fix Issue 22774 - TraceInfo is gathered only once when throwing a Thr…" fixing this issue: - fix Issue 22774 - TraceInfo is gathered only once when throwing a Throwable Update `info` during every `throw` https://github.com/dlang/druntime/pull/3742
Comment #2 by robert.schadek — 2024-12-07T13:41:50Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17439 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB