Invoking writeln() from a lot of threads running concurrently --> crash
IM
3di at gm.com
Sun Dec 10 06:00:23 UTC 2017
On Saturday, 9 December 2017 at 10:36:08 UTC, Messenger wrote:
> On Saturday, 9 December 2017 at 09:38:05 UTC, IM wrote:
>> For purposes of debugging, I'm using writeln() to print stuff
>> out from tasks running concurrently on many threads. At some
>> point it crashes with the following stack trace:
>>
>> Thread 4 received signal SIGUSR1, User defined signal 1.
> [...]
>> Bug in phobos?
>
> Is that a crash or just thread 4 receiving SIGUSR1? (GC signal)
>
> If so you just need to tell gdb not to stop on that. ("handle
> SIGUR1 SIGUSR2 nostop", place it in ~/.gdbinit)
Thanks! That works!
More information about the Digitalmars-d
mailing list