Bug 9788 – -profile doesn't work if exceptions are thrown in the running program
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-22T15:36:00Z
Last change time
2015-06-09T05:11:46Z
Assigned to
nobody
Creator
bugzilla
Comments
Comment #0 by bugzilla — 2013-03-22T15:36:50Z
It relies on trace_epi() calls always happening after the corresponding trace_pro() call. If an exception is thrown, the trace_epi() calls won't happen for the unwound functions.
One possible solution is to put trace_epi() calls in a finally block.