Bug 22542 – Explicitly cast backtrace results to int
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
Other
Creation time
2021-11-25T02:42:34Z
Last change time
2021-12-13T07:50:30Z
Assigned to
No Owner
Creator
Brian Callahan
Comments
Comment #0 by bcallah — 2021-11-25T02:42:34Z
Hello --
I would like to explicitly cast the result on backtrace on Posix (non-Apple) systems. For Linux, this app a no-op. However, on OpenBSD (and others?) backtrace returns a size_t.
Note this is what LDC does: https://github.com/ldc-developers/druntime/blob/ldc/src/core/runtime.d#L789
I need this in order to switch the OpenBSD backtrace implementation from a handrolled version to the version built into OpenBSD. Both Linux and macOS use their own built in versions.
Comment #1 by dlang-bot — 2021-11-25T07:59:42Z
dlang/druntime pull request #3633 "Fix Issue 22542 - Explicitly cast backtrace results to int" was merged into stable:
- 2f89b63326e4a791b9c0814dc9959d0e993b1b10 by Brian Callahan:
Fix Issue 22542 - Explicitly cast backtrace results to int
https://github.com/dlang/druntime/pull/3633
Comment #2 by dlang-bot — 2021-12-13T07:50:30Z
dlang/druntime pull request #3648 "merge stable" was merged into master:
- 14f48690a020865c234944776fae371c18f2f2aa by Brian Callahan:
Fix Issue 22542 - Explicitly cast backtrace results to int
https://github.com/dlang/druntime/pull/3648