Bug 21256 – Segfault with Appender!string.init.toString()

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-09-16T09:20:31Z
Last change time
2020-11-22T14:12:09Z
Keywords
pull
Assigned to
No Owner
Creator
Heromyth

Comments

Comment #0 by bitworld — 2020-09-16T09:20:31Z
Here is the simple test code: import std.array; import std.stdio; void main() { Appender!string sb; writeln(sb.toString()); // crash here }
Comment #1 by dlang-bot — 2020-11-11T14:31:11Z
@e10s created dlang/phobos pull request #7691 "Fix Issue 21256 - The toString() in Appender will crash the app" fixing this issue: - Fix Issue 21256 - The toString() in Appender will crash the app https://github.com/dlang/phobos/pull/7691
Comment #2 by dlang-bot — 2020-11-17T23:17:50Z
dlang/phobos pull request #7691 "Fix Issue 21256 - Segfault with Appender!string.init.toString()" was merged into stable: - 96e7f8e85aa92db5aa45973fcaa031f250375aaa by Kazuya Takahashi: Fix Issue 21256 - Segfault with Appender!string.init.toString() https://github.com/dlang/phobos/pull/7691
Comment #3 by dlang-bot — 2020-11-22T14:12:09Z
dlang/phobos pull request #7703 "merge stable" was merged into master: - f3c8d75a9ee5facf2d2f02b399c69843695f24c4 by Kazuya Takahashi: Fix Issue 21256 - Segfault with Appender!string.init.toString() https://github.com/dlang/phobos/pull/7703