Invoking writeln() from a lot of threads running concurrently --> crash

IM 3di at gm.com
Sun Dec 10 05:59:58 UTC 2017


On Sunday, 10 December 2017 at 01:12:37 UTC, Walter Bright wrote:
> On 12/9/2017 5:56 AM, Seb wrote:
>> IIRC the implementation of LockingTextWriter isn't thread-safe.
>
> There's no bugzilla issue on this. So I added one:
>
>   https://issues.dlang.org/show_bug.cgi?id=18052
>
> Please, folks, I can't emphasize this enough. When you find a 
> bug, POST IT ON BUGZILLA! Otherwise, it will NEVER get fixed.

I was going to file one, but I wanted to verify first that it's 
actually a bug. According to comment #2 by Messenger, it doesn't 
seem to be one if SIGUSR1 is a GC signal. I was trying to debug a 
crash in gdb and that one kept showing up. After adding handle 
SIGUSR1 SIGUSR2 nostop I was able to capture the real issue.

Sorry for the false positive --- still learning about D! :( I 
think we can probably close that bug.


More information about the Digitalmars-d mailing list