The first trace is the expected one, the second trace is created, when the destructor is called.
Comment #2 by dlang-bot — 2021-02-17T17:41:22Z
@aG0aep6G created dlang/phobos pull request #7801 "fix issue 21592 - two stack traces if high surrogate is printed" fixing this issue:
- fix issue 21592 - two stack traces if high surrogate is printed
https://github.com/dlang/phobos/pull/7801
Comment #3 by dlang-bot — 2021-03-03T12:46:34Z
dlang/phobos pull request #7801 "fix issue 21592 - two stack traces if high surrogate is printed" was merged into master:
- 95acbbd658a62d4724abf5b3a53b26430a1bf312 by aG0aep6G:
fix issue 21592 - two stack traces if high surrogate is printed
https://github.com/dlang/phobos/pull/7801