D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21256 - Segfault with Appender!string.init.toString()
Summary: Segfault with Appender!string.init.toString()
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P1 critical
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2020-09-16 09:20 UTC by Heromyth
Modified: 2020-11-22 14:12 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Heromyth 2020-09-16 09:20:31 UTC
Here is the simple test code:

import std.array;
import std.stdio;

void main() {
    Appender!string sb;
    writeln(sb.toString()); // crash here
}
Comment 1 Dlang Bot 2020-11-11 14:31:11 UTC
@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 Dlang Bot 2020-11-17 23:17:50 UTC
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 Dlang Bot 2020-11-22 14:12:09 UTC
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