Issue 22774 - TraceInfo is gathered only once when throwing a Throwable
Summary: TraceInfo is gathered only once when throwing a Throwable
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: All All
: P3 minor
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2022-02-15 05:28 UTC by muhammed.yucel
Modified: 2024-12-07 13:41 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description muhammed.yucel 2022-02-15 05:28:24 UTC
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 Dlang Bot 2022-02-15 05:32:54 UTC
@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 dlangBugzillaToGithub 2024-12-07 13:41:50 UTC
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