Bug 18483 – [DMC Libc] std.stdio.File is completely thread unsafe on Win32

Status
NEW
Severity
major
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2018-02-21T15:16:25Z
Last change time
2024-12-01T16:32:54Z
Assigned to
No Owner
Creator
Steven Schveighoffer
See also
https://issues.dlang.org/show_bug.cgi?id=13727
Moved to GitHub: phobos#10316 →

Comments

Comment #0 by schveiguy — 2018-02-21T15:16:25Z
A bug was reported on reddit here: https://www.reddit.com/r/d_language/comments/7yxwvm/why_do_my_threads_write_to_the_wrong_file/ And I narrowed it down to a DMC bug. I have filed the bug here: http://bugzilla.digitalmars.com/issues/show_bug.cgi?id=327 Not going to repeat the whole thing, the DMC bug uses D code to show the problem (I refuse to figure out how to make multiple threads in C on windows DMC ;) Long story short, there appears to be no thread safety when using FILE * and DMC. Other platforms (including windows 64-bit) seem unaffected. This seems related to issue 13727.
Comment #1 by robert.schadek — 2024-12-01T16:32:54Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10316 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB