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.
Comment #1 by bugzilla — 2013-03-28T00:36:18Z
Comment #2 by github-bugzilla — 2013-03-31T11:08:53Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a1dd1ab5140fee5dbed2e18a1a952cd2d42699c7 fix Issue 9788 - -profile doesn't work if exceptions are thrown in the running program https://github.com/D-Programming-Language/dmd/commit/cfb5842b496cbfca4b571b37be1d546498611c1e Merge pull request #1806 from WalterBright/fix9788 fix Issue 9788 - -profile doesn't work if exceptions are thrown in the r...
Comment #3 by github-bugzilla — 2013-03-31T11:38:39Z
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/db81d201159ba4a44c286173db871473d6402991 Merge pull request #1806 from WalterBright/fix9788 fix Issue 9788 - -profile doesn't work if exceptions are thrown in the r...
Comment #4 by hsteoh — 2013-08-30T14:08:29Z
Commit a1dd1ab5140fee introduced issue #10617